Fulfillment

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

This request updates Opencart's order status to shipped and sets a comment for the store manager that includes the carrier, tracking number and url.

Important information:

  • The order's ID must exist

  • The user will always get notified when making a fulfillment.
  • The order will always be set to 'shipped' in opencart.
  • All items will be fulfilled in one single shipping label or package.

Request Body

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

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

{"success":true,"fulfillment":{"id":null,"shippingMethod":{"id":null,"service":"Flat Shipping Rate"},"tracking":{"number":"987654321","url":"https://shipping.xyz/track.php?num=123456789","company":"FedEx"},"status":{"id":null,"status":"fulfilled","shipment":"shipped"},"location":{"id":null,"name":null,"country":{},"state":{},"postalCode":null},"items":[],"packages":[],"dates":{"createdAt":null,"updatedAt":null,"shippedAt":null}}}