BillingAgreementsListResponse
The current pagination page
The requested number of entries per page
The last page with entries
The total number of entries
URL for the first page
URL for the last page
URL for the next page
URL for the previous page
The page number for the next page. Null if no next page.
The page number for the previous page. Null if no previous page.
The entry offset for the first entry in the page
The entry offset for the last entry in the page
The path for the pagination endpoint
items object[]
The page contents
billingAgreement object
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.
019a729e-2d93-7612-9329-8f783f66f834ID of the associated billing plan.
019a729e-41c2-7d16-a1e2-fdb15a8146bbID of the linked subscription.
019a729e-51ed-7426-b7c9-0e212b2d77d4Optional session identifier. Is only present when the billing agreement was made using a session.
019a729e-660a-7a05-90ad-5160ad0decc5Optional customer identifier.
user-1Date and time of the next charge, if scheduled. Will be null if the agreement is not in the ACTIVE state.
2030-08-29T15:51:28.071ZDate and time of the last charge, if available.
2030-07-29T15:51:28.071ZPreferred 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.
Possible values: [PENDING, ACTIVE, STOPPED]
Timestamp when the billing agreement last changed state.
2030-07-29T15:51:28.071ZOptional reference string.
agreement-1Timestamp when the billing agreement was created.
2030-07-29T15:51:28.071Z{
"page": 0,
"perPage": 0,
"lastPage": 0,
"total": 0,
"firstPageUrl": "string",
"lastPageUrl": "string",
"nextPageUrl": "string",
"previousPageUrl": "string",
"nextPage": 0,
"previousPage": 0,
"from": 0,
"to": 0,
"path": "string",
"items": [
{
"billingAgreement": {
"id": "019a729e-2d93-7612-9329-8f783f66f834",
"billingPlanId": "019a729e-41c2-7d16-a1e2-fdb15a8146bb",
"subscriptionId": "019a729e-51ed-7426-b7c9-0e212b2d77d4",
"sessionId": "019a729e-660a-7a05-90ad-5160ad0decc5",
"customerId": "user-1",
"nextChargeAt": "2030-08-29T15:51:28.071Z",
"lastChargeAt": "2030-07-29T15:51:28.071Z",
"desiredDate": 30,
"state": "PENDING",
"stateChangedAt": "2030-07-29T15:51:28.071Z",
"reference": "agreement-1",
"createdAt": "2030-07-29T15:51:28.071Z"
}
}
]
}