Initiate Recovery Outreach for Abandoned User Flows

This endpoint allows merchants to notify WHITELABEL’s Recovery Agent when a user abandons their purchase flow, such as during product selection or after initiating checkout, before completing a payment. The submitted data enables WHITELABEL to follow up with the user via call or WhatsApp to encourage completion of the transaction.

Security and compliance

  • Authentication: API access requires a valid API key provided in the request headers.

  • Data Protection: All data must be transmitted over HTTPS. WHITELABEL adheres to relevant data protection regulations, including GDPR and LGPD.

  • Data Usage: Submitted data will be used solely for the purpose of customer engagement and will not be stored beyond the necessary duration.

Use Case Example

A user named Jane Doe adds a pair of wireless headphones to her cart on a merchant’s website but abandons the checkout process. The merchant’s system detects this and sends the relevant payload to WHITELABEL’s Recovery Agent API. WHITELABEL then initiates a WhatsApp message to Jane, reminding her of the items left in her cart and offering assistance to complete the purchase.

POST/smart-support/external/payments

Body application/json

customerobjectrequired
Show customer properties
full_namestringrequired

Customer’s full name.

phone_numberstringrequired

Customer’s phone number in E.164 format.

emailstring<email>

Customer’s email address.

country_codestringrequired

ISO 3166-1 alpha-2 country code (e.g., “CO”).

languagestring

Preferred language for communication (e.g., “es”, “en”).

sessionobjectrequired
Show session properties
abandonment_timestampstring<date-time>required

Timestamp when the user abandoned the flow.

flow_stage"product_selection" | "cart_review" | "checkout" | "payment"required

Stage where the user dropped off.

platform"web" | "ios" | "android"required

User’s platform.

session_idstring

Unique identifier for the user’s session.

cartobject
Show cart properties
total_valuenumber<float>

Total value of the cart.

currencystring

Currency code (e.g., “COP”).

itemsobject[]

List of items in the cart.

Show items properties
namestring

Item name.

skustring

Stock Keeping Unit identifier.

quantityinteger

Number of units.

pricenumber<float>

Price per unit.

engagementobject
Show engagement properties
preferred_channel"call" | "whatsapp" | "auto"

Preferred communication channel.

reasonstring

Reason for abandonment, if known.

metadataobject

Additional contextual information (e.g., UTM parameters, last user actions).

Response

Successfully initiated recovery outreach.

Invalid request payload or validation error.

Unauthorized - missing or invalid API key.

Internal server error.

Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/smart-support/external/payments" \
  -H "Content-Type: application/json" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>" \
  -d '{
  "customer": {
    "full_name": "Jane Doe",
    "phone_number": "+573001234567",
    "email": "jane.doe@example.com",
    "country_code": "CO",
    "language": "es"
  },
  "session": {
    "abandonment_timestamp": "2025-05-13T22:45:00Z",
    "flow_stage": "checkout",
    "platform": "web",
    "session_id": "sess_abc123xyz"
  },
  "cart": {
    "total_value": 149.99,
    "currency": "COP",
    "items": [
      {
        "name": "Wireless Headphones",
        "sku": "WH-1000XM5",
        "quantity": 1,
        "price": 149.99
      }
    ]
  },
  "engagement": {
    "preferred_channel": "auto",
    "reason": "user_abandoned_checkout",
    "metadata": {
      "utm_campaign": "spring_sale",
      "last_clicked_button": "Proceed to Payment"
    }
  }
}'
Response
(no body)