Skip to main content

Create a new order entry

POST 

/orders

Create a new order entry to purchase a giftcard product for a specific customer.

The order will be processed either synchronously or asynchronously based on the processing_mode parameter.

  • sync: the request will only return once the order has been fully processed and the delivery information is available.
  • async: the request will return as soon as the order has been created and processing will continue in the background.

The client can then poll the order status to retrieve the delivery information once available or use webhooks to be notified about the order status changes.

Note: The request must include an Idempotency-Key header to ensure that duplicate requests are not processed multiple times.

Request

Responses

Order entry created and processed successfully

Error Codes

HTTP StatusClassCodeDescription
400invalid_requestinvalid_body_parametersInvalid body parameters with details in the fields attribute
400invalid_stateorder_not_allowed_for_productThe given product is disabled for the client
400idempotencyinvalid_idempotency_key_headerThe Idempotency-Key header is invalid or missing
400idempotencyreused_idempotency_keyThe Idempotency-Key has already been used for a previous request
403forbiddeninsufficient_available_balanceThe client does not have sufficient available balance to place the order
403forbiddencustomer_amount_limit_exceededThe requested amount exceeds the maximum allowed value for the customer