Skip to main content
Version: 1.01

Create Order

POST /api/1.01/order

Create an order of products. Orders have to be confirmed before they are fully completed.

info

Note: Relograde API only allows order to be paid by balance.

Requested Fields

FieldTypeRequiredDefaultDescription
referenceStringNo-Reference text of the order
paymentCurrencyStringYes-Preferred payment currency
itemsArrayYes-List of items (products)

Item Object

FieldTypeRequiredDefaultDescription
productSlugStringYes-Slug of the item (product)
amountIntegerYes-Amount of the item (product)
faceValueDecimalNo-Value of product. Required for variable products

Example Request

curl -X POST https://connect.relograde.com/api/1.01/order \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '
{
"items": [
{
"amount": 5,
"productSlug": "rewarble-ww-eur-5"
},
{
"amount": 1,
"productSlug": "rewarble-variable-eur",
"faceValue": 32
}
],
"reference": "test",
"paymentCurrency": "eur"
}'

Example Response

{
"trx": "RELO0TFQK8FXQXSPURM",
"priceCurrency": "eur",
"priceAmount": 58.14,
"priceVat": 0.23,
"priceInclVat": 58.37,
"priceFx": 1.0,
"dateCreated": "2025-01-24T11:30:20.000Z",
"type": "api",
"reference": "test",
"state": "sandbox",
"orderStatus": "created",
"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": 5.1,
"totalPriceAmount": 25.5,
"totalPriceVat": 0.1,
"totalPriceInclVat": 25.6,
"priceFx": 1.0,
"paymentCurrency": "eur",
"singlePriceAmountInPaymentCurrency": 5.1,
"totalPriceAmountInPaymentCurrency": 25.5,
"totalPriceVatInPaymentCurrency": 0.1,
"totalPriceInclVatInPaymentCurrency": 25.6,
"orderLines": [
{
"tag": "TAG-189a9fe4-3a7e-40fd-a357-153e885481fd",
"status": "created"
},
{
"tag": "TAG-1ee8f999-c47f-4cfb-9309-0912f62dcc49",
"status": "created"
},
{
"tag": "TAG-faef041d-774e-4c0a-88ee-6ac3ae1261c3",
"status": "created"
},
{
"tag": "TAG-6fa744d7-4a6b-415a-9833-d06274c73145",
"status": "created"
},
{
"tag": "TAG-6823ef30-94cd-45d4-a23b-25e93ebb9145",
"status": "created"
}
],
"linesCompleted": 0,
"productSlug": "rewarble-ww-eur-5",
"faceValueAmount": 5.0,
"faceValueCurrency": "eur",
"faceValueFx": 1.0
},
{
"product": {
"slug": "rewarble-variable-eur",
"name": "Rewarble Variable EUR",
"brand": "rewarble",
"productType": "topup",
"region": "ww",
"faceValueCurrency": "eur",
"faceValueMin": 5.0,
"faceValueMax": 500.0,
"mainCategory": "giftcard",
"redeemType": "currency",
"isStocked": true
},
"amount": 1,
"priceCurrency": "eur",
"singlePriceAmount": 32.64,
"totalPriceAmount": 32.64,
"totalPriceVat": 0.13,
"totalPriceInclVat": 32.77,
"priceFx": 1.0,
"paymentCurrency": "eur",
"singlePriceAmountInPaymentCurrency": 32.64,
"totalPriceAmountInPaymentCurrency": 32.64,
"totalPriceVatInPaymentCurrency": 0.13,
"totalPriceInclVatInPaymentCurrency": 32.77,
"orderLines": [
{
"tag": "TAG-f43c2cf3-bebc-4486-8dcb-c417c874db0b",
"status": "created"
}
],
"linesCompleted": 0,
"productSlug": "rewarble-variable-eur",
"faceValueAmount": 32.0,
"faceValueCurrency": "eur",
"faceValueFx": 1.0
}
]
}

Response Fields

Field nameField typeField description
trxStringTrx of order (Identifier)
priceCurrencyStringCurrency of price
priceAmountDecimalPrice before VAT
priceVatDecimalVAT amount
priceInclVatDecimalPrice including VAT
priceFxDecimalPrice calculation multiplier
dateCreatedDateCreation date of order
typeStringType of system used to create order (portal or api)
referenceStringReference of order
stateStringEnvironment of order (live or sandbox)
orderStatusStringStatus of order
isBalancePaymentBooleanWhether the order is a balance payment or not
downloadedBooleanWhether the order has been downloaded or not
itemsObjectItem object
productObjectProduct object
slugStringSlug of product
nameStringName of product
brandStringBrand of product
productTypeStringType of product
regionStringRegion in which the product can be used
faceValueAmountDecimalValue of product
faceValueCurrencyStringCurrency of faceValue
mainCategoryStringMain category of product
redeemTypeStringRedeem type of product
isStockedBooleanWhether the product is in stock or not
amountIntegerAmount of product
priceCurrencyStringCurrency of price
singlePriceAmountDecimalPrice for a single product
totalPriceAmountDecimalTotal price of all products
totalPriceVatDecimalTotal VAT amount
totalPriceInclVatDecimalTotal price including VAT
paymentCurrencyStringCurrency of payment price
singlePriceAmountInPaymentCurrencyDecimalPrice of a single product in payment currency
totalPriceAmountInpaymentCurrencyDecimalTotal price of all products in payment currency
totalPriceVatInPaymentCurrencyDecimalTotal VAT amount in payment currency
totalPriceInclVatInPaymentCurrencyDecimalTotal price including VAT in payment currency
orderLinesArrayArray of codes ordered
tagStringInternal tag (id) of the code
statusStringStatus of product
linesCompletedIntegerAmount of orderLines with status finished
productSlugStringSlug of product
faceValueAmountDecimalValue of product
faceValueCurrencyStringCurrency of faceValueAmount
faceValuefxDecimalPrice calculation multiplier for faceValueAmount

Errors

Errors response
EndpointHTTP status codeHTTP statusMessageReason
Create order400BAD_REQUESTcompany not verifiedCompany is not verified
Create order400BAD_REQUESTreference' too long, max 250 charactersEntered refence is too long
Create order400BAD_REQUESTno 'items' in the requestNo items object inside request body
Create order400BAD_REQUESTno valid 'paymentCurrency' providedNo paymentCurerency in request body
Create order400BAD_REQUESTno account found with specified currencyInvalid paymentCurerency in request body
Create order400UNPROCESSABLE_ENTITYsome offers not available: <offerNames>One or more offers are not available
Create order400UNPROCESSABLE_ENTITYProduct <productName> is out of stockOne or more productis out of stock
Create order400BAD_REQUESTnegative item amount not supported, need at least 1 itemamount field in item object is negative or 0
Create order400BAD_REQUESTcan not order more than 1000 items per productamount field(s) in item object totaling over 1000
Create order400BAD_REQUESTproduct does not existProduct cannot be found (likely does not exist)
Create order400BAD_REQUESTMissing facevalue for Variable productNo faceValue field has been entered for a variable product in request body
Create order400BAD_REQUESTProduct <productSlug> below minimum faceValue (<faceValueMin>)faceValue field is below minimum of product
Create order400BAD_REQUESTProduct <productSlug> above maximum faceValue (<faceValueMax>)faceValue field is below maximum of product

Notes

note
  • Currency codes follow ISO 4217 standard
  • Codes shown in example have been altered and made invalid
  • Price information may be provided either as fixed price or as fee
  • Price information may have been altered in the documentation
  • Relograde API only allows order to be paid by balance