GET Customer gift cards
Lists the gift cards the customer has saved, for a wallet screen.
Balances are not included — balance is null on every entry here. Read a single card when you need to show what is left on it.
Path Parameters
- Type: stringcustomer
_account _id requiredId of the Customer Account
Headers
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringAccept
- Language requiredLocal language code (in format xx-XX, or simpler xx) for translation purposes
- Type: stringDevice
- U U I D requiredUser's Device UUID
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringContent
- Type requiredContent-Type header
- Type: stringAuthorization
Authorization header
Responses
- application/json
Request Example for get/customer-accounts/{customer_account_id}/gift-cards
curl 'https://api-public-demo.menu.app/api/customer-accounts/{customer_account_id}/gift-cards' \
--header 'Application: application-key' \
--header 'Accept: application/json' \
--header 'Accept-Language: en' \
--header 'Device-UUID: 1234' \
--header 'API-VERSION: ' \
--header 'Content-Type: application/json'
{
"status": "OK",
"code": 200,
"data": {
"gift_cards": [
{
"stored_payment_method_id": 974652,
"card_number": "7321950000010535899",
"masked_number": "XXXXXXXXXXXXXXX5899",
"balance": null,
"last_four_digits": "5899",
"expiration_date": "",
"created_at": "2023-06-01 13:40:58"
}
]
}
}