Create order fulfillment
POST https://api.ecartapi.com/api/v2/orders/:orderId/fulfillments
Tiny's resource to synch shipping information is limited to either be via correios or a general transport. By default the shipping option in EcartAPI by making this request WILL ALWAYS BE general transport or in portuguese Transportadora
There are no ID's related to the fulfillment resources so EcartAPI fabricates their own.
All fulfillment ID's will always be 1.
More details and information on the e-commerce resource.
Request Body
{"fulfillment"=>{"tracking"=>{"number"=>"22498363", "company"=>"Buslog", "url"=>"https://envia.com/rastreo?label=22498363&cntry_code=br"}, "shippingMethod"=>"branch_branch", "shippingDate"=>"2024-02-23", "items"=>[{"id"=>"962113246", "quantity"=>"1"}], "package"=>{"dimensions"=>{"length"=>"17", "width"=>"17", "height"=>"17", "weight"=>"1"}, "units"=>{"length"=>"CM", "width"=>"CM", "height"=>"CM", "weight"=>"KG"}}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"fulfillment":{"id":"1","orderId":"1025038145","shippingMethod":{"id":null,"service":"T"},"tracking":{"number":"22498363","url":"https://envia.com/rastreo?label=22498363","company":"","numbers":[],"urls":[]},"status":{"id":null,"status":null,"shipment":null},"location":{"id":null,"name":null,"country":{},"state":{},"postalCode":null},"items":[],"packages":[],"dates":{"shippedAt":null}}}