Subscription Recurrence Webhook Events

POSThttps://your-server.com/webhooks/easyflow

Listen to subscription recurrence events to keep your integration always synchronized.

Your application receives a notification whenever the status of an individual recurrence (payment attempt) within a subscription changes.

Recurrence Events

  • subscriptionRecurrence.canceled — Recurrence payment canceled.
  • subscriptionRecurrence.delayed — Recurrence payment delayed.
  • subscriptionRecurrence.failed — Recurrence payment failed.
  • subscriptionRecurrence.paid — Recurrence payment successfully paid.

Events

  • subscriptionRecurrence.canceled
  • subscriptionRecurrence.delayed
  • subscriptionRecurrence.failed
  • subscriptionRecurrence.paid

Easyflow sends an HTTP request with this payload to the URL registered for your webhook.

Payloadrequired

Webhook payload with the data of the subscription recurrence event.

Content typeapplication/jsonobject

  • eventstring

    Name of the event received.

    Possible values:subscriptionRecurrence.canceledsubscriptionRecurrence.delayedsubscriptionRecurrence.failedsubscriptionRecurrence.paid

  • occurredAtstring · date-time

    Date and time when the notification was sent, in UTC.

  • payloadobject

    Complete recurrence data.

    Show child attributesHide child attributes
    • idstring · uuid
    • subscriptionIdstring · uuid
    • statusstring

      Possible values:pendingchargeddelayedfailedpaidcanceledrefunded

    • billingDatestring · date-time
    • createdAtstring · date-time
    • dueDatestring · date-time
    • paidAtstring · date-timenullable
    • recurrenceinteger
    • recurrenceValueInCentsinteger
    • retryobject
      Show child attributesHide child attributes
      • lastRetrystring · date-time
      • nextRetrystring · date-time
      • retriesinteger
    • paymentsarray of objects

      In this event, pix, bankBillet and creditCard are always objects. Their fields are absent when they do not apply to the payment method.

      Show child attributesHide child attributes
      • idstring
      • paymentMethodstring

        Payment method, such as credit-card, pix or bank-billet.

      • statusstring

        Possible values:pendingin-processingauthorizedpaidpartially-paidrefusedabortedcanceledcharged-backchargeback-in-disputeunpaidaccepteddeniedreversedrefunded

      • valueInCentsinteger
      • valuePaidInCentsinteger
      • fineValueInCentsinteger
      • interestValueInCentsinteger
      • installmentsinteger
      • pixobjectnullable
        Show child attributesHide child attributes
        • copyAndPasteCodestringnullable
        • qrCodestringnullable
        • expireAtstring · date-timenullable
      • bankBilletobjectnullable
        Show child attributesHide child attributes
        • expireAtstring · date-timenullable
        • barCodestringnullable
        • linkstringnullable
        • linestringnullable
      • creditCardobjectnullable
        Show child attributesHide child attributes
        • last4Numbersstring
        • flagstring

          Possible values:visamastercardamerican-expressdiners-clubdiscoverjcbunionpaymaestromirelohiperhipercard

        • expiresAtYearinteger
        • expiresAtMonthinteger
        • holderNamestring
        • nicknamestring
      • refuseobjectnullable

        Reason why the payment was refused.

        Show child attributesHide child attributes
        • rawDescriptionstring
        • typestringnullable