Name of the event received.
Subscription Webhook Events
Listen to subscription events to keep your integration always synchronized.
Webhooks are the safest and most reliable way to stay updated in real time. Your application receives a notification whenever the status of a subscription changes.
Subscription Events
- subscription.created — Subscription created.
- subscription.updated — Subscription updated.
- subscription.activated — Subscription activated.
- subscription.canceled — Subscription canceled.
- subscription.deactivated — Subscription deactivated.
- subscription.expired — Subscription expired.
- subscription.inactivated — Subscription inactivated.
Origin of the subscription
Besides subscriptions from an offer (origin equal to offer), a subscription can be created through the API (api) or by a buyer who subscribes through a recurring payment link (payment-link). Subscriptions created through the API or by a payment link send the same events listed above; no event is specific to either origin. They are created as soon as the first order is charged, whatever the result of the card: subscription.created is sent and, if the first order is refused, subscription.canceled follows.
The webhook payload does not include origin. To know how a subscription was created, read origin in Get subscription or Filter subscription.
Events
subscription.createdsubscription.updatedsubscription.activatedsubscription.canceledsubscription.deactivatedsubscription.expiredsubscription.inactivated
Easyflow sends an HTTP request with this payload to the URL registered for your webhook.
Payloadrequired
Webhook payload received by your server in the event of an event.
Content typeapplication/jsonobject
eventstringoccurredAtstring · date-timeDate and time when the notification was sent, in UTC.
payloadobjectComplete subscription data.
Show child attributesHide child attributes
idstring · uuidnamestringcreatedAtstring · date-timeexpirationstring · date-timeinstallmentsintegernumberRecurrencesintegerrepeatIndefinitelybooleanperiodicitystringstatusstringpaymentMethodstringrecurrencePaymentStatusstringrecurrenceValueInCentsintegercustomValueobjectShow child attributesHide child attributes
recurrenceFromintegerrecurrenceTointegervalueInCentsinteger
retryobjectShow child attributesHide child attributes
intervalInDaysintegerretriesMaxNumberinteger
customerobjectShow child attributesHide child attributes
namestringemailstringphoneobjectShow child attributesHide child attributes
dddstringnumberstringareaCodestringisMobileboolean
documentobjectShow child attributesHide child attributes
typestringnumberstring
deliveryAddressobjectShow child attributesHide child attributes
streetstringneighborhoodstringnumberstringcitystringstatestringzipCodestringcomplementstring
billingAddressobjectShow child attributesHide child attributes
streetstringneighborhoodstringnumberstringcitystringstatestringzipCodestringcomplementstring
participantsarray of objectsShow child attributesHide child attributes
businessobjectShow child attributesHide child attributes
idstring · uuidnamestring