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

FieldTypeRequiredDescription
productIdintegeryesGift card product ID from the catalog.
countryCodestringyesTwo-letter ISO country code.
unitPricenumberyesRecipient-facing unit denomination.
quantityintegernoQuantity 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

StatuserrorMeaning
403insufficient_scopeThis project key is not allowed to do that.
400gift_card_quote_details_requiredChoose a valid gift card, denomination, quantity and country.
404gift_card_product_not_foundThat gift card is no longer available.
409gift_card_price_changedReview the updated total before purchasing.
502gift_cards_price_unavailableThe gift card price could not be confirmed.

Related references

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