Create New Order
Creates a single gift-card order against your integration wallet.
How to call
- Method: POST
- URL:
{server}/api/v1/business/orders - Headers:
X-API-Key, optionalIdempotency-Key(recommended for retries). - Body: JSON matching CreateOrderRequest (
productCode,merchant,currency,valuePurchased, optional recipient fields).
Responses
- 201 when the order is created synchronously (or idempotent replay).
- 202 when async processing is enabled (
orderRequestId,status: queued); poll GET/api/v1/business/orders/order-requests/{id}. - 402 when the wallet balance (after holds) is insufficient.
Authorizations
Your UGiftMe API key for authentication.
Format: Secure API key (e.g., <your-api-key>)
Required: All endpoints require this header
Example: X-API-Key: <your-api-key>
Headers
Body
Response
Order created (sync path or idempotent replay)
Account-facing order shape. List/search responses include imageUrl from withImageUrl; synchronous 201 creates may include populated product instead of imageUrl.
"65b0d1e2f3a4b56789012345"
"AMAZON_UK_STD"
Populated product on synchronous 201 order responses.
{
"imageUrl": "https://cdn.ugift.me/products/amazon-uk-card.png",
"merchant": "Amazon UK",
"productCode": "AMAZON_UK_STD"
}
"GBP"
50
"active"
true
true
false
1
"txn_01HZZ9K2M4P8Q6R7S8T9V0W1X"
"2025-04-12T14:22:10.000Z"
"2025-04-12T14:22:11.000Z"
"https://cdn.ugift.me/products/amazon-uk-card.png"
Present on some gift/recipient flows.
