api/v1/customer/lottery-purchases

POST

/api/v1/customer/lottery-purchases

This API method will return lottery purchases for a given customer. The statuses of whether or not the item is marked as "win" or a "loss" is available.

The properties for is_winner are indicated as below
null = Not yet marked at all
0 = Marked as a loss
1 = Marked as a winner

Request Parameters

Parameter

Value / Type

Required

store_id

STRING

false

start_date

STRING

false

end_date

STRING

false

Sample Response

{
  "status": true,
  "items": [
    {
      "id": "K8oWGj0zxBORaeLP1A53",
      "account_id": "l6yYk1WOeo7e2b78dD4j",
      "brand_id": "Gwy8Xdp1EZ1ZzDb72ZNQ",
      "department_id": "KBRQqA81ep1mdWnwlOXY",
      "is_lottery": 1,
      "is_winner": 0,
      "item_id": "Mo2y1dkXEad0z50YnWLK",
      "line_amount": "4.00",
      "manufacturer_id": "G2D3wn94m4yZzrAOKPvM",
      "name": "BIRTHDAY BUCKS #1343",
      "qty_sold": 4,
      "qty_winners": 1,
      "receipt_id": 69709,
      "receipt_name": "BIRTHDAY BUCKS #1343",
      "receipt_number": 778345,
      "store_name": "Lotto Store A",
      "upc": "000000000701",
      "date": "08\/02\/2019 12:29 PM"
    }
  ]
}
{
  "status": false,
  "message": "Invalid Store Provided - Not in your list"
}