EndpunkteOrdersOrdersOrderidShipments
Create an outbound parcel from fulfilled sales-order lines
Die API läuft auf deiner Anwendungsinstanz. Schemas und Feldnamen stammen unverändert aus der OpenAPI-Spezifikation. Browsergebundene Aufrufe benötigen eine Sitzung auf der Instanz.
POST
Assigns fulfilled bulk quantities and concrete serialized units to a parcel. This endpoint records Inventory shipping data and does not write to WooCommerce.
bearerAuthheader
AuthentifizierungBearer <inv_ token>orderId*stringFormat
uuidIdempotency-Key*stringUUID identifying this atomic operation; reuse it only to retry the exact same request.
Format
uuidX-Organization-ID?stringOrganization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.
Format
uuidapplication/json- body
carrierCode*stringMuster
^[a-z0-9][a-z0-9_-]{0,39}$service?|Länge
1 <= length <= 120trackingNumber?|Länge
1 <= length <= 180trackingUrl?|HTTPS only. Known carriers receive a default URL when omitted.
Format
uriLänge
length <= 2048status?stringStandard
"draft"Mögliche Werte
"draft""ready"note?stringLänge
length <= 20000lines*array<>Einträge
1 <= items <= 100Replayed the original shipment response
curl -X POST 'https://inventory.example.com/api/v1/orders/497f6eca-6276-4993-bfeb-53cbbbba6f08/shipments' \ -H 'Idempotency-Key: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Content-Type: application/json' \ -d '{ "carrierCode": "string", "lines": [ { "orderLineId": "3bba51e3-a0c1-4b14-a700-b2d3b8ed156d", "quantity": 1 } ]}'Beispielantwort
Leer