Authentication
Actions
Not every marketplace supports every action, and each action is only available in some order statuses. Shopee labels need the order shipped first; Lazada labels need it packed. An unavailable action returns
400 with the reason.
1. Get the choices
Some actions need a choice from the marketplace, such as pickup or drop-off:requiresInput: true needs extra fields, such as trackingNumber.
2. Queue the action
payload unchanged. The response is 202 with jobId. Sending the same idempotencyKey again returns 200 with the original job instead of calling the marketplace twice.
3. Poll the job
status moves from queued to running, then succeeded, failed (see errorMessage), or not_supported.
A succeeded labels job lists its files in labels:
url. The latest successful label job stays in the list even after newer jobs.