Confirm Order
PATCH
/api/Next/order/confirm/{trx}
Confirm an order after creation using the trx returned by the Create order endpoint. This endpoint will attempt to return an order with the status finished
. If the order cannot be finished within 20-30 seconds, the endpoint will return an order with the status pending
.
To find out when the order is finished, you can either call the Find order endpoint at a later time or make use of our Webhook feature.
If you wish for the order to either be delivered instantly or not at all, it is suggested to use the Resolve order endpoint
info
- This endpoint should be used when orders are allowed to be delivered at a later time.
- In sandbox mode this endpoint has a 50% chance to be cancelled immediately for testing purposes.
Requested Parameters
Field | Type | Required | Default | Description |
---|---|---|---|---|
trx | String | Yes | - | Trx of order |
Example Request
curl -X PATCH https://connect.relograde.com/api/Next/order/confirm/RELO0TFQK8FXQXSPURM \
-H "Authorization: Bearer <token>"
Example Response
- Finished
- Pending
{
"trx": "RELO0T6YGUVIF4TBWE2",
"priceCurrency": "eur",
"priceAmount": 24.80,
"priceVat": 0.00,
"priceInclVat": 24.80,
"priceFx": 1.00000000,
"dateCreated": "2025-04-14T08:05:34.000Z",
"paymentStatus": "paid",
"type": "api",
"reference": "test",
"state": "sandbox",
"orderStatus": "finished",
"isBalancePayment": true,
"downloaded": false,
"items": [
{
"product": {
"slug": "rewarble-ww-eur-5",
"name": "rewarble 5 EUR WW",
"brand": "rewarble",
"productType": "topup",
"region": "ww",
"faceValueAmount": 5.0,
"faceValueCurrency": "eur",
"mainCategory": "giftcard",
"redeemType": "currency",
"isStocked": true
},
"amount": 5,
"priceCurrency": "eur",
"singlePriceAmount": 4.96,
"totalPriceAmount": 24.80,
"totalPriceVat": 0,
"totalPriceInclVat": 24.80,
"priceFx": 1.00000000,
"paymentCurrency": "eur",
"singlePriceAmountInPaymentCurrency": 4.96,
"totalPriceAmountInPaymentCurrency": 24.80,
"totalPriceVatInPaymentCurrency": 0.00,
"totalPriceInclVatInPaymentCurrency": 24.80,
"orderLines": [
{
"tag": "TAG-566a410b-a104-4337-b07a-054bdab4ae9b",
"voucherCode": "TESTUMAJSPFUYVVI",
"voucherSerial": "bfcb278f-0680-47e0-958c-d9ac5f716948",
"status": "finished"
},
{
"tag": "TAG-7386847a-c844-4d25-8451-1ff26597b71a",
"voucherCode": "TESTRAKA7XONS1BX",
"voucherSerial": "8b4def36-f631-4a26-a1ae-a0ce0581d0bf",
"status": "finished"
},
{
"tag": "TAG-8f9f1dd9-600e-4e8c-8e11-d9277b5c2031",
"voucherCode": "TEST63H2IK9JP5XC",
"voucherSerial": "cd00523f-3759-4c82-855f-4ab8f5368195",
"voucherDateExpired": "2026-04-14T08:05:41.000Z",
"status": "finished"
},
{
"tag": "TAG-82ce8660-5f61-4dd1-8c9a-c2d3b1e6c3ce",
"voucherCode": "TESTZ59ZXOCZSAZJ",
"voucherSerial": "744ca45e-d94e-4e91-8809-79f2dce0ab0b",
"voucherDateExpired": "2026-04-14T08:05:41.000Z",
"status": "finished"
},
{
"tag": "TAG-5605b37f-56ff-4b71-a731-7fc0afde5815",
"voucherCode": "TESTYWEFA2RRQQ2C",
"voucherSerial": "6f119457-a874-4c04-99ab-522f8993d3f9",
"status": "finished"
}
],
"linesCompleted": 5,
"productSlug": "rewarble-ww-eur-5",
"faceValueAmount": 5.00,
"faceValueCurrency": "eur",
"faceValueFx": 1.00000000
}
]
}
{
"trx": "RELO62IXDNJ0YA68OZT",
"priceCurrency": "eur",
"priceAmount": 24.80,
"priceVat": 0.00,
"priceInclVat": 24.80,
"priceFx": 1.00000000,
"dateCreated": "2025-04-14T08:06:59.000Z",
"paymentStatus": "paid",
"type": "api",
"reference": "test",
"state": "sandbox",
"orderStatus": "pending",
"isBalancePayment": true,
"downloaded": false,
"items": [
{
"product": {
"slug": "rewarble-ww-eur-5",
"name": "rewarble 5 EUR WW",
"brand": "rewarble",
"productType": "topup",
"region": "ww",
"faceValueAmount": 5.0,
"faceValueCurrency": "eur",
"mainCategory": "giftcard",
"redeemType": "currency",
"isStocked": true
},
"amount": 5,
"priceCurrency": "eur",
"singlePriceAmount": 4.96,
"totalPriceAmount": 24.80,
"totalPriceVat": 0,
"totalPriceInclVat": 24.80,
"priceFx": 1.00000000,
"paymentCurrency": "eur",
"singlePriceAmountInPaymentCurrency": 4.96,
"totalPriceAmountInPaymentCurrency": 24.80,
"totalPriceVatInPaymentCurrency": 0.00,
"totalPriceInclVatInPaymentCurrency": 24.80,
"orderLines": [
{
"tag": "TAG-aa440cf5-56c3-44b8-a3b6-10338e527687",
"voucherCode": "TESTXQP580E1HR23",
"voucherSerial": "31405c2e-479f-47b3-a5ba-5c4278fd4116",
"voucherDateExpired": "2026-04-14T08:07:05.000Z",
"status": "finished"
},
{
"tag": "TAG-68e1fa70-5d8d-4810-aab3-95a755f1a3a2",
"voucherCode": "TEST8UWQHSLYOOCX",
"voucherSerial": "4a85a46d-0e85-4c94-9601-4cadb60e1102",
"voucherDateExpired": "2026-04-14T08:07:05.000Z",
"status": "finished"
},
{
"tag": "TAG-88063c1c-c3f6-4a37-915e-9017d4a2d2b0",
"voucherCode": "TESTQ1NLZNFVZVFV",
"voucherSerial": "259132db-d183-45f5-a93d-ec96c0ea8089",
"status": "finished"
},
{
"tag": "TAG-4ae4791a-c049-4edc-a31d-cea30d1846b5",
"voucherCode": "TESTHMQ81RGFOJVO",
"voucherSerial": "d3ad214b-f77f-4e68-840c-53f0ed606faf",
"status": "finished"
},
{
"tag": "TAG-ca3f9ea6-8754-4df0-ba61-b4cf36132bae",
"status": "pending"
}
],
"linesCompleted": 4,
"productSlug": "rewarble-ww-eur-5",
"faceValueAmount": 5.00,
"faceValueCurrency": "eur",
"faceValueFx": 1.00000000
}
]
}
Response Fields
Field name | Field type | Field description |
---|---|---|
trx | String | Trx of order (Identifier) |
priceCurrency | String | Currency of price |
priceAmount | Decimal | Price before VAT |
priceVat | Decimal | VAT amount |
priceInclVat | Decimal | Price including VAT |
priceFx | Decimal | Price calculation multiplier |
dateCreated | Date | Creation date of order |
paymentStatus | String | Status of payment |
type | String | Type of system used to create order (portal or api) |
reference | String | Reference of order |
state | String | Environment of order (live or sandbox) |
orderStatus | String | Status of order |
isBalancePayment | Boolean | Whether the order is a balance payment or not |
downloaded | Boolean | Whether the order has been downloaded or not |
items | Object | Item object |
product | Object | Product object |
slug | String | Slug of product |
name | String | Name of product |
brand | String | Brand of product |
productType | String | Type of product |
region | String | Region in which the product can be used |
faceValueAmount | Decimal | Value of product |
faceValueCurrency | String | Currency of faceValue |
mainCategory | String | Main category of product |
redeemType | String | Redeem type of product |
isStocked | Boolean | Whether the product is in stock or not |
amount | Integer | Amount of product |
priceCurrency | String | Currency of price |
singlePriceAmount | Decimal | Price for a single product |
totalPriceAmount | Decimal | Total price of all products |
totalPriceVat | Decimal | Total VAT amount |
totalPriceInclVat | Decimal | Total price including VAT |
paymentCurrency | String | Currency of payment price |
singlePriceAmountInPaymentCurrency | Decimal | Price of a single product in payment currency |
totalPriceAmountInpaymentCurrency | Decimal | Total price of all products in payment currency |
totalPriceVatInPaymentCurrency | Decimal | Total VAT amount in payment currency |
totalPriceInclVatInPaymentCurrency | Decimal | Total price including VAT in payment currency |
orderLines | Array | Array of codes ordered |
tag | String | Internal tag (id) of the code |
status | String | Status of product |
linesCompleted | Integer | Amount of orderLines with status finished |
productSlug | String | Slug of product |
faceValueAmount | Decimal | Value of product |
faceValueCurrency | String | Currency of faceValueAmount |
faceValuefx | Decimal | Price calculation multiplier for faceValueAmount |
Errors
Errors response
Endpoint | HTTP status code | HTTP status | Message | Reason |
---|---|---|---|---|
Confirm order | 400 | BAD_REQUEST | MULTIPLE_ORDER_LINES | Mutiple items have been requested in the order (Not allowed when using the resolve endpoint) |
Confirm order | 404 | NOT_FOUND | order not found | Invalid order TRX |
Confirm order | 400 | BAD_REQUEST | this order can not be confirmed | Order status is not 'created' |
Confirm order | 400 | BAD_REQUEST | this order has expired, orders need confirmation within 24 hours | Order was made over 24 hours ago |
Confirm order | 400 | BAD_REQUEST | company not verified | Company is not verified |
Confirm order | 422 | UNPROCESSABLE_ENTITY | some offers not available: <offerNames> | One or more offers are not available |
Confirm order | 422 | UNPROCESSABLE_ENTITY | Product <productName> is out of stock | One or more productis out of stock |
Confirm order | 402 | PAYMENT_REQUIRED | insufficient balance | User does not have enough balance on the specified account |
Notes
note
- Currency codes follow ISO 4217 standard
- Codes shown in example have been altered and made invalid
- Only orders with status
created
can be confirmed - Price information may be provided either as fixed price or as fee.
- Price information may have been altered in the documentation
- In sandbox mode this endpoint has a 50% chance to be cancelled immediately for testing purposes.