Looking for ePay classic docs? Go to docs.epay.dk
ePay documentationDocsePay documentation

CreateBillingPlanRequest

namestring
Required

Human-readable name of the billing plan.

Length:
1 <= length <= 256
amountinteger
Required

Charge amount (in the smallest currency unit, e.g. cents).

Range:
1 <= value
currencystring
Required

ISO 4217 alpha-3 currency code (e.g., USD, EUR).

Match:
^[A-Z]{3}$
Length:
3 <= length <= 3
instantCapturestring
Nullable
Default:
"OFF"
Possible values:
"OFF""VOID""NO_VOID"
Example:
"OFF"
maxAttemptsinteger
Required

Maximum number of billing attempts before giving up.

Range:
1 <= value <= 31
periodstring
Required

The time unit of the frequency field

Possible values:
"DAY""WEEK""MONTH""YEAR"
Example:
"MONTH"
frequencyinteger
Required

The number of period's between each charge.

Range:
1 <= value <= 31
Example:
1
CreateBillingPlanRequest
{  "name": "string",  "amount": 1,  "currency": "str",  "instantCapture": "OFF",  "maxAttempts": 1,  "interval": {    "period": "MONTH",    "frequency": 1  }}