Docs
Management API
Abandoned carts

Abandoned carts

Use /abandoned-carts/{token} on headless storefronts to retrieve the cart_id using the abandoned cart token passed to the storefront when a shopper clicks an abandoned cart email link. Once the cart ID has been retrieved, your application can use it to fetch and display information about the cart to the shopper using the REST Storefront API, the REST Management API, or the GraphQL Storefront API.

Get an abandoned cart

GET /abandoned-carts/{token}

Request

Return the cart_id corresponding to the abandoned cart {token} passed in.

Usage Notes:

  • {token} is the token in the query string of the abandoned cart link found in abandoned cart email notifications to shoppers

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string
  • token in path - string
    required

    Unique cart UUID.

    Unique cart UUID token that is generated for abandoned cart emails.

  • Accept in header with default of application/json - string
    required

    The MIME type of the response body.

example

Response

Returned on GET requests to /abandoned_carts.

Body

object | application/json
  • data
    object

  • meta
    object

    Response metadata

example

Get global abandoned cart settings

GET /abandoned-carts/settings

Request

Return the global abandoned cart settings of a store.

Authentication

  • X-Auth-Token in header
    required

Parameters

  • store_hash in path - string
  • pagination in query - integer

    How many pages to return

example

Response

OK

Body

object | application/json

The response object of abandoned cart settings at the global level

  • data
    object

    Represents all settings related to the abandoned cart functionality of a store

  • meta
    object

    Response metadata

example

Did you find what you were looking for?