POST requests to the merchant’s configured subscription_callback_url.
There are currently two merchant-facing subscription callback event types:
SUBSCRIPTIONSUBSCRIPTION_TRANSACTION
Subscription Event
TheSUBSCRIPTION event is sent when the subscription lifecycle or mandate authorization status changes.
This includes events such as:
- Mandate approval
- Mandate failure
- Subscription pause
- Subscription activation
- Subscription cancellation
- Subscription completion
- Mandate expiry
- Mandate revocation
- Subscription status changes detected during polling
Callback Example
Subscription Object
Subscription Status Values
Authorization Status Values
Payment Mode Values
Plan Interval Values
Subscription Transaction Event
TheSUBSCRIPTION_TRANSACTION event is sent for an individual subscription payment or mandate authorization transaction.
The callback contains the subscription object together with a transaction object.
Callback Example
Select the
SUBSCRIPTION_TRANSACTION tab in the response example panel to view the full transaction callback payload.Transaction Object
Transaction Status Values
Normal terminal callback statuses are
SUCCESS and FAILED.PSP CANCELLED payment statuses are normalized to FAILED.Transaction Remarks
Nullable Transaction Fields
The following transaction fields may benull:
utrresp_messagefailure_coderemarktransaction_details
Callback Headers
Subscription callbacks include:Delivery and Retries
FastFlowPe expects the merchant callback endpoint to return an HTTP2xx status code to consider the callback successfully delivered.
If the callback does not receive a 2xx response, FastFlowPe retries delivery for the same event.
FastFlowPe makes a maximum of
3 delivery attempts for the same callback event.This means the initial callback plus up to 2 retry attempts.If the merchant endpoint returns an HTTP 2xx response on any attempt, the callback is considered successfully delivered and no further retries are made.Callback Deduplication
Subscription Transaction
SUBSCRIPTION_TRANSACTION callbacks are deduplicated using:
- Transaction ID
- Transaction status
Subscription
SUBSCRIPTION lifecycle callbacks are append-only.
Because of this, the same subscription status may be delivered more than once.
Recommended Merchant Handling
When receiving a subscription callback:- Accept the HTTP
POSTrequest. - Read
event_type. - Handle
SUBSCRIPTIONandSUBSCRIPTION_TRANSACTIONseparately. - Process the callback idempotently.
- Return an HTTP
2xxresponse after successfully accepting and processing the event.