Docs

Log in to read the version of docs relevant to your site, or use the dropdown versions

Recover abandoned carts

Learn how to recover lost sales and increase conversion rates effortlessly.

Customers may abandon their checkout process for various reasons, such as payment issues, product choices, or pricing concerns. A simple reminder email can often rekindle their interest and encourage them to complete their purchase.

By identifying abandoned carts and sending timely email reminders, you can boost your business and grow your customer base. Chargebee provides tools to detect abandoned carts, automate reminder emails, and convert potential customers into paying clients.

When a customer leaves a checkout page unattended for 30 minutes or closes the webpage without returning within 30 minutes, Chargebee categorizes it as an abandoned cart.

Prerequisite

Make the email address a required field to contact cart owners. Abandoned carts are tracked only when customers provide their email addresses. Learn more about configuring checkout fields.

Enable and track abandoned carts

  1. Log in to Chargebee.
  2. Go to Settings > Configure Chargebee > Checkout and Self-Serve Portal > Configuration > Advanced Settings.
  3. Turn on the Track abandoned carts toggle.
  4. Click Publish.

Note:

Inform customers when you use this feature. Update your terms and conditions and privacy policy to protect customer privacy.

Why don't I see customers in the abandoned cart reports?

  • Ensure the Track abandoned carts setting is enabled.
  • Make email addresses mandatory to track and retarget potential customers.

Access abandoned cart reports in Chargebee

Chargebee generates a report to track abandoned carts. You can view it at Classic Reports > Revenue Recovery > Abandoned Carts.

  • Automatic updates: The report refreshes every 2 hours for live sites and every 12 hours for sandbox sites.
  • Comprehensive data: The report includes total cart value, customer details, line items, applied coupons, and payment methods.

Note:

The abandoned cart report is currently descoped. Learn more.

Retrieve cart information using the API

Use the Retrieve a Hosted Page API to get the state of a cart.

When a customer visits the cart, the checkout_info contains the following details:

Field nameTypeDescription
client_ipstringThe IP address of the client.
order_valueintegerThe value of the order.
currencystringThe currency in which the order is placed.
localestringThe locale setting for the order.
coupon_actionsarrayAn array of coupon action objects.
timestampintegerThe timestamp of the coupon action.
statusstringThe status of the coupon action. Possible values: "succeeded," "failed," "removed."
codestringThe code of the coupon used in the action.
failure_msgstringA message describing any failure related to the coupon action.
api_error_codestringThe API error code associated with the coupon action.
error_codestringAn error code associated with the coupon action.
checkout_submitarrayAn array of checkout submit objects.
statusstringThe status of the checkout submission. Possible values: "succeeded," "failed."
timestampintegerThe timestamp of the checkout submission.
gatewayobjectAn object containing gateway information.
idstringThe ID of the gateway.
namestringThe name of the gateway.
payment_methodstringThe payment method used for the checkout submission.
errorsobjectAn object containing error information related to the checkout submission.
error_msgstringA message describing any error related to the checkout submission.
api_error_codestringThe API error code associated with the checkout submission.
http_status_codestringThe HTTP status code associated with the error.
vat_validationarrayStatus of VAT-validation requests.
order_itemsarrayAn array of order item objects.
entity_typestringThe type of the entity (plan, addon, charge, adhoc).
entity_idstringThe ID of the entity.
quantityintegerThe quantity of the entity.
unit_amountintegerThe unit amount of the entity.
subscriptionobjectAn object containing subscription information.
customerobjectAn object containing customer information.
billing_addressobjectAn object containing billing address information.
shipping_addressobjectAn object containing shipping address information.
shipping_ship_to_billingbooleanA boolean indicating whether shipping is to the billing address.
couponsarrayAn array of coupon codes.

Example Checkout

API Response

{
    "hosted_page": {
        "id": "tIo4cdJ0di93mVVltYzcZFoIWYRyoGO7D",
        "type": "checkout_new",
        "url": "https://honeydukes-test.chargebee.com/pages/v4/tIo4cdJ0di93mVVltYzcZFoIWYRyoGO7D/",
        "state": "requested",
        "embed": false,
        "created_at": 1694682418,
        "expires_at": 1694693218,
        "object": "hosted_page",
        "updated_at": 1694682444,
        "resource_version": 1694682444868,
        "checkout_info": {
            "client_ip": "54.88.235.200",
            "order_value": 100000,
            "currency": "USD",
            "locale": "en_GB",
            "order_items": [
                {
                    "entity_type": "plan",
                    "entity_id": "cbdemo_advanced-USD-monthly",
                    "quantity": 1
                },
                {
                    "entity_type": "addon",
                    "entity_id": "cbdemo_additional-users-USD-monthly",
                    "quantity": 2,
                    "unit_amount": 50000
                }
            ],
            "customer": {
                "first_name": "Minerva",
                "last_name": "McGonagall",
                "email": "minerva@hogwarts.com"
            },
            "subscription": {
                "cf_butterbeer_type": "Frozen Butterbeer"
            }
        }
    }
}

Is tracking carts applicable for all types of checkout?

Understanding recovered carts and sending reminders

When a customer completes a purchase after abandoning a cart, it is called a Recovered Cart.

  • Identifies when a customer returns to complete a purchase.
  • Provides detailed reports with customer information, product details, recovered value, and recovery source.

Set up reminder emails for cart recovery

Configure reminder emails to encourage customers to complete their checkout process.

  • Customizable timing: Send reminders from 30 minutes to 30 days after cart abandonment.
  • Multiple reminders: Increase recovery chances by sending multiple emails.
  • Detailed cart information: Include a breakdown of items left in the cart.
  • Seamless checkout: Add a button in the email to resume the checkout session.
  • Pre-filled data: Retain customer information to reduce friction.

Go to Settings > Configure Chargebee > Email Notifications > Abandoned Cart Reminders to set up email notifications.

Sample Email:

Access recovered carts reports in Chargebee

Chargebee generates a report with details about recovered carts. You can view it at Reports > Revenue Recovery > Recovered Carts.

The recovery source indicates how the customer returned to the cart:

  • Organic: The customer logged in and completed the checkout.
  • Email: The customer used the reminder email to complete the checkout.

With Chargebee's Abandoned Cart Recovery feature, you can reclaim lost sales, boost conversions, and provide a seamless shopping experience. Start using it today to grow your revenue!

Was this article helpful?