Order update
PUT https://api.ecartapi.com/api/v2/orders/{{id}}
Request Body
{"order"=>{"customer"=>{"email"=>"newemail@example.com"}, "totals"=>{"subtotal"=>"90", "total"=>"1111"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"order":{"id":"ITT1R","number":"273156764","marketPlaceId":null,"groupId":null,"name":"Enrique Carreon","email":"newemail@example.com","fulfillmentStatus":{"id":null,"status":"AWAITING_PROCESSING","ecartapi":"unfulfilled","ecartapiId":"3","partiallAvailable":"false"},"currency":"MXN","totals":"1111","taxesIncluded":10,"taxLines":null,"units":{"weight":"KILOGRAM"},"status":{"id":null,"status":"AWAITING_PAYMENT","financial":"other","ecartapi":"other","ecartapiId":"5"},"locationId":null,"reference":null,"tags":null,"payment":{"method":null,"status":"pending"},"billingAddress":{"id":null,"firstName":"Enrique Carreon","lastName":null,"address1":"123 fake streed","address2":"Fakecity","address3":null,"country":{"code":"CA","name":null,"codeIso2":null,"codeIso3":null},"state":{"code":null,"name":null,"codeIso2":null,"codeIso3":null},"city":"Fakecity","postalCode":"K2P 1L4","phone":null,"company":null,"references":null},"shippingMethod":null,"shippingAddress":{"id":null,"firstName":"Enrique Carreon","lastName":null,"address1":"123 Fake Street","address2":"Fakecity","address3":null,"country":{"code":"CA","name":null,"codeIso2":null,"codeIso3":null},"state":{"code":null,"name":null,"codeIso2":null,"codeIso3":null},"city":"Fakecity","postalCode":"K2P 1L4","phone":null,"company":null,"references":null},"items":[null,null],"packages":null,"meta":null,"dates":{"canceledAt":null,"closedAt":null,"createdAt":"2021-07-14 16:14:01 +0000","updatedAt":"2021-07-14 16:54:54 +0000","paidAt":null},"cancelReason":null,"note":null,"checkoutId":null}}