Public developer API
POST /v1/gift-cards/price
Rechecks the selected gift card and denomination against the current USD provider price. This does not move wallet funds.
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).
Body
| Field | Type | Required | Description |
|---|---|---|---|
productId | integer | yes | Gift card product ID from the catalog. |
countryCode | string | yes | Two-letter ISO country code. |
unitPrice | number | yes | Recipient-facing unit denomination. |
quantity | integer | no | Quantity from 1 to 5 (default 1). |
Example request
curl --request POST \
--url 'https://production.dutchapi.co/v1/gift-cards/price' \
--header 'X-Business-Id: YOUR_BUSINESS_ID' \
--header 'Authorization: Bearer bsk_live_YOUR_BUSINESS_SECRET' \
--header 'Content-Type: application/json' \
--data '{"productId":10,"unitPrice":25,"quantity":1,"countryCode":"US"}'
Response 200
{
"data": {
"productId": 10,
"productName": "Example Store",
"countryCode": "US",
"unitPrice": 25,
"quantity": 1,
"recipientCurrencyCode": "USD",
"currency": "USD",
"totalUsd": 26.5,
"mode": "live"
}
}
Errors
| Status | error | Meaning |
|---|---|---|
| 403 | insufficient_scope | This project key is not allowed to do that. |
| 400 | gift_card_quote_details_required | Choose a valid gift card, denomination, quantity and country. |
| 404 | gift_card_product_not_found | That gift card is no longer available. |
| 409 | gift_card_price_changed | Review the updated total before purchasing. |
| 502 | gift_cards_price_unavailable | The gift card price could not be confirmed. |