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

  • Id of the Customer Account

Headers

  • Application key for specific client app

  • Type of content accepted by the API (application/json in most cases)

  • Local language code (in format xx-XX, or simpler xx) for translation purposes

  • User's Device UUID

  • Version of the API to be used

  • Content-Type header

  • 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"
      }
    ]
  }
}