Place a fulfilment order.
const url = 'https://api.staging.elasticstage.com/store/v1/orders';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"customer":{"email":"ada@example.com"},"items":[{"sku":"example","ean":"example","quantity":1,"unit_price":{"amount":3900,"currency":"GBP"},"vat_rate":0,"purchasable_type":"release","discount":{"amount":390,"currency":"GBP"},"tax_lines":[{"rate":0.2,"title":"VAT","amount":{"amount":650,"currency":"GBP"}}],"duties":{"amount":250,"currency":"GBP"},"duties_tax":{"amount":50,"currency":"GBP"},"presentment":{"unit_price":{"amount":6999,"currency":"CAD"},"discount":{"amount":700,"currency":"CAD"},"tax_lines":[{"rate":0.13,"title":"HST","amount":{"amount":819,"currency":"CAD"}}],"duties":{"amount":455,"currency":"CAD"},"duties_tax":{"amount":91,"currency":"CAD"}}}],"shipping_address":{"full_name":"example","company":"example","address_line_1":"example","address_line_2":"example","city":"example","postal_code":"example","province_code":"example","country_code":"GB"},"shipping_rate_id":"example","shipping_vat_rate":0,"shipping_charged":{"price":{"amount":799,"currency":"GBP"},"tax_lines":[{"rate":0.2,"title":"VAT","amount":{"amount":133,"currency":"GBP"}}]},"source":{"platform":"shopify_app","store_id":"1234","external_order_id":"1234"},"placed_at":"2026-02-01T15:21:40+01:00","taxes_included":true,"presentment_currency":"CAD","discount_codes":[{"code":"SPRING10","type":"percentage","amount":{"amount":390,"currency":"GBP"}}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.staging.elasticstage.com/store/v1/orders \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "customer": { "email": "ada@example.com" }, "items": [ { "sku": "example", "ean": "example", "quantity": 1, "unit_price": { "amount": 3900, "currency": "GBP" }, "vat_rate": 0, "purchasable_type": "release", "discount": { "amount": 390, "currency": "GBP" }, "tax_lines": [ { "rate": 0.2, "title": "VAT", "amount": { "amount": 650, "currency": "GBP" } } ], "duties": { "amount": 250, "currency": "GBP" }, "duties_tax": { "amount": 50, "currency": "GBP" }, "presentment": { "unit_price": { "amount": 6999, "currency": "CAD" }, "discount": { "amount": 700, "currency": "CAD" }, "tax_lines": [ { "rate": 0.13, "title": "HST", "amount": { "amount": 819, "currency": "CAD" } } ], "duties": { "amount": 455, "currency": "CAD" }, "duties_tax": { "amount": 91, "currency": "CAD" } } } ], "shipping_address": { "full_name": "example", "company": "example", "address_line_1": "example", "address_line_2": "example", "city": "example", "postal_code": "example", "province_code": "example", "country_code": "GB" }, "shipping_rate_id": "example", "shipping_vat_rate": 0, "shipping_charged": { "price": { "amount": 799, "currency": "GBP" }, "tax_lines": [ { "rate": 0.2, "title": "VAT", "amount": { "amount": 133, "currency": "GBP" } } ] }, "source": { "platform": "shopify_app", "store_id": "1234", "external_order_id": "1234" }, "placed_at": "2026-02-01T15:21:40+01:00", "taxes_included": true, "presentment_currency": "CAD", "discount_codes": [ { "code": "SPRING10", "type": "percentage", "amount": { "amount": 390, "currency": "GBP" } } ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Example
{ "email": "ada@example.com"}object
The release id, as returned by GET /v1/releases. Provide exactly one of sku or ean.
The release's EAN, in place of sku. Provide exactly one of sku or ean.
The amount the merchant charged the customer for one unit (minor units + currency). Echoed back on GET /v1/orders/{id} and used to compute the order total.
object
Example
1999Example
GBPExample
{ "amount": 3900, "currency": "GBP"}VAT rate as a fraction (0.2 = 20%).
Example
0.2The total discount allocated to this line (all units, including its share of any order-level code), in the store's currency.
object
Example
1999Example
GBPExample
{ "amount": 390, "currency": "GBP"}Every tax applied to this line, with its rate and the amount charged. vat_rate remains the first rate for callers that send one.
One tax applied to a charge. A charge may carry several.
object
Example
{ "rate": 0.2, "title": "VAT", "amount": { "amount": 650, "currency": "GBP" }}The import duties the platform collected from the customer for this line at checkout (all units), in the store's currency, without any tax charged on the duty. Kept for record keeping, never billed. Omit when none were collected.
object
Example
1999Example
GBPExample
{ "amount": 250, "currency": "GBP"}The tax the platform charged on this line's duties, where the destination taxes them, in the store's currency. Kept for record keeping, never billed. Omit when none was charged.
object
Example
1999Example
GBPExample
{ "amount": 50, "currency": "GBP"}The line as the customer saw it, in the currency they paid in. Omit when the store sells in one currency.
object
An amount in the currency the customer saw and paid in (minor units + ISO 4217 code). Never settled in; elasticStage prices nothing from it.
object
Example
2599ISO 4217 currency code.
Example
CADExample
{ "amount": 2599, "currency": "CAD"}The same taxes as the charge's tax_lines, in the same order and at the same rates, in the customer's currency. Paired by position; a list that differs is rejected.
object
VAT rate as a fraction (0.2 = 20%).
Example
0.2An amount in the currency the customer saw and paid in (minor units + ISO 4217 code). Never settled in; elasticStage prices nothing from it.
object
Example
2599ISO 4217 currency code.
Example
CADExample
{ "amount": 2599, "currency": "CAD"}An amount in the currency the customer saw and paid in (minor units + ISO 4217 code). Never settled in; elasticStage prices nothing from it.
object
Example
2599ISO 4217 currency code.
Example
CADExample
{ "amount": 2599, "currency": "CAD"}An amount in the currency the customer saw and paid in (minor units + ISO 4217 code). Never settled in; elasticStage prices nothing from it.
object
Example
2599ISO 4217 currency code.
Example
CADExample
{ "amount": 2599, "currency": "CAD"}An amount in the currency the customer saw and paid in (minor units + ISO 4217 code). Never settled in; elasticStage prices nothing from it.
object
Example
2599ISO 4217 currency code.
Example
CADExample
{ "amount": 2599, "currency": "CAD"}Example
{ "unit_price": { "amount": 6999, "currency": "CAD" }, "discount": { "amount": 700, "currency": "CAD" }, "tax_lines": [ { "rate": 0.13, "title": "HST", "amount": { "amount": 819, "currency": "CAD" } } ], "duties": { "amount": 455, "currency": "CAD" }, "duties_tax": { "amount": 91, "currency": "CAD" }}VAT rate as a fraction (0.2 = 20%).
Example
0.2The shipping charge as the integrating platform took it at checkout. elasticStage prices dispatch from shipping_rate_id, never from this.
object
What the platform charged the customer for shipping, before any discount, in the store's currency.
object
Example
1999Example
GBPExample
{ "amount": 1999, "currency": "GBP"}Any discount applied to the shipping charge.
object
Example
1999Example
GBPExample
{ "amount": 1999, "currency": "GBP"}One tax applied to a charge. A charge may carry several.
object
Example
{ "rate": 0.2, "title": "VAT", "amount": { "amount": 650, "currency": "GBP" }}object
An amount in the currency the customer saw and paid in (minor units + ISO 4217 code). Never settled in; elasticStage prices nothing from it.
object
Example
2599ISO 4217 currency code.
Example
CADExample
{ "amount": 2599, "currency": "CAD"}The same taxes as the charge's tax_lines, in the same order and at the same rates, in the customer's currency. Paired by position; a list that differs is rejected.
object
VAT rate as a fraction (0.2 = 20%).
Example
0.2An amount in the currency the customer saw and paid in (minor units + ISO 4217 code). Never settled in; elasticStage prices nothing from it.
object
Example
2599ISO 4217 currency code.
Example
CADExample
{ "amount": 2599, "currency": "CAD"}An amount in the currency the customer saw and paid in (minor units + ISO 4217 code). Never settled in; elasticStage prices nothing from it.
object
Example
2599ISO 4217 currency code.
Example
CADExample
{ "amount": 2599, "currency": "CAD"}Example
{ "price": { "amount": 799, "currency": "GBP" }, "tax_lines": [ { "rate": 0.2, "title": "VAT", "amount": { "amount": 133, "currency": "GBP" } } ]}object
Example
{ "platform": "shopify_app", "store_id": "1234", "external_order_id": "1234"}When the customer placed the order on the integrating platform. elasticStage records its own created_at regardless.
Example
2026-02-01T15:21:40+01:00Whether the prices on this order include tax, as the platform charged them.
The currency the customer paid in. Omit when it is the store's currency.
Example
CADThe discount codes applied to the whole order, if any.
object
The total this code took off the whole platform order, in the store's currency. That order may hold lines elasticStage does not fulfil; each line's own discount is what reached it.
object
Example
1999Example
GBPExample
{ "amount": 1999, "currency": "GBP"}Example
{ "code": "SPRING10", "type": "percentage", "amount": { "amount": 390, "currency": "GBP" }}Responses
Section titled “ Responses ”Default Response
object
Example
{ "id": "ord_3a9f21", "status": "processing"}Default Response
object
Example
{ "statusCode": 400, "code": "VALIDATION_ERROR", "error": "Bad Request", "message": "Request validation failed.", "details": [ { "field": "items", "reason": "must contain at least 1 item" } ]}Default Response
object
Example
{ "statusCode": 401, "code": "UNAUTHORIZED", "error": "Unauthorized", "message": "Authentication required."}Default Response
object
Example
{ "id": "ord_3a9f21", "status": "payment_failed"}Default Response
object
Example
{ "statusCode": 403, "code": "FORBIDDEN", "error": "Forbidden", "message": "Insufficient permissions."}Default Response
object
Example
{ "statusCode": 404, "code": "NOT_FOUND", "error": "Not Found", "message": "The requested resource was not found."}Default Response
object
Example
{ "statusCode": 409, "code": "CONFLICT", "error": "Conflict", "message": "Idempotency-Key was already used with a different request body."}Default Response
object
Example
{ "statusCode": 422, "code": "UNPROCESSABLE_ENTITY", "error": "Unprocessable Entity", "message": "One or more items could not be shipped.", "details": [ { "field": "items.0.sku", "reason": "Variant 'LUM-ME-12-001' is not available for purchase." } ]}Default Response
object
Example
{ "statusCode": 429, "code": "RATE_LIMITED", "error": "Too Many Requests", "message": "Rate limit exceeded."}Default Response
object
Example
{ "statusCode": 500, "code": "INTERNAL_ERROR", "error": "Internal Server Error", "message": "An unexpected error occurred."}Default Response
object
Example
{ "statusCode": 503, "code": "SERVICE_UNAVAILABLE", "error": "Service Unavailable", "message": "The service is temporarily unavailable."}