BillingAgreementEventData
Payload delivered for `subscription-billing.agreement-active.v1` and `subscription-billing.agreement-stopped.v1` webhooks.
Represents an automated, recurring payment agreement between a merchant and a cardholder. Links a Subscription to a Billing Plan so ePay can manage scheduled charges and track billing status.
Unique identifier for the billing agreement.
uuid"019a729e-2d93-7612-9329-8f783f66f834"ID of the associated billing plan.
uuid"019a729e-41c2-7d16-a1e2-fdb15a8146bb"ID of the linked subscription.
uuid"019a729e-51ed-7426-b7c9-0e212b2d77d4"Optional session identifier. Is only present when the billing agreement was made using a session.
uuid"019a729e-660a-7a05-90ad-5160ad0decc5"Optional customer identifier.
"user-1"Date and time of the next charge, if scheduled. Will be null if the agreement is not in the `ACTIVE` state.
date-time"2030-08-29T15:51:28.071Z"Date and time of the last charge, if available.
date-time"2030-07-29T15:51:28.071Z"Preferred day of the month for charging. This is the day of the month ePay will attempt to target for monthly payments. This ensures a consistent billing date across months, which might otherwise vary depending on number of days in the month or leap years. Only available for monthly intervals.
30Current state of the billing agreement.
"PENDING""ACTIVE""STOPPED"Timestamp when the billing agreement last changed state.
date-time"2030-07-29T15:51:28.071Z"Optional reference string.
"agreement-1"Timestamp when the billing agreement was created.
date-time"2030-07-29T15:51:28.071Z"