GIFT CARDS
Purchase a gift card
Purchases a gift card from the organization USD wallet after rechecking the provider price. Delivery details are encrypted at rest and can be retrieved through the order endpoint.
🔒Send the project API key as a Bearer token and your Business ID with this call.
Send an Idempotency-Key header and reuse it only when retrying the same purchase.
First call the price endpoint and pass its totalUsd as quotedTotalUsd; if the current price changed, the purchase is rejected without charging.
Body Params
productIdintegerrequiredGift card product ID.
countryCodestringrequiredTwo-letter ISO country code.
unitPricenumberrequiredRecipient-facing unit denomination.
quantityintegeroptionalQuantity from 1 to 5 (default 1).
quotedTotalUsdnumberrequiredCurrent USD total returned by the price endpoint.
recipientEmailstringrequiredEmail address for gift card delivery.
recipientPhonestringoptionalRecipient phone number in international format.
Responses
{
"data": {
"transactionId": "gft_8f2c1a",
"status": "completed"
}
}
{
"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. |
| 400 | idempotency_key_required | Send an Idempotency-Key header. |
| 402 | insufficient_funds | The wallet balance is too low. |
| 400 | gift_card_order_details_required | Provide a valid recipient email and current quote. |
| 409 | gift_card_price_changed | The price changed; request a new quote. |
| 422 | gift_card_order_rejected | The provider rejected the order and the USD wallet was refunded. |
| 503 | gift_cards_live_mode_required | Gift card purchases are currently unavailable. |
Updated 2026
Did this page help you?