Recurring Order Event

order.recurring.created

This event is triggered when a subscriber completes the payment for a recurring after the first order i.e . the first automatic charge for a subscription.

curl --location 'https://api-prod-new.tagmango.com/integration/webhook' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: en-US,en;q=0.9' \
--header 'Cache-Control: no-cache' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <Your API Key>' \
--data '{
    "hookUrl": "<your webhook url>",
    "event": "order.recurring.created",
    "mango": "<mango to be associated> (optional sends all events if not specified)",
}'

The webhook payload:

{
   "id":"abcd",
   "name":"Subscriber Name",
   "email":"[email protected]",
   "phone":1234567890,
   "orderTime":"2025-02-03T12:36:18.831Z",
   "orderId":"abcd",
   "amount":100,
   "gst":0,
   "discount":20,
   "coupon":"CODE",
   "country":"IN",
   "amountPayable":90,
   "mangoName":"Your course",
   "status":"completed",
   "dialCode":"+91",
   "subscriberId":"defg",
   "recurringType":"monthly",
   "currency":"INR",
   "quantity":1,
   "affiliateId":"eadg",
   "affiliateName":"Affiliate Name",
   "affiliateEmail":"[email protected]",
   "affiliatePhone":123467890,
   // any custom fields in your mango as key value pairs
}

Last updated