get https://app.ecwid.com/api/v3//carts
Search for abandoned carts in an Ecwid stores and filter the results by create/update date, customer, order total.
Access scopes
Requires the following access scope: read_orders
All query params
Name | Type | Description |
---|---|---|
showHidden | boolean | If true Ecwid will show all abandoned carts found, even if store owner deleted them in the Ecwid Control Panel. If false , the response will provide abandoned carts with hidden field as false only. If not specified, the filter is set to true |
totalFrom | number | Minimum product price |
totalTo | number | Maximum product price |
createdFrom | string | Order placement date/time (lower bound). Supported formats:
|
createdTo | string | Order placement date/time (upper bound). Supported formats:
|
updatedFrom | string | Order last update date/time (lower bound). Supported formats:
|
updatedTo | string | Order last update date/time (upper bound). Supported formats:
|
couponCode | number | The code of coupon applied to order |
string | Customer email used to create an abandoned cart | |
customerId | number | Customer ID used to create an abandoned cart |
offset | number | Offset from the beginning of the returned items list (for paging) |
limit | number | Maximum number of returned items. Maximum allowed value: 100 . Default value: 100 |
Response
A JSON object with the following fields:
Field | Type | Description |
---|---|---|
total | number | The total number of found items (might be more than the number of returned items) |
count | number | The total number of the items returned in this batch |
offset | number | Offset from the beginning of the returned items list (for paging) |
limit | number | Maximum number of returned items. Maximum allowed value: 100 . Default value: 10 |
items | Array<OrderEntry> | The items list |
OrderEntry
Field | Type | Description |
---|---|---|
cartId | string | ID of the abandoned cart, e.g. 0B299518-FB54-491A-A6E0-5B6BA6E20868 |
subtotal | number | Order subtotal. Includes the sum of all products' cost in the order |
total | number | Order total cost. Includes shipping, taxes, discounts, etc. |
string | Customer email address | |
paymentMethod | string | Payment method name |
paymentModule | string | Payment processor name |
tax | number | Tax total |
customerTaxExempt | boolean | true if customer is tax exempt, false otherwise. Learn more |
customerTaxId | string | Customer tax ID |
customerTaxIdValid | boolean | true if customer tax ID is valid, false otherwise |
reversedTaxApplied | boolean | true if order tax was set to 0 because customer specified their valid tax ID in checkout process. false otherwise |
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 |
ipAddress | string | Customer IP |
refererUrl | string | URL of the page when order was placed (without hash (#) part) |
orderComments | string | Order comments |
customSurcharges | Array<customSurchargesInfo> | Information about applied surcharges |
couponDiscount | number | Discount applied to order using a coupon |
volumeDiscount | number | Sum of discounts based on subtotal. Is included into the discount field |
discount | number | The sum of all applied discounts except for the coupon discount. To get the total order discount, take the sum of couponDiscount and discount field values |
membershipBasedDiscount | number | Sum of discounts based on customer group. Is included into the discount field |
totalAndMembershipBasedDiscount | number | The sum of discount based on subtotal AND customer group. Is included into the discount field |
discountCoupon | <DiscountCouponInfo> | Information about applied coupon |
discountInfo | Array<DiscountInfo> | Information about applied discounts (coupons are not included) |
customerId | number | Unique customer internal ID (if the order is placed by a registered user) |
hidden | boolean | Determines if the order is hidden (removed from the list). Applies to unsfinished orders only. |
usdTotal | number | Order total in USD |
globalReferer | string | URL that the customer came to the store from |
createDate | date | The date/time of order placement, e.g 2014-06-06 18:57:19 +0000 |
updateDate | date | The date/time of the last order change, e.g 2014-06-06 18:57:19 +0000 |
createTimestamp | number | The date of order placement in UNIX Timestamp format, e.g 1427268654 |
updateTimestamp | number | The date of the last order change in UNIX Timestamp format, e.g 1427268654 |
customerGroupId | number | Customer group ID |
customerGroup | string | The name of group (membership) the customer belongs to |
items | Array<OrderItem> | Order items |
billingPerson | <PersonInfo> | Name and billing address of the customer |
shippingPerson | <PersonInfo> | Name and address of the person entered in shipping information |
shippingOption | <ShippingOptionInfo> | Information about selected shipping option |
handlingFee | <HandlingFeeInfo> | Handling fee details |
additionalInfo | Map<string,string> | Additional order information if any (reserved for future use) |
paymentParams | Map<string,string> | Additional payment parameters entered by customer on checkout, e.g. PO number in "Purchase order" payments |
trackingNumber | string | Shipping tracking code |
paymentMessage | string | Message from the payment processor if any |
externalTransactionId | string | Transaction ID / invoice number of the order in the payment system (e.g. PayPal transaction ID) |
affiliateId | string | Affiliate ID |
creditCardStatus | <CreditCardStatus> | The status of credit card payment |
recoveredOrderId | number | Order number. Is present if the abandoned cart was successfully recovered |
recoveryEmailSentTimestamp | string | The date/time of the last order change, e.g 2014-06-06 18:57:19 +0000 |
acceptMarketing | boolean | true if customer agreed to accept marketing emails. false otherwise. |
taxesOnShipping | Array<TaxOnShipping> | Taxes applied to shipping. null for old carts, [] for carts with taxes applied to subtotal only. Are not recalculated if cart is updated later manually. Is calculated like: (shippingRate + handlingFee)*(taxValue/100) |
OrderItem
Field | Type | Description |
---|---|---|
id | number | Order item ID. Can be used to address the item in the order, e.g. to manage ordered items. |
productId | number | Store product ID |
categoryId | number | ID of the category this product belongs to. If the product belongs to many categories, categoryID will return the ID of the default product category. If the product doesn't belong to any category, 0 is returned |
price | number | Price of ordered item in the cart |
productPrice | number | Basic product price without options markups, wholesale discounts etc. |
weight | number | Product weight |
sku | string | Product SKU. If the chosen options match a combination, this will be a combination SKU. |
quantity | number | Amount purchased |
shortDescription | string | Product description truncated to 120 characters |
tax | number | Tax amount applied to the item |
shipping | number | Order item shipping cost |
quantityInStock | number | The number of products in stock in the store |
name | string | Product name |
isShippingRequired | boolean | true /false : shows whether the item requires shipping |
trackQuantity | boolean | true /false : shows whether the store admin set to track the quantity of this product and get low stock notifications |
fixedShippingRateOnly | boolean | true /false : shows whether the fixed shipping rate is set for the product |
imageUrl | string | Product image URL |
fixedShippingRate | number | Fixed shipping rate for the product |
digital | boolean | true /false : shows whether the item has downloadable files attached |
couponApplied | boolean | true /false : shows whether a discount coupon is applied for this item |
selectedOptions | Array<OrderItemOption> | Product options values selected by the customer |
taxes | Array<OrderItemTax> | Taxes applied to this order item |
files | Array<OrderItemProductFile> | Files attached to the order item |
dimensions | <ProductDimensions> | Product dimensions info |
couponAmount | number | Coupon discount amount applied to item. Provided if discount applied to order. Is not recalculated if order is updated later manually |
discounts | Array<OrderItemDiscounts> | Discounts applied to order item 'as is'. Provided if discounts are applied to order (not including discount coupons) and are not recalculated if order is updated later manually |
recurringChargeSettings | Array <RecurringChargeSettings> | Subscription product information about subscription charge intervals |
isCustomerSetPrice | boolean | true if price for the ordered product was set up by a customer ("Pay What You Want" feature is enabled). false otherwise. |
isPreorder | boolean | true if the product is pre-ordered because it was out of stock. Learn more about Accepting pre-orders. Otherwise the field is not returned. |
OrderItemTax
Field | Type | Description |
---|---|---|
name | string | Tax name |
value | number | Tax value in percent |
total | number | Tax amount for the item |
taxOnDiscountedSubtotal | number | Tax on item subtotal (after applying discounts) |
taxOnShipping | number | Tax on item shipping |
includeInPrice | boolean | true if the tax rate is included in product prices. More details: Taxes in Ecwid |
OrderItemProductFile
Field | Type | Description |
---|---|---|
productFileId | number | Internal unique file ID |
maxDownloads | number | Max allowed number of file downloads. See E-goods article in Ecwid Help center for the details |
remainingDownloads | number | Remaining number of download attempts |
expire | string | Date/time of the customer download link expiration |
name | string | File name |
description | string | File description defined by the store administrator |
size | number | File size, bytes (64-bit integer) |
adminUrl | string | Link to the file. Be careful: the link contains the API access token. Make sure you do not display the link as is in your application and not give it to a customer. |
customerUrl | string | File download link that is sent to the customer when the order is paid |
OrderItemOption
Field | Type | Description |
---|---|---|
name | string | Option name |
type | string | Option type. One of:
|
value | string | Selected/entered option value(s) as a string. For the CHOICES type, provides a string with all chosen values (comma-separated). You can use this to simply print out all selected values. |
valuesArray | Array | Selected option values as an array. For the CHOICES type, provides an array with the chosen values so you can iterate through them in your app. |
files | Array<OrderItemOptionFile> | Attached files (if the option type is FILES ) |
selections | Array<SelectionInfo> | Details of selected product options. If sent in update order request, other fields will be regenerated based on information in this field |
OrderItemOptionFile
Field | Type | Description |
---|---|---|
id | number | File ID |
name | string | File name |
size | number | File size in bytes |
url | string | File URL |
SelectionInfo
Field | Type | Description |
---|---|---|
selectionTitle | string | Selection title, as set by merchant |
selectionModifier | number | Selection price modifier amount. Value is negative for negative modifiers |
selectionModifierType | string | Price modifier type: "PERCENT" or "ABSOLUTE" |
ProductDimensions
Field | Type | Description |
---|---|---|
length | number | Length of a product |
width | number | Width of a product |
height | number | Height of a product |
PersonInfo
Field | Type | Description |
---|---|---|
name | string | Full name |
companyName | string | Company name |
street | string | Address line 1 and address line 2, separated by '\n' |
city | string | City |
countryCode | string | Two-letter country code |
countryName | string | Country name |
postalCode | string | Postal/ZIP code |
stateOrProvinceCode | string | State code, e.g. NY |
stateOrProvinceName | string | State/province name |
phone | string | Phone number |
customSurchargesInfo
Field | Type | Description |
---|---|---|
id | string | Surcharge id. If not specified default value: Custom Surcharge |
value | number | Surcharge value |
type | string | Surcharges type: ABSOLUTE or PERCENT |
total | number | Total value of surcharges |
totalWithoutTax | number | Total value of surcharges without taxes |
description | string | Surcharge description |
descriptionTranslated | string | Surcharge description in the translation |
taxable | boolean | Controls tax application for the surcharge |
taxes | Array<Taxes> | The list of applied taxes |
OrderItemDiscounts
Field | Type | Description |
---|---|---|
discountInfo | <OrderItemDiscountInfo> | Info about discounts applied to item |
total | number | Total order item discount value for this discount |
OrderItemDiscountInfo
Field | Type | Description |
---|---|---|
value | number | Discount value |
type | string | Discount type: ABS or PERCENT |
base | string | Discount base, one of ON_TOTAL , ON_MEMBERSHIP , ON_TOTAL_AND_MEMBERSHIP , CUSTOM |
orderTotal | number | Minimum order subtotal the discount applies to |
DiscountCouponInfo
Field | Type | Description |
---|---|---|
name | string | Coupon title in store control panel |
code | string | Coupon code |
discountType | string | Discount type: ABS , PERCENT , SHIPPING , ABS_AND_SHIPPING , PERCENT_AND_SHIPPING |
status | string | Discount coupon state: ACTIVE , PAUSED , EXPIRED or USEDUP |
discount | number | Discount amount |
launchDate | string | The date of coupon launch, e.g. 2014-06-06 08:00:00 +0000 |
expirationDate | string | Coupon expiration date, e.g. 2014-06-06 08:00:00 +0000 |
totalLimit | number | The minimum order subtotal the coupon applies to |
usesLimit | string | Number of uses limitation: UNLIMITED , ONCEPERCUSTOMER , SINGLE |
applicationLimit | string | Application limit for discount coupons. Possible values: "UNLIMITED" , "NEW_CUSTOMER_ONLY" , "REPEAT_CUSTOMER_ONLY" |
creationDate | string | Coupon creation date |
orderCount | number | Number of uses |
catalogLimit | <DiscountCouponCatalogLimit> | Products and categories the coupon can be applied to |
DiscountCouponCatalogLimit
Field | Type | Description |
---|---|---|
products | Array<number> | The list of product IDs the coupon can be applied to |
categories | Array<number> | The list of category IDs the coupon can be applied to |
RecurringChargeSettings
Field | Type | Description |
---|---|---|
recurringInterval | string | Subscription charge interval. Supported values: DAY , WEEK , MONTH , YEAR |
recurringIntervalCount | number | Charge interval count (e.g. 3 - once per 3 months) |
ShippingOptionInfo
Field | Type | Description |
---|---|---|
shippingCarrierName | string | Optional. Is present for orders made with carriers, e.g. USPS or shipping applications. |
shippingMethodName | string | Shipping option name |
shippingRate | number | Rate |
estimatedTransitTime | string | Delivery time estimation. Possible formats: number "5", several days estimate "4-9" |
pickupInstruction | string | Instruction for customer on how to receive their products |
HandlingFeeInfo
Field | Type | Description |
---|---|---|
name | string | Handling fee name set by store admin. E.g. Wrapping |
value | number | Handling fee value |
description | string | Handling fee description for customer |
DiscountInfo
Field | Type | Description |
---|---|---|
value | number | Discount value |
type | string | Discount type: ABS or PERCENT |
base | string | Discount base, one of ON_TOTAL , ON_MEMBERSHIP , ON_TOTAL_AND_MEMBERSHIP , CUSTOM |
order_total | number | Minimum order subtotal the discount applies to |
description | string | Description of a discount (for discounts with base == CUSTOM ) |
CreditCardStatus
Field | Type | Description |
---|---|---|
avsMessage | string | Address verification status returned by the payment system. |
cvvMessage | string | Credit card verification status returned by the payment system. |
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 |
Errors
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 |
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 |