CreateBillingPlanRequest
namestringrequired
Human-readable name of the billing plan.
Possible values: non-empty and <= 256 characters
amountintegerrequired
Charge amount (in the smallest currency unit, e.g. cents).
Possible values: >= 1
currencystringrequired
ISO 4217 alpha-3 currency code (e.g., USD, EUR).
Possible values: >= 3 characters and <= 3 characters, Value must match regular expression ^[A-Z]{3}$
maxAttemptsintegerrequired
Maximum number of billing attempts before giving up.
Possible values: >= 1 and <= 31
interval objectrequired
The frequency between automatic charges. A frequency=2 and period=WEEK means one charge every two weeks.
periodstringrequired
The time unit of the frequency field
Possible values: [DAY, WEEK, MONTH, YEAR]
Example:
MONTHfrequencyintegerrequired
The number of period's between each charge.
Possible values: >= 1 and <= 31
Example:
1CreateBillingPlanRequest
{
"name": "string",
"amount": 0,
"currency": "string",
"maxAttempts": 0,
"interval": {
"period": "MONTH",
"frequency": 1
}
}