Create a shipment for an order
Create a shipment for an order. Requires the WRITE_SHIPPING scope.
rateId to create an automatic shipment from a previously fetched courier rate, or omit it and supply carrier/tracking details to create a manual shipment. The order must belong to the store bound to the app token, which is updated with a reference to the new shipment. Requires the WRITE_SHIPPING scope.Authorizations
Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.
Body
ObjectId of the order to ship.
ObjectId of the destination shipping address.
Carrier name (manual shipments).
Service code or id of a rate from a prior /shipping/rates call (automatic shipments).
Tracking number (manual shipments).
Tracking URL (manual shipments).
Shipping method label.
Shipping cost (minimum 0).
Estimated delivery date (ISO date).
Free-text notes for the shipment.
Response
Create a shipment for an order.
Standard Salesive response envelope. The operation-specific payload is carried in data.
HTTP status code, echoed in the body.
Whether the request succeeded.
Human-readable result message.
A shipment record. Shapes vary slightly by how the shipment was created (manual, automatic label, or ShipDay dispatch); only the most common fields are listed and extra properties may be present.

