PUT https://api.ecartapi.com/api/v2/orders/{{id}}
Update an order's information. 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": "1684144554058",
"number": "1092",
"name": "#1092",
"email": null,
"fulfillmentStatus": {
"id": null,
"status": "fulfilled",
"ecartapi": "fulfilled",
"ecartapiId": "1"
},
"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"
},
"state": {
"code": "ON",
"name": "Ontario"
},
"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"
},
"state": {
"code": "ON",
"name": "Ontario"
},
"city": "Fakecity",
"postalCode": null,
"phone": "555-555-5555",
"company": "envia.com",
"references": null
},
"items": [
{
"id": "3748477108298",
"variantId": "28921600409674",
"productId": &q Curl curl -X PUT 'https://api.ecartapi.com/api/v2/orders/id' -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":"Av Vazconcelos","address2":"1400","country":{"code":"MX","name":"Mexico"},"state":{"code":"NL","name":"Nuevo Léon"},"city":"Fakecity","postalCode":"K2P 1L4","phone":"555-555-5555","company":"envia.com"},"note":"Customer contacted us about a custom engraving on this iPod"}}' ENDPOINTS |