Fulfillments

POST https://api.ecartapi.com/api/v2/orders/{{orderId}}/fulfillments

Woocommerce Does not support partial fulfillments this means that you can not send items in this payload or if you send them they wont be taken into account. The order will receive a full fulfillment and all items in the order will be marked as fulfilled.

Creates an order's fulfillment.

Important information:

  • The order's ID must exist

Request Body

{"fulfillment"=>{"shippingMethod"=>"Name", "shippingMethodId"=>"1234", "tracking"=>{"number"=>"987654321", "company"=>"FedEx", "url"=>"https://shipping.xyz/track.php?num=123456789"}}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring

RESPONSES

status: OK

{"success":true,"fulfillment":{"id":"FTdddNFEAVgVyaqEt3","shippingMethod":{"id":null,"service":null},"tracking":{"number":"987654321","url":"https://shipping.xyz/track.php?num=123456789","company":"FedEx"},"status":{"id":null,"status":"success","shipment":null},"items":[],"packages":[],"dates":{"createdAt":null,"updatedAt":null,"shippedAt":null}}}