Create fulfillment event
POST https://api.ecartapi.com/api/v2/orders/:orderId/fulfillments/events
Allowed values for status and meaning:
Ecartapi status | E-commerce status | E-commerce Description |
---|---|---|
delivered | delivered | The shipment was successfully delivered. |
failed | failure | Something went wrong with the shipment it was no delivered or sent back to the seller. |
in_transit | in_transit | The shipment is being transported between shipping facilities on the way to its destination. |
Find more information of the resource on the ecommerce documentation.
Request Body
{"event"=>{"status"=>"in_transit", "description"=>"IN_TRANSIT", "estimatedDeliveryAt"=>"2023-10-25T13:03:51.175-04:00"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"event":{"id":"42735239898","status":{"id":null,"status":"not_delivered","ecartapi":"returned_to_sender","ecartapiId":"9"},"description":null,"location":{"address1":"av 2 905","country":{"code":"MX","name":"Mexico","codeIso2":"MX","codeIso3":"MEX"},"state":{"code":"CO","name":"Coahuila","codeIso2":null,"codeIso3":null},"city":"Monclova","postalCode":"25720"},"dates":{"createdAt":null,"updatedAt":null,"estimatedDeliveryAt":"2023-10-26T00:00:00.000-06:00"},"latitude":"26.927905","longitude":"-101.425927"}}