put https://app.ecwid.com/api/v3//carts/
Update the details of specific abandoned cart using its unique cart ID.
Access scopes
Requires the following access scope: update_orders
Request
A JSON object with the following fields:
Field | Type | Description |
---|---|---|
hidden | boolean | Determines if the order is hidden (removed from the list). Applies to abandoned carts only |
taxesOnShipping | Array<TaxOnShipping> | Taxes applied to shipping. null for old orders, [] for orders with taxes applied to subtotal only. Are not recalculated if cart is updated later manually. Is calculated like: (shippingRate + handlingFee)*(taxValue/100) |
b2b_b2c | string | Order type: business-to-business (b2b ) or business-to-consumer (b2c ) |
customerRequestedInvoice | boolean | true if customer requested an invoice, false otherwise |
customerFiscalCode | string | Fiscale code of a customer |
electronicInvoicePecEmail | string | PEC email for invoices |
electronicInvoiceSdiCode | string | SDI code for invoices |
TaxOnShipping
Field | Type | Description |
---|---|---|
name | string | Tax name |
value | number | Tax value in store settings, applied to destination zone |
total | number | Tax total applied to shipping |
Response
A JSON object of type 'UpdateStatus' with the following fields:
UpdateStatus
Field | Type | Description |
---|---|---|
updateCount | number | The number of updated carts (1 or 0 depending on whether the update was successful) |
Errors
Error response example:
HTTP/1.1 404 Not Found
Content-Type application/json; charset=utf-8
In case of error, Ecwid responds with an error HTTP status code and, optionally, JSON-formatted body containing error description
HTTP codes
HTTP Status | Meaning |
---|---|
400 | Request parameters are malformed |
404 | The order is not found |
405 | Method not allowed. Can occur when using POST instead of PUT HTTP request method |
415 | Unsupported content-type: expected application/json or text/json |
500 | Cannot retrieve the order info because of an error on the server |
Error response body (optional)
Field | Type | Description |
---|---|---|
errorMessage | string | Error message |