Create Billing Plan
Test this endpoint live
Open the same request directly in API Explorer.
Server URL
Creates a new billing plan. Billing plans are the basis of all billing agreements with automatic charges. :::info Relationship to other components - <b>Subscription:</b> The underlying link between a merchant and a stored payment method. Created via the [Initialize Payment Session <code>/cit</code>](/api/sessions/initialize-payment-session) endpoint by sending the Subscription object. - <b>Billing Plan:</b> Defines recurring details like price, interval, and retry policy. Used only when ePay manages the billing schedule automatically. - <b>Billing Agreement:</b> Connects a Subscription to a Billing Plan. Tracks scheduled processing and charge lifecycle. - <b>Billing Agreement Charge:</b> Represents a scheduled billing event created from an agreement. Each charge can have multiple transaction attempts and a completion deadline. - <b>Transaction:</b> The base payment model used for all processing. Charges and transactions are linked to maintain attempt history. :::
Authorization
BearerAuth In: header
Request Body
application/json
Create billing plan data
TypeScript Definitions
Use the request body type in TypeScript.
Human-readable name of the billing plan.
1 <= length <= 256Charge amount (in the smallest currency unit, e.g. cents).
1 <= valueISO 4217 alpha-3 currency code (e.g., USD, EUR).
^[A-Z]{3}$3 <= length <= 3The InstantCapture mode to use for all charges related to the plan.
OFFindicates that the payment should not be captured instantly (Default).VOIDindicates that the payment should be captured instantly and if somehow the instant capture fails the payment is voided.NO_VOIDindicates that the payment should be captured instantly and if the capture fails the authorization is kept (no void is made)
"OFF""OFF""VOID""NO_VOID""OFF"Maximum number of billing attempts before giving up.
1 <= value <= 31The frequency between automatic charges. A frequency=2 and period=WEEK means one charge every two weeks.
The time unit of the frequency field
"DAY""WEEK""MONTH""YEAR""MONTH"The number of period's between each charge.
1 <= value <= 311Response Body
application/json
application/json
application/json
application/json