GET
*/api/v1/customer/manufacturer/gifts/{id}/get
This API method retrieves a single gift by ID. It will only return if the gift is sent or received by the current customer.
Sample Request
{
"status": true,
"item": {
"id": "bZ6xBGP2mdPm3R8VX17L",
"manufacturer_account_id": "l6yYk1WOeo7e2b78dD4j",
"product_id": "LZWBJx0PmYkEwjGdr2vO",
"purchase_id": "nK8oWGj0zxqELP1A53ak",
"customer_id": "LZWBJx0PmYkEwjGdr2vO",
"alt_customer_id": "w6PV125gm1Xe8jqoYDyX",
"total_points": 10200,
"show_at": "2019-01-01 12:50:36",
"expiry_date": "2019-01-16 12:50:36",
"message": "Test",
"status": 0,
"is_sent": 0,
"redeemed_at": null,
"created_at": "2019-01-01 12:50:36",
"updated_at": "2019-01-01 12:50:36",
"deleted_at": null,
"review_count": 0,
"avg_rating": "0.000000",
"type": false,
"alt_customer": {
"id": "LZWBJx0PmYkEwjGdr2vO",
"name": "Devin Smith",
"avatar": "http:\/\/controlcenter.ftx\/customer\/images\/default-avatars\/4?v=1544095995"
},
"purchase": {
"id": "nK8oWGj0zxqELP1A53ak",
"customer_id": "LZWBJx0PmYkEwjGdr2vO",
"product_id": "LZWBJx0PmYkEwjGdr2vO",
"qty_sold": 1,
"total_amount": "10200.00",
"item_amount": "10200.00",
"tracking_number": null,
"is_gift": 1,
"created_at": "2019-01-01 12:50:36",
"updated_at": "2019-01-01 12:50:36",
"product": {
"id": "LZWBJx0PmYkEwjGdr2vO",
"name": "Swag Item",
"point_value": "10000.00",
"quantity": 195,
"upc": null,
"manufacturer_id": "l6yYk1WOeo7e2b78dD4j",
"manufacturer_name": "Bobs Bakery",
"main_image": "http:\/\/customer.loyalty.ftx\/swag-item\/images\/LZWBJx0PmYkEwjGdr2vO",
"rating": 0,
"review_count": 0
},
"details": {
"id": "LZWBJx0PmYkEwjGdr2vO",
"upc": "1",
"quantity": 194,
"pairings": [
{
"attribute": "Shirt SIze",
"value": "Value A"
}
]
}
}
}
}{
"status": false,
"message": "This gift is not valid for your account"
}{
"status": false,
"message": "Gift could not be found"
}