Update abandoned cart
Find all incomplete orders in the store.
Last updated
Was this helpful?
Find all incomplete orders in the store.
PUT https://app.ecwid.com/api/v3/{storeId}/carts/{cartId}
Request:
PUT /api/v3/1003/carts/6626E60A-A6F9-4CD5-8230-43D5F162E0CD HTTP/1.1
Authorization: Bearer secret_token
Host: app.ecwid.com
Content-Type: application/json
Cache-Control: no-cache
{
"hidden": true,
"taxesOnShipping": [
{
"name": "Tax X",
"value": 20,
"total": 2.86
}
]
}Response:
{
"updateCount": 1
}Your app must have the following access scopes to make this request: update_orders
All path params are required.
storeId
number
Ecwid store ID.
cartId
string
Internal cart ID, for example, 0B299518-FB54-491A-A6E0-5B6BA6E20868.
The Authorization header is required.
Authorization
Bearer secret_ab***cd
Access token of the application.
A JSON object with the following fields:
hidden
boolean
Determines if the order is hidden (removed from the list). Applies to abandoned carts only
taxesOnShipping
array of objects taxesOnShipping
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
name
string
Tax name
value
number
Tax value in store settings, applied to destination zone
total
number
Tax total applied to shipping
A JSON object with the following fields:
updateCount
number
The number of updated items that defines if the request was successful. One of:
1 if the item was updated,
0 if the item was not updated.
Last updated
Was this helpful?
Was this helpful?
