/api/v1/customer/receipts

GET

/api/v1/customer/receipts

This API method will grab a list of valid receipts available.

Sample Request body

Parameter

Value / Type

Required

per_page

Integer

false

page

Integer

false

Sample Response

{
    "status": true,
    "items": [
        {
            "id": "nK8oWGj0zxqELP1A53ak",
            "customer_id": "nK8oWGj0zxqELP1A53ak",
            "location_id": "Ol2GJkRbElpEA53xM8B1",
            "register_number": 1,
            "cashier_number": "1",
            "cashier_name": "Nick Smith",
            "receipt_number": 282040652,
            "sale_total": "999.99",
            "sale_timestamp": "2018-03-28 10:37:11",
            "cash_tendered": 1,
            "customer": {
                "id": "nK8oWGj0zxqELP1A53ak",
                "first_name": "Nick",
                "last_name": "Smith",
                "email": "[email protected]",
                "date_of_birth": null
            },
            "store_image": "http://controlcenter.local/stores/34/chain-logo",
            "store_name": "Bobs Flowers"
        },
        {
            "id": "LZWBJx0PmYkEwjGdr2vO",
            "customer_id": "nK8oWGj0zxqELP1A53ak",
            "location_id": "Ol2GJkRbElpEA53xM8B1",
            "register_number": 1,
            "cashier_number": "1",
            "cashier_name": "Nick Smith",
            "receipt_number": 686468283,
            "sale_total": "999.99",
            "sale_timestamp": "2018-03-26 10:36:49",
            "cash_tendered": 1,
            "customer": {
                "id": "nK8oWGj0zxqELP1A53ak",
                "first_name": "Nick",
                "last_name": "Smith",
                "email": "[email protected]",
                "date_of_birth": null
            },
            "store_image": "http://controlcenter.local/stores/34/chain-logo",
            "store_name": "Bobs Flowers"
        }
    ]
}
{
    "status": false,
    "errorCode": "NO_ITEMS",
    "message": "No items exist under your account"
}