Skip to main content
POST
Queue Order Action

Authorizations

Authorization
string
header
required

Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.

Path Parameters

orderId
string
required

Body

application/json
action
enum<string>
required

ship arranges shipment, labels generates shipping labels, update_tracking sends a tracking number, and cancel cancels the order.

Available options:
ship,
cancel,
labels,
update_tracking
organizationId
string

Required for session auth. API keys already belong to one organization.

Required string length: 1 - 120
payload
object

Marketplace inputs for the action. Send the payload of the choice returned by GET /api/v1/orders/{orderId}/action-options, plus fields such as trackingNumber or cancelReason when a choice requires input.

idempotencyKey
string

Repeat a request with the same key to get the original job instead of a second marketplace call.

Required string length: 1 - 160

Response

The idempotency key matched an existing job.

ok
boolean
required
apiVersion
string
required
Allowed value: "developer_v1"
operationId
string
required
status
enum<string>
required
Available options:
accepted,
completed,
failed
warnings
string[]
required
recommendations
string[]
required
data
object
required
jobId
string
productId
string