Fultillment
POST https://api.ecartapi.com/api/v2/orders/{{orderId}}/fulfillments
Create a order Fulfillment and shows the detailed information.
To create a new order Fulfillment these fields are required
* customerId
* shippingMethod
* shippingMethodId
You can get the customer Id from the customer requests.
You can get the shippingMethodID and shippingMethod from the shippings requests.
More information about the ecommerce's resource.
Request Body
{"fulfillment"=>{"shippingMethod"=>"Custom shipping method", "shippingMethodId"=>"1", "customerId"=>"11", "tracking"=>{"company"=>"Fedex", "number"=>"12345"}, "items"=>[{"id"=>"2212294583", "quantity"=>"1"}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"fulfillment":{"id":"12","shippingMethod":{"id":"1","service":"Fedex"},"tracking":{"number":"12345","url":"https://www.fedex.com/apps/fedextrack/?action=track\u0026trackingnumber=12345","company":null},"status":{"id":null,"status":null,"shipment":null},"items":[],"packages":[],"dates":{"createdAt":null,"updatedAt":null,"shippedAt":null},"order_id":"100","company":"Fedex"}}