Update order
PUT https://api.ecartapi.com/api/v2/orders/:id
Request Body
{"order"=>{"status"=>{"status"=>"paid"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"success":true,"order":{"id":"964765645","number":null,"marketPlaceId":null,"groupId":null,"name":null,"packsId":null,"email":null,"fulfillmentStatus":{"id":null,"status":"Aprovado","ecartapi":"unfulfilled","ecartapiId":"3","partiallAvailable":null},"currency":null,"discountsCoupon":[],"totals":{"subtotal":null,"total":"10.00","tax":null,"discount":null,"weight":null,"shipping":"0.00"},"taxesIncluded":null,"taxLines":[],"units":{"weight":null},"status":{"id":null,"status":"Aprovado","financial":"Aprovado","ecartapi":"authorized","ecartapiId":"7"},"locationId":null,"reference":null,"tags":[],"payment":{"method":null,"status":"paid","ecartapi":"1"},"customer":{"id":null,"email":"enrique.carreon@ecart.com","firstName":"Enrique Carreon Ibarra","lastName":null,"phone":"","identificationNumber":null,"company":null,"ecartapiUrl":"http://localhost:3000/api/v2/customers/undefined","indentificationNumber":""},"refunds":[],"billingAddress":{},"logistic":{"mode":null,"type":null,"free":"false","direction":null},"shippingMethod":"S","shippingOptionReference":null,"shippingLabel":null,"shippingAddress":{},"items":[{"id":null,"variantId":null,"productId":null,"offerId":null,"inventoryId":null,"sku":null,"fulfillment":{"quantity":null,"service":null,"status":null},"name":null,"upc":null,"requiresShipping":null,"quantity":null,"currentQuantity":null,"price":null,"discount":null,"associatedItems":[],"bundled":null,"tax":null,"taxable":null,"weight":null,"vendor":null,"imageUrl":null,"ecartapiUrl":null}],"packages":[],"meta":null,"dates":{"estimatedDeliveryIn":null,"deliveredAt":null,"canceledAt":null,"closedAt":null,"createdAt":"11/08/2023","updatedAt":null,"paidAt":null},"cancelReason":null,"note":null,"locations":[],"localizationExtensions":[],"checkoutId":null,"fraudRisk":null,"events":[]}}