Logo
Ecartapi.com Public API Documentation

Order

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

Create a order and shows the detailed information.

To create a order the customer's ID is required.
You can get the customer Id from the customer requests.

To create a order the shippingMethod as ID is required.
You can get the shippingMethod ID from the shippings requests.

More information about the ecommerce's resource.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Authorization
string




RESPONSES

status OK

{ "success": true, "order": { "id": "100", "number": null, "marketPlaceId": null, "groupId": null, "name": null, "email": null, "fulfillmentStatus": { "id": null, "status": null, "ecartapi": "other", "ecartapiId": "4", "partiallAvailable": "false" }, "currency": null, "totals": null, "taxesIncluded": null, "taxLines": [], "units": { "weight": null }, "status": { "id": null, "status": null, "financial": "other", "ecartapi": "other", "ecartapiId": "5" }, "locationId": null, "reference": null, "tags": [], "payment": { "method": null, "status": "pending" }, "customer": {}, "billingAddress": {}, "shippingMethod": null, "shippingAddress": {}, "items": [], "packages": [], "meta": null, "dates": { "canceledAt": null, "closedAt": null, "createdAt": null, "updatedAt": null, "paidAt": null }, "cancelReason": null, "note": null, "locations": [], "checkoutId": null, "partialFulfillment": null } }



Curl
curl -X POST 'https://api.ecartapi.com/api/v2/orders' -H 'Authorization: access_token' -d '{"order":{"customer":{"id":"11"},"payment":{"method":"7"},"items":[{"productId":"12","quantity":"1"},{"productId":"17","quantity":"1"}],"shippingMethod":"1"}}'

ENDPOINTS