Get abandoned checkouts
GET https://{handle}.myshopline.com/admin/openapi/v20260301/orders/abandoned_orders.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Get a list of abandoned checkouts for the store. You can use this interface to query generated abandoned checkouts and archived abandoned checkouts.
Query Parameters
- since_id stringThe ID of a specific abandoned checkout. Start querying abandoned checkouts from this specified ID.Example:
2405747245402807605252 - sorts stringSorting method for abandoned checkouts. Pass a URL-encoded JSON array that includes the following fields:
key: sorting fieldsort_type: sorting type ( ascending asc , descending tec )
- checkout_tokens stringThe unique credential of the abandoned checkout, with multiple ones separated by commas. A maximum of 100 credentials can be passed.
- created_at_max stringSpecify the latest creation date and time for abandoned checkouts to query. Abandoned checkouts created on and before this time are returned. Format:ISO 8601 .Example:
2024-08-31T02:20:26+08:00 - updated_at_max stringSpecify the earliest update date and time for abandoned checkouts to query. Abandoned checkouts updated on and before this time are returned. Format:ISO 8601 .Example:
2024-08-31T02:20:26+08:00 - page_info stringThe unique identifier for pagination queries, used to locate a specific page.This parameter value is obtained from the
linkvalue in the response header of this API after you have queried the pagination information.For example, if thelinkvalue you obtained is<https://{handle}.myshopline.com/admin/openapi/{version}/orders/abandoned_orders.json?limit=1&page_info=eyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9>; rel="next", the value ofpage_infoiseyJzaW5jZUlkIjoiMTYwNTc1OTAxNTM4OTA4Mjk1MjExMTI3ODgiLCJkaXJlY3Rpb24iOiJuZXh0IiwibGltaXQiOjF9.For more information on how to use pagination, refer to Paging Mechanism. - query_page_link_param stringDEPRECATED: This field is deprecated from API version 20240601.
- updated_at_min stringSpecify the earliest update date and time for abandoned checkouts to query. Abandoned checkouts updated on and after this time are returned. Format:ISO 8601 .Example:
2024-08-31T02:20:26+08:00 - limit stringThe maximum number of quried abandoned checkouts.
Default value:20
Value range: 0-100 - status stringThe status of the abandoned checkout. Valid values are:
draft: The customer's contact email or mobile phone number is not filled in on the checkout page.open: The customer's contact email or mobile phone number is filled in on the checkout page, but no order is generated at this time.recovered: The customer's contact email or mobile phone number is filled in on the checkout page, the recall email is sent, and the order is generated.
- created_at_min stringSpecify the earliest creation date and time for abandoned checkouts to query. Abandoned checkouts created on and after this time are returned. Format:ISO 8601 .Example:
2024-08-31T02:20:26+08:00 - ids stringThe unique identifier of the abandoned checkout, with multiple ones separated by commas. A maximum of 100 IDs can be passed.
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Status Codes
- 200
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
link
The URL link that provides the pagination data. You can obtainpage_infofrom this parameter for subsequent pagination requests.This parameter is returned when the requested page has a previous or next page.For more information on how to use pagination, refer to Paging Mechanism.traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
abandoned_ordersobject[]
A list of abandoned checkouts.abandoned_checkout_url stringLink to the checkout page associated with the abandoned checkout.billing_addressobject
The address for sending billing invoices.address1 stringThe first line of the address. This typically includes information such as the street address or a post office box number.address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.city stringThe city in the billing address.company stringThe company name of the billing recipient.country stringCountry or region in the billing address.country_code stringA two-letter code that follows the ISO 3166-1 standard, used to identify a specific country or region in the billing address.Example:USfirst_name stringThe first name of the billing recipient.last_name stringThe last name of the billing recipient.name stringThe full name of the billing recipient.phone stringThe phone number of the billing recipient.province stringThe state or province in the billing address.province_code stringThe code for the province in the address, which is a system custom code. It is recommended to usestandard_province_code.standard_province_code stringThe code for the province in the billing address, which is a two-character ISO 3166-2 international code. It differs from theprovince_coderesponse parameter, which uses a custom code.zip stringThe postal code information of the billing address.checkout_token stringThe unique credential for the abandoned checkout.Example:c2c4a57472e5e0c8a760f2f2f9c5c8b6close_at stringAbandoned checkout closing time. Format: ISO 8601. The closing process occurs in the following two ways:- Automatic closing: The system automatically closes the checkout if the order is not completed within 60 days.
- Order generation: Closing is triggered when an order is generated through the abandoned checkout.
Example:2024-08-31T02:20:26+08:00completed_at stringThe date and time when the order was generated. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00created_at stringThe date and time when the abandoned checkout was created. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00currency stringSettlement currency. A three-letter currency code that follows the ISO 4217 standard.Example:USDcustomerobject
Customer information for the abandoned checkout.addressesobject
The customer address of the abandoned checkout.address1 stringThe first line of the address. This typically includes information such as the street address or a post office box number.address2 stringThe second line of the address. This typically includes information such as apartment, suite, or unit number.city stringThe city in the address.country stringThe country or region in the address.country_code stringA two-letter code that follows the ISO 3166-1 standard, used to identify a specific country or region in the abandoned checkout shipping address.Example:USfirst_name stringThe first name of the customer.last_name stringThe last name of the customer.name stringThe full name of the customer.phone stringThe phone number of the customer.province stringThe state or province of the address.province_code stringThe code for the state or province in the address, which can be a custom code or a two-character ISO 3166-2 international code.zip stringThe postal code information of the address.currency stringSettlement currency. A three-letter currency code that follows the ISO 4217 standard.Example:USDemail stringCustomer's contact email.first_name stringThe first name of the recipient.id stringThe unique identifier of the customer.last_name stringThe last name of the recipient.phone stringThe phone number of the recipient.discount_codesobject[]
The list of promo code information.amount stringDiscount amount. The amount is rounded to two decimal places and displayed in the currency corresponding topresentment_currency.code stringDiscount code. This parameter is empty if no code is used.Example:FKSEFIJESZZZtype stringThe discount type. Valid values are:-1: No discount1: Amount reduction2: Discount (percentage off)3: Free shipping4: Marked-up item5: Preferential price for any N items6: Preferential price for A+B combination7: Free gift8: Fixed selling price9: Lowest-priced item free11: Discount for Nth item12: Buy X get Y free13: Customized14: Price for multiple items
email stringBuyer's contact email.id stringThe unique identifier for the abandoned checkout.line_itemsobject[]
Product information.image stringThe URL address that stores the product image.price stringProduct amount. The value is rounded to two decimal places.product_id stringThe unique identifier for the product.quantity integerProduct quantity.sku stringProduct SKU serial number defined by the system.Example:18051197729580850196772413title stringProduct title.note stringCustomer's notes.note_attributesobject[]
Additional information from the merchant.name stringThe name of the additional information from the merchant.value stringThe value of the additional information from the merchant.phone stringThe phone number of the buyer.presentment_currency stringThe order transaction currency displayed to buyers. The value of this parameter is a three-letter currency code that follows the ISO 4217 standard.Example:USDrecovery_status stringThe recovery status of the abandoned checkout. Valid values are:not_recovered: Indicates that a recall email for the abandoned checkout was sent but did not result in a completed order.recovered: Indicates that an abandoned checkout was successfully converted into a completed order after sending a recall email.
shipping_addressobject
Buyer's shipping address information.address1 stringThe first line of the shipping address. This typically includes information such as the street address or a post office box number.address2 stringThe second line of the shipping address. This typically includes information such as apartment, suite, or unit number.city stringThe city in the shipping address.company stringCompany name of the shipping customer.country stringCountry or region in the shipping address.country_code stringA two-letter code that follows the ISO 3166-1 standard, used to identify a specific country or region in the shipping address.Example:USfirst_name stringThe first name of the customer.last_name stringThe last name of the customer.name stringThe full name of the customer.phone stringThe phone number of the customer.province stringThe state or province of the customer's shipping address.province_code stringThe code for the state or province in the customer address, which can be a custom code or a two-character ISO 3166-2 international code.standard_province_code stringThe code for the province in the shipping address, which is a two-character ISO 3166-2 international code. It differs from theprovince_coderesponse parameter, which uses a custom code.zip stringThe postal code information of the customer shipping address.shipping_linesobject[]
Shipping address information.code stringThe shipping template code. When the value isLocal delivery, it indicates local delivery; in other cases, it returns the name of the delivery method.phone stringThe merchant contact phone number for the local delivery location.title stringShipping plan name.status stringThe status of the abandoned checkout. Valid values are:draft: The customer's contact email or mobile phone number is not filled in on the checkout page.open: The customer's contact email or mobile phone number is filled in on the checkout page, but no order is generated at this time.recovered: The customer's contact email or mobile phone number is filled in on the checkout page, the recall email is sent, and the order is generated.
subtotal_price stringThe item price after discount. The amount value must be rounded to two decimal places. The currency of this amount is specified by thepresentment_currencyfield.total_discounts stringTotal discount amount. The amount value must be rounded to two decimal places. The currency of this amount is specified by thepresentment_currencyfield.total_duties stringTotal tariff. The amount value must be rounded to two decimal places. The currency of this amount is specified by thepresentment_currencyfield.total_line_items_price stringThe total price of all products after discounts. The amount value must be rounded to two decimal places. The currency of this amount is specified by thepresentment_currencyfield.total_price stringTotal discounted order amount, including shipping fees and taxes. The amount value must be rounded to two decimal places. The currency of this amount is specified by thepresentment_currencyfield.total_tax stringThe total tax amount of the order.The amount value must be rounded to two decimal places. The currency of this amount is specified by thepresentment_currencyfield.updated_at stringThe date and time when the abandoned checkout was updated. Format: ISO 8601.Example:2024-08-31T02:20:26+08:00user_id stringThe unique identifier for the buyer.
API Explorer
Debugger
Examples
Was this article helpful to you?