Skip to content

Read an order's fulfilment

GET
/commerce/management/v1/orders/{orderId}/fulfilment
curl --request GET \
--url https://api.ebitex.io/commerce/management/v1/orders/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/fulfilment \
--header 'Authorization: Bearer <token>'

Returns how an order is being fulfilled: its groups (the lines that follow one workflow, each with its id, where it is, and its lines with what is ordered, shipped and cancelled) and its shipments (each with its carrier, tracking, externalReference and status). Use the group’s id and each line’s id to record a shipment.

The answer carries no buyer contact details and no address.

Call it from your own server with a management key (the Management keys section of Commerce’s delivery keys screen); it has no CORS policy, so a browser page cannot use it. The key belongs to the organization and works on every store’s orders. It has two tiers: commerce.management.read reads orders, finds a shipment by its carrier reference and reads an order’s fulfilment; commerce.orders.fulfil does all of that and also records and updates shipments. Neither can refund, cancel, move an order along, change stock, or read who bought: no answer carries a buyer’s name, email or address. The key’s budget is 300 requests a minute.

Key: a Commerce management key with commerce.management.read or commerce.orders.fulfil.

orderId
required
string format: uuid

OK

missing_api_key or invalid_api_key: no key was sent, or it is unknown, revoked or expired.

payment_required: the organization’s subscription needs attention.

scope_denied: the key lacks commerce.orders.fulfil. app_not_available: Commerce is not enabled for the organization. ip_denied: the key was used from an address outside its restrictions.

order_not_found: no such order in this organization.

rate_limited: the key spent its 300 requests a minute; Retry-After says how long to wait. too_many_failed_authentications: too many bad keys from this address.