Order Update

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

Update an order's information.

Important information:

Request Body

{"order"=>{"totals"=>{"total"=>"100"}, "status"=>{"status"=>"open", "financial"=>"pending"}, "fulfillmentStatus"=>"unpacked", "items"=>[{"variantId"=>"179939997", "quantity"=>"1"}], "customer"=>{"email"=>"john.doe@example.com", "firstName"=>"John", "lastName"=>"Doe", "phone"=>"+55 11 99999-9999"}, "note"=>"nota", "billingAddress"=>{"firstName"=>"John", "lastName"=>"Doe", "address1"=>"Evergreen Terrace", "address3"=>"742", "city"=>"Springfield", "state"=>{"name"=>"Oregon"}, "postalCode"=>"97475", "country"=>{"code"=>"US"}, "phone"=>"5551230413"}, "shippingAddress"=>{"firstName"=>"John", "lastName"=>"Doe", "address1"=>"Evergreen Terrace", "address3"=>"742", "city"=>"Springfield", "state"=>{"name"=>"Oregon"}, "postalCode"=>"97475", "country"=>{"code"=>"US"}, "phone"=>"5551230413"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

{"order":{"totals":{"total":"100"},"status":{"status":"open","financial":"pending"},"fulfillmentStatus":"unpacked","items":[{"variantId":"179939997","quantity":"1"}],"customer":{"email":"john.doe@example.com","firstName":"John","lastName":"Doe","phone":"+55 11 99999-9999"},"note":"nota","billingAddress":{"firstName":"John","lastName":"Doe","address1":"Evergreen Terrace","address3":"742","city":"Springfield","state":{"name":"Oregon"},"postalCode":"97475","country":{"code":"US"},"phone":"5551230413"},"shippingAddress":{"firstName":"John","lastName":"Doe","address1":"Evergreen Terrace","address3":"742","city":"Springfield","state":{"name":"Oregon"},"postalCode":"97475","country":{"code":"US"},"phone":"5551230413"}}}