Fulfillments
POST https://api.ecartapi.com/api/v2/orders/{{orderId}}/fulfillments
Creates an order's fulfillment.
Important information:
Request Body
{"fulfillment"=>{"tracking"=>{"number"=>"987654321", "company"=>"envia", "url"=>"https://shipping.xyz/track.php?num=123456789"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
{"success":true,"fulfillment":{"id":null,"shippingMethod":{"id":"264628","service":"Correo Ordinario"},"tracking":{"number":"avd854","url":"https://www.fedex.com/apps/fedextrack/?action=track\u0026trackingnumber=avd854\u0026cntry_code=mx\u0026locale=es_MX","company":"other"},"status":{"id":null,"status":"Paid","shipment":"Entregado"},"items":[{"id":"7338343","variantId":"11724926","productId":null,"quantity":null,"ecartapiUrl":"localhost:3000/api/v2/products/undefined"}],"packages":[],"dates":{"createdAt":null,"updatedAt":null}}}