Public developer API

GET /v1/gift-cards/orders/:reference

Retrieves the organization-scoped gift card order and, when available, its decrypted delivery details.

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/orders/:reference' \
  --header 'X-Business-Id: YOUR_BUSINESS_ID' \
  --header 'Authorization: Bearer bsk_live_YOUR_BUSINESS_SECRET'

Response 200

{
  "data": {
    "transactionId": "gft_8f2c1a",
    "status": "completed",
    "productName": "Example Store",
    "countryCode": "US",
    "recipientEmail": "customer@example.com",
    "unitPrice": 25,
    "quantity": 1,
    "chargedUsd": 26.5,
    "providerReference": "provider-order-1",
    "delivery": {
      "code": "XXXX-XXXX"
    }
  }
}

Errors

StatuserrorMeaning
403insufficient_scopeThis project key is not allowed to do that.
404gift_card_order_not_foundGift card order not found.
503gift_card_delivery_unavailableGift card delivery details cannot be unlocked. Contact support.

Related references

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