GET Customer gift card

​

Returns one saved gift card together with its live balance, read from the payment processor at the moment you call.

Because it talks to the processor it is slower than the list and can fail when the processor is unavailable, so load it when the customer opens a card rather than for every card in a list.

The path takes the stored payment method id from the customer's wallet, not a vault reference.

Path Parameters

Headers

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

  • Application key for specific client app

  • Content-Type header

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

  • Authorization header

Responses

  • application/json
Request Example for get/customer-accounts/{customer_account_id}/gift-cards/{stored_payment_method_id}
curl 'https://api-public-demo.menu.app/api/customer-accounts/{customer_account_id}/gift-cards/{stored_payment_method_id}' \
  --header 'Accept: application/json' \
  --header 'Application: application-key' \
  --header 'Content-Type: application/json' \
  --header 'Accept-Language: en'
{
  "status": "OK",
  "code": 200,
  "data": {
    "gift_card": {
      "stored_payment_method_id": 974652,
      "card_number": "7321950000010535899",
      "masked_number": "XXXXXXXXXXXXXXX5899",
      "balance": 2500,
      "last_four_digits": "5899",
      "expiration_date": "",
      "created_at": "2023-06-01 13:40:58"
    }
  }
}