Logo
Ecartapi.com Public API Documentation

Orders

POST https://api.ecartapi.com/api/v2/orders

Creates new orders.

Important information:

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Authorization
string




RESPONSES

status OK

{ "success": true, "order": { "id": "1833117155402", "number": "1096", "name": "#1096", "email": null, "fulfillmentStatus": { "id": null, "status": null, "ecartapi": "unfulfilled", "ecartapiId": "3", "partiallAvailable": "true" }, "currency": "MXN", "totals": { "subtotal": "3.00", "total": "13.00", "tax": "10.00", "discount": "0.00", "weight": "300" }, "taxesIncluded": "false", "units": { "weight": "g" }, "status": { "id": null, "status": "open", "financial": "paid", "ecartapi": "paid", "ecartapiId": "1" }, "locationId": null, "reference": null, "tags": [ "imported" ], "payment": null, "customer": null, "billingAddress": { "id": null, "firstName": "Alex", "lastName": "de la Cruz", "address1": "123 Fake Street", "address2": null, "country": { "code": "CA", "name": "Canada", "codeIso2": null, "codeIso3": null }, "state": { "code": "ON", "name": "Ontario", "codeIso2": null, "codeIso3": null }, "city": "Fakecity", "postalCode": null, "phone": "555-555-5555", "company": "envia.com", "references": null }, "shippingAddress": { "id": null, "firstName": "John", "lastName": "Silver", "address1": "123 Fake Street", "address2": null, "country": { "code": "CA", "name": "Canada", "codeIso2": null, "codeIso3": null }, "state": { "code": "ON", "name": "Ontario", "codeIso2": null, "c
Curl
curl -X POST 'https://api.ecartapi.com/api/v2/orders' -H 'Content-Type: application/json' -H 'Authorization: access_token' -d '{"order":{"totals":{"subtotal":"90","total":"100","tax":"10","discount":"0","weight":"300"},"currency":"MXN","taxesIncluded":"false","status":{"status":"pending"},"tags":["imported"],"billingAddress":{"firstName":"Alex","lastName":"de la Cruz","address1":"123 Fake Street","country":{"code":"CA","name":"Canada"},"state":{"code":"ON","name":"Ontario"},"city":"Fakecity","postalCode":"K2P 1L4","phone":"555-555-5555","company":"envia.com"},"shippingAddress":{"firstName":"John","lastName":"Silver","address1":"123 Fake Street","country":{"code":"CA","name":"Canada"},"state":{"code":"ON","name":"Ontario"},"city":"Fakecity","postalCode":"K2P 1L4","phone":"555-555-5555","company":"envia.com"},"items":[{"variantId":"28921600409674","quantity":"1","discount":"0","taxable":"false"},{"variantId":"28921600409674","quantity":"2","discount":"0","taxable":"false"}]}}'

ENDPOINTS