Public developer API

GET /v1/gift-cards/categories

Lists the categories available in the gift card catalog.

Access

A project-specific API key (Authorization: Bearer dapi_live_...) and its Business ID (X-Business-Id). Rate limited per business (120 calls a minute by default).

Example request

curl --request GET \
  --url 'https://production.dutchapi.co/v1/gift-cards/categories' \
  --header 'X-Business-Id: YOUR_BUSINESS_ID' \
  --header 'Authorization: Bearer bsk_live_YOUR_BUSINESS_SECRET'

Response 200

[
  {
    "id": 1,
    "name": "Gaming"
  }
]

Errors

StatuserrorMeaning
403insufficient_scopeThis project key is not allowed to do that.
503gift_cards_not_configuredGift card catalog credentials are not configured.
502gift_cards_catalog_unavailableGift card catalog is temporarily unavailable.

Related references

Browse the complete endpoint directory, the developer portal and the security and controls guide.