Logo
Ecartapi.com Public API Documentation

Order

PUT https://api.ecartapi.com/api/v2/orders/{{id}}

Update order information.

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": "91", "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 PUT 'https://api.ecartapi.com/api/v2/orders/id' -H 'Authorization: access_token' -d '{"order":{"customer":{"id":"11"},"payment":{"method":"7"},"items":[{"productId":"12","quantity":"1"},{"productId":"17","quantity":"1"}],"shippingMethod":"1"}}'

ENDPOINTS