GET /loyalty/{channelLinkId}/customer/wallet

Retrieve the loyalty points and cash amounts for a customer.

Path parameters

  • channelLinkId string Required

Query parameters

  • email string
  • phoneNumber string

Responses

  • 200 application/json

    200

    One of:
  • 404 application/json

    404

GET /loyalty/{channelLinkId}/customer/wallet
curl \
 --request GET 'https://api.staging.deliverect.com/loyalty/{channelLinkId}/customer/wallet' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
    "cash": {
        "balance": 4.45,
        "expirations": [
            {
                "amount": 2.5,
                "date": "2020-01-01"
            }
        ]
    },
    "points": {
        "balance": 10.5,
        "expirations": [
            {
                "amount": 5,
                "date": "2020-01-01"
            }
        ]
    }
}
{
    "cash": {
        "balance": 0,
        "expirations": []
    },
    "points": {
        "balance": 10.5,
        "expirations": [
            {
                "amount": 5,
                "date": "2020-01-01"
            }
        ]
    }
}
Response examples (404)
{}