GET
/api/v1/customer/swag-shop/products/{id}/attributes
This API method will return attributes for a given Swag Item
Request Parameters
None Required
Sample Response
{
"status": true,
"item": {
"id": "nK8oWGj0zxqELP1A53ak",
"name": "Swag T-Shirt",
"attribute_info": {
"attributes": [
{
"id": "LZWBJx0PmYkEwjGdr2vO",
"name": "Shirt Size",
"type": 1,
"type_name": "Dropdown",
"values": [
{
"id": "LZWBJx0PmYkEwjGdr2vO",
"value": "Small",
"hex": ""
},
{
"id": "bZ6xBGP2mdPm3R8VX17L",
"value": "Medium",
"hex": ""
}
]
}
],
"pairings": [
{
"details_id": "LZWBJx0PmYkEwjGdr2vO",
"upc": "1",
"quantity": 1,
"override_type": 1,
"override_type_name": "Increase",
"override_points": 100,
"point_value": 1200,
"final_value": 1300,
"points_needed": 0,
"values": [
{
"id": "LZWBJx0PmYkEwjGdr2vO",
"value": "Small"
}
]
},
{
"details_id": "bZ6xBGP2mdPm3R8VX17L",
"upc": "2",
"quantity": 2,
"override_type": 3,
"override_type_name": "Replace",
"override_points": 1000,
"point_value": 1200,
"final_value": 1000,
"points_needed": 0,
"values": [
{
"id": "bZ6xBGP2mdPm3R8VX17L",
"value": "Medium"
}
]
}
]
}
}
}