Skip to content
Elara One docs
Orders

Dispatch an order

POST
/v1/merchant/orders/{reference}/dispatch

Authorization

tenantKeybearerAuth
headerX-Tenant-Key<token>

The public store key (pk_live_…). Required on every call.

headerAuthorizationBearer <token>

A customer token from POST /v1/auth/login, or a merchant API key, on routes that need one.

Path Parameters

reference*string

Header Parameters

X-Client-IP?string

Optional. IP address of the shopper (one IPv4/IPv6, no port, no list). Honoured only together with a valid X-Tenant-Secret; ignored otherwise. Used for rate limits and recorded with form submissions.

X-Tenant-Secret?string

Optional here. Server secret of the store: server-to-server only, never from a browser. Enables X-Client-IP.

Idempotency-Key?string

Optional; recommended (a UUID made once per user action, reused only to retry that action). Only a success is stored (24 hours): the same key with the same body, URI and credentials (Authorization, X-Cart-Token, X-Chat-Token) replays it (Idempotent-Replayed: true); anything else under that key is 422 IDEMPOTENCY_KEY_REUSED. An error is never stored: after a 4xx or 5xx, retrying with the same key runs the request again.

Request Body

application/json
  1. body

POST merchant/orders/{reference}/dispatch. Every field is optional:

carrier a known carrier (royal_mail, parcelforce, dpd, evri, dhl, own_fleet) or any other name, ≤ 32 service e.g. "Tracked 48", ≤ 64 tracking_number ≤ 64 tracking_url http(s) only — storefronts render it as a link — ≤ 2048 dispatched_at ISO-8601, not in the future; now when omitted

carrier?|
Lengthlength <= 32
service?|
Lengthlength <= 64
tracking_number?|
Lengthlength <= 64
tracking_url?|
Formaturi
Lengthlength <= 2048
dispatched_at?|
Formatdate-time

Response Body

Success.

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.elaraone.app/api/v1/merchant/orders/string/dispatch' \  -H 'X-Tenant-Key: pk_live_…' \  -H 'X-Tenant-Secret: your-server-secret' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "id": 0,    "reference": "string",    "status": "string",    "status_label": "string",    "placed_at": "string",    "dispatched_at": "string",    "delivered_at": "string",    "cancelled_at": "string",    "lines": [      {        "id": 0,        "type": "string",        "description": "string",        "identifier": "string",        "option": "string",        "quantity": 0,        "unit_price": {          "amount": 0,          "currency": "string",          "formatted": "string"        },        "sub_total": {          "amount": 0,          "currency": "string",          "formatted": "string"        },        "discount_total": {          "amount": 0,          "currency": "string",          "formatted": "string"        },        "discounts": [          {            "id": 0,            "amount": {              "amount": 0,              "currency": "string",              "formatted": "string"            }          }        ],        "tax_total": {          "amount": 0,          "currency": "string",          "formatted": "string"        },        "total": {          "amount": 0,          "currency": "string",          "formatted": "string"        }      }    ],    "shipping_method": {      "identifier": "string",      "name": "string",      "kind": "collect",      "collection_location": {        "id": 0,        "name": "string",        "line_one": "string",        "line_two": "string",        "city": "string",        "state": "string",        "postcode": "string",        "country": "string",        "instructions": "string",        "opening_hours": {          "property1": "string",          "property2": "string"        }      }    },    "shipments": [      {        "carrier": "string",        "carrier_label": "string",        "service": "string",        "tracking_number": "string",        "tracking_url": "string",        "dispatched_at": "string"      }    ],    "addresses": {      "shipping": {        "title": "string",        "first_name": "string",        "last_name": "string",        "company_name": "string",        "line_one": "string",        "line_two": "string",        "line_three": "string",        "city": "string",        "state": "string",        "postcode": "string",        "country_id": 0,        "delivery_instructions": "string",        "contact_email": "string",        "contact_phone": "string"      },      "billing": {        "title": "string",        "first_name": "string",        "last_name": "string",        "company_name": "string",        "line_one": "string",        "line_two": "string",        "line_three": "string",        "city": "string",        "state": "string",        "postcode": "string",        "country_id": 0,        "delivery_instructions": "string",        "contact_email": "string",        "contact_phone": "string"      }    },    "sub_total": {      "amount": 0,      "currency": "string",      "formatted": "string"    },    "discount_total": {      "amount": 0,      "currency": "string",      "formatted": "string"    },    "coupon_code": "string",    "discounts": [      {        "id": 0,        "name": "string",        "label": "string",        "kind": "string",        "coupon": "string",        "amount": {          "amount": 0,          "currency": "string",          "formatted": "string"        },        "items_amount": {          "amount": 0,          "currency": "string",          "formatted": "string"        },        "shipping_amount": {          "amount": 0,          "currency": "string",          "formatted": "string"        }      }    ],    "shipping_discount": {      "amount": 0,      "currency": "string",      "formatted": "string"    },    "savings": {      "amount": 0,      "currency": "string",      "formatted": "string"    },    "shipping_total": {      "amount": 0,      "currency": "string",      "formatted": "string"    },    "tax_breakdown": [      {        "identifier": "string",        "description": "string",        "percentage": "string",        "price": {          "amount": 0,          "currency": "string",          "formatted": "string"        }      }    ],    "tax_total": {      "amount": 0,      "currency": "string",      "formatted": "string"    },    "total": {      "amount": 0,      "currency": "string",      "formatted": "string"    }  }}