Fulfillment

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

This request creates associates a shipping label with the order.

Important information:

  • The order's identifier must exist

Features

You can send the items array when you wish to make a partial fulfillment. Otherwise do not send the items array and automatically the fulfillment will be applied to the full order.

REQUIREMENTS

shippingAddressId - REQUIRED. The value can be obtained from the Get Single Order Request

More information about the ecommerce's resource.

Request Body

{"fulfillment"=>{"tracking"=>{"number"=>"EJ958083578UK", "company"=>"Fedex"}, "shippingAddressId"=>"1", "items"=>[{"id"=>"27", "quantity"=>"1"}]}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
Content-Typestring

RESPONSES

status: OK

{"success":true,"fulfillment":{"id":"2","shippingMethod":{"id":null,"service":"Ninguno"},"tracking":{"number":"EJ958083578UK","url":null,"company":null},"status":{"id":null,"status":null,"shipment":null},"items":[{"id":"1","variantId":null,"productId":"112","quantity":"1","ecartapiUrl":"https://api.ecartapi.com/api/v2/products/1"},{"id":"2","variantId":null,"productId":"98","quantity":"1","ecartapiUrl":"https://api.ecartapi.com/api/v2/products/2"}],"packages":[],"dates":{"createdAt":"Fri, 10 Dec 2021 23:09:02 +0000","updatedAt":null,"shippedAt":null}}}