POST
/
webhook
/
event
/
checkout
Shiprocket Checkout
curl --request POST \
  --url https://webhook.cocoonmail.com/webhook/event/checkout \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event": "abandoned_cart",
  "data": {
    "cart_id": "123456789",
    "customer": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "johndoe@example.com",
      "phone": "+910000000000"
    },
    "cart_items": [
      {
        "sku": "ITEM-001",
        "name": "Wireless Headphones",
        "quantity": 1,
        "price": 2999
      }
    ],
    "checkout_url": "https://yourstore.com",
    "created_at": "2024-05-20T14:30:00Z"
  }
}
'
{
  "success": true,
  "message": "Event processed successfully"
}

Shiprocket Checkout

This endpoint handles abandoned cart events from Shiprocket.

Payload

The request body for the abandoned_cart event should follow this structure:
{
  "success": true,
  "message": "Event processed successfully"
}

Authorizations

Authorization
string
header
required

Use your API key with the 'Bearer ' prefix

Body

application/json
event
string
Example:

"abandoned_cart"

data
object

Response

Event processed successfully.