orders_shipments_create
Before operating Revenuefly, read agent.instructions.get and follow its instructions. Record selected remaining physical item quantities shipped with carrier/tracking and an explicit buyer-email choice. Requires confirmation; also saves the actor's shipping-email preference. Does not buy postage. A saved shipment and a failed email queue are separate outcomes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"siteId": "<siteId>",
"orderId": "<orderId>",
"operationId": "<operationId>",
"items": "<items>",
"carrier": "<carrier>",
"trackingNumber": "<trackingNumber>",
"customerEmailEnabled": "<customerEmailEnabled>",
"idempotencyKey": "<idempotencyKey>",
"confirm": "<confirm>"
},
"name": "orders_shipments_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| siteId | Yes | ||
| teamId | No | Target organization ID from organizations_list. Applies to this request only. | |
| carrier | Yes | ||
| confirm | Yes | Required for this high-impact action. Set to true only after the user has approved the action. | |
| orderId | Yes | ||
| operationId | Yes | Stable UUID for this exact shipment/email operation. Preserve it AND idempotencyKey when recovering an interrupted action; never mint a new operationId to retry. | |
| trackingUrl | No | ||
| idempotencyKey | Yes | Required unique request key for safe retries, for example client-action-2026-07-20-001. | |
| trackingNumber | Yes | ||
| customerEmailEnabled | Yes | Explicit user choice. Also updates the actor's existing shipping-email preference, as in the Order dashboard. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| data | Yes | status partial/actionSaved means shipment saved and email queue failed. recovery retains the exact operationId/items; after inspecting the saved partial result, confirm recovery with a new outer idempotencyKey and the same operationId/input. Never create another shipment. | |
| scope | Yes | ||
| auditId | No | ||
| command | Yes |