GIFT CARDS
Retrieve a gift card order
GEThttps://production.dutchapi.co/v1/gift-cards/orders/:reference
Retrieves the organization-scoped gift card order and, when available, its decrypted delivery details.
🔒Send the project API key as a Bearer token and your Business ID with this call.
Responses
{
"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"
}
}
}
{
"error": "insufficient_scope",
"message": "This project key is not allowed to do that."
}
Errors
| Status | error | Meaning |
|---|
| 403 | insufficient_scope | This project key is not allowed to do that. |
| 404 | gift_card_order_not_found | Gift card order not found. |
| 503 | gift_card_delivery_unavailable | Gift card delivery details cannot be unlocked. Contact support. |