Ever Connect
v1.4.0中文·EN·한국어Sign inRequest access
Wholesale orders

Allocation preview: per line, how much can be allocated, how much is owed, when pre-sale stock arrives, the amount payable and whether the balance covers it

POST/api/v1/orders/{order_id}/allocation-previewToken requiredorder:writewrite2 pts

Allocation preview: per line, how much can be allocated, how much is owed, when pre-sale stock arrives, the amount payable and whether the balance covers it. Note: the preview holds stock — submit or cancel afterwards

Path parameters

NameTypeDescription
order_id requiredstringWholesale order id, from the order list. Own channel only.
max length 64

Request body (JSON)

FieldTypeDescription
use_reservationbooleanWhether to draw on your reserved (locked) stock for this allocation. Omit = do not use it.

Response

The envelope is decided by the HTTP status alone: 2xx with { data: … } (lists also carry page / page_size / has_more or total_count); 4xx / 5xx with { error: { code, message, hint, request_id, doc_url } }.

Send an Idempotency-Key header (any unique string, e.g. a UUID) on writes: a network retry never creates a second order. Orders are drafts by default until a person confirms them in the ERP.