Logo
Ecartapi.com Public API Documentation

Fulfillments

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

Creates an order's fulfillment.

Important information:

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Authorization
string




RESPONSES

status OK

{ "success": true, "fulfillment": { "id": "4613821595903", "orderId": "5132352356607", "shippingMethod": { "id": null, "service": "manual" }, "tracking": { "number": "987654321", "url": "https://shipping.xyz/track.php?num=123456789", "company": "FedEx" }, "status": { "id": null, "status": "success", "shipment": null }, "location": { "id": null, "name": null, "country": { "code": null, "name": null }, "state": { "code": null, "name": null }, "postalCode": null }, "items": [ { "id": "12944051536127", "variantId": "41930307436799", "productId": "7351872258303", "quantity": "1", "ecartapiUrl": "https://api.ecartapi.com/api/v2/products/7351872258303" } ], "packages": [], "dates": { "createdAt": "2023-03-15T18:27:37+01:00", "updatedAt": "2023-03-15T18:27:37+01:00", "shippedAt": null } } }



Curl
curl -X POST 'https://api.ecartapi.com/api/v2/orders/orderId/fulfillments' -H 'Content-Type: application/json' -H 'Authorization: access_token' -d '{"fulfillment":{"items":[{"id":"3796176371756","quantity":"14"}],"notifyCustomer":"true/false","tracking":{"number":"987654321","company":"FedEx","url":"https://shipping.xyz/track.php?num=123456789"},"fulfillmentOrderId":"4903840776358"}}'

ENDPOINTS