Skip to main content

Create a new retail order entry

POST 

/retail_orders

note

This endpoint is a work in progress and may change before being stabilized.

Create a new order entry to purchase a giftcard product in a physical retail location. This will not actually trigger the purchase and is only responsible for preliminary checks and verification.

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

Request

Responses

Retail Order entry created and processed successfully

Error Codes

HTTP StatusClassCodeDescription
400invalid_requestinvalid_body_parametersInvalid body parameters with details in the fields attribute
400invalid_stateproduct_not_availableThe given product does not exist or 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
403forbiddenstore_limit_exceededThe requested amount exceeds the maximum allowed value for the store
403forbiddenterminal_limit_exceededThe requested amount exceeds the maximum allowed value for the terminal
403forbiddenreceipt_limit_exceededThe requested amount exceeds the maximum allowed value for the receipt
403forbiddenproduct_limit_exceededThe requested amount exceeds the maximum allowed value for the product
403forbiddenprocessing_declinedThe order processing was declined
403forbiddenfraudulent_processing_declinedThe order processing was declined due to fraudulent behaviour.