Skip to main content

Abandoned Checkout Webhook

Written by Swapnil Sangal

You can receive abandoned checkouts from Shopflo by subscribing to the webhook. The configuration notifies a URL via HTTP POST about events where which you subscribe for.

This event will include all abandoned checkouts created at Shopflo, including extra abandoned checkouts that do not have address (and cannot be passed to Shopify). Note: Avoid using Shopify Notes for abandoned checkout data simultaneously with the webhook, as this may result in duplicate abandoned checkout links and cause issues. Always use the specified API endpoint as your webhook URL.

Share a REST endpoint which accepts post request.

Request Type: POST

Header: Optional

To add the webhook, log in to your Shopflo dashboard and navigate to Settings > Integrations > Abandoned Webhook. Add the webhook URL in the "Add Webhook Configuration" section and enable Webhooks Tracking. After adding the webhook, click on "Verify Webhook Configuration" in the Shopflo dashboard. This action sends a test event to confirm the webhook setup.

Object

{
"event_name": "checkout_abandoned",
"checkout_id": "8d62-3c53f3eb287",
"cart_token": "56050-3489-4c1a-8d62",
"abandoned_checkout_url": "https://staging.checkout-ui.pages.dev/?tokenId=1a356050-3489-4c1a-8d62-3c53f3eb2873",
"email": null,
"phone": "+917777777777",
"created_at": "2022-12-22T04:31:31.787996Z",
"updated_at": "2022-12-22T04:45:57.159623Z",
"note_attributes": [
{
"name": "landing_page",
"value": "/"
},
{
"name": "orig_referrer",
"value": ""
},
{
"name": "shopflo_checkout_url",
"value": "https://staging.checkout-ui.pages.dev/?tokenId=1a356050-3489-4c1a-8d62-3c53f3eb2873"
}
],
"shipping_address": {
"city": "Kolhapur",
"country": "India",
"country_code": "IN",
"province": "Maharashtra",
"province_code": "MH",
"zip": "416012"
},
"billing_address": {
"city": "Kolhapur",
"country": "India",
"country_code": "IN",
"province": "Maharashtra",
"province_code": "MH",
"zip": "416012"
},
"line_items": [
{
"price": "65.00",
"id": "42885639078136",
"quantity": 1,
"title": "Default Title"
}
],
"customer": {
"uid": "f7e704f3-58b8-477a-b73c-89e654e7777e",
"email": null,
"first_name": "",
"last_name": "J e manoj kumar",
"phone": "+917777777777",
"marketing_consent": true
},
"currency": "INR",
"subtotal_price": 65,
"total_discount": 0,
"total_shipping": 0,
"total_tax": 9.92,
"total_price": 65
}

Did this answer your question?