api/v1/customer/gifts/sent

POST

*/api/v1/customer/gifts/sent

This API method allows the customer to get the list of sent gifts to other customers.

Sample Request

Parameter

Value / Type

Required

alt_customer_id

STRING

false

per_page

INTEGER (Default: 1)

false

page

INTEGER (Default: 50)

false

Sample Response

{
  "status": true,
  "items": [
    {
      "id": "LZWBJx0PmYkEwjGdr2vO",
      "account_id": "l6yYk1WOeo7e2b78dD4j",
      "product_id": "nK8oWGj0zxqELP1A53ak",
      "purchase_id": "nK8oWGj0zxqELP1A53ak",
      "customer_id": "LZWBJx0PmYkEwjGdr2vO",
      "alt_customer_id": "bZ6xBGP2mdPm3R8VX17L",
      "total_points": 1200,
      "show_at": "2019-01-01 00:00:00",
      "expiry_date": "2019-02-28 00:00:00",
      "message": "Test",
      "status": 0,
      "is_sent": 0,
      "redeemed_at": null,
      "created_at": "2019-01-02 08:30:18",
      "updated_at": null,
      "deleted_at": null,
      "review_count": 2,
      "avg_rating": "60.000000",
      "type": 1,
      "alt_customer": {
        "id": "bZ6xBGP2mdPm3R8VX17L",
        "name": "Devin Smith",
        "avatar": "http:\/\/controlcenter.fastraxpos.com\/images\/avatars\/128x128\/02.jpg",
      },
      "purchase": {
        "id": "nK8oWGj0zxqELP1A53ak",
        "customer_id": "LZWBJx0PmYkEwjGdr2vO",
        "product_id": "nK8oWGj0zxqELP1A53ak",
        "qty_sold": 1,
        "total_amount": "1200.00",
        "item_amount": "1200.00",
        "tracking_number": "9400111899220995599558",
        "is_gift": 1,
        "created_at": "2018-10-09 20:21:41",
        "updated_at": "2018-11-20 14:54:08",
        "product": {
          "id": "nK8oWGj0zxqELP1A53ak",
          "name": "Swag T-Shirt",
          "point_value": "1200.00",
          "quantity": 33,
          "upc": null,
          "store_id": "l6yYk1WOeo7e2b78dD4j",
          "store_name": "SC Choice Management",
          "main_image": "http:\/\/customer.loyalty.ftx\/swag-item\/images\/dnbPV7yRzv3EWaX1GKZv",
          "rating": 60,
          "review_count": 2
        },
        "details": {
          "id": "LZWBJx0PmYkEwjGdr2vO",
          "upc": "123",
          "quantity": 13,
          "pairings": [
            {
              "attribute": "Shirt Size",
              "value": "Small"
            },
            {
              "attribute": "Color",
              "value": "Red"
            }
          ]
        }
      }
    }
  ]
}
{
  "status": false,
  "errorCode": "NO_ITEMS",
  "message": "No items exist"
}