GET
/
buyers
/
gift-cards
curl --request GET \
  --url https://api.{id}.gr4vy.app/buyers/gift-cards \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "type": "gift-card",
      "id": "356d56e5-fe16-42ae-97ee-8d55d846ae2e",
      "merchant_account_id": "default",
      "bin": "412345",
      "sub_bin": "554",
      "last4": "1234",
      "currency": "AUD",
      "expiration_date": "2013-07-16T19:23:00.000+00:00",
      "balance": 1299,
      "balance_error_code": "incorrect_currency",
      "balance_raw_error_code": "10363",
      "balance_raw_error_message": "This currency is not supported by the merchant."
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-gr4vy-merchant-account-id
string | null

The ID of the merchant account to use for this request.

Examples:

"default"

Query Parameters

buyer_external_identifier
string | null
buyer_id
string | null
timeout_in_seconds
number
default:1

Response

200
application/json
Successful Response

The response is of type object.