GET
/
buyers
/
gift-cards
curl --request GET \
  --url https://api.{gr4vy_id}.gr4vy.app/buyers/gift-cards \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "balance": 1299,
      "balance_error_code": "incorrect_currency",
      "balance_raw_error_code": "10363",
      "balance_raw_error_message": "This currency is not supported by the merchant.",
      "bin": "412345",
      "currency": "USD",
      "expiration_date": "2013-07-16T19:23:00.000+00:00",
      "id": "e6cdf979-87e2-4796-8ff6-9784d5aed893",
      "last4": "1234",
      "merchant_account_id": "default",
      "sub_bin": "554",
      "type": "gift-card"
    }
  ]
}

This endpoint requires the gift-cards.read scope.

This feature is in limited release and not yet available in all environments.

Authorizations

Authorization
string
headerrequired

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

Query Parameters

buyer_id
string

Filters the results to only the items for which the buyer has an id that matches this value.

buyer_external_identifier
string

Filters the results to only the items for which the buyer has an external_identifier that matches this value.

Response

200 - application/json
items
object[]

A list of stored gift cards.