Create an instalment plan
POST
https://api.tamio.com/v2/instalments/create
Creates a new instalment plan with the specified payment schedule and terms.
The interval field maximum depends on the cycle value:
day→ max interval 365week→ max interval 52month→ max interval 12year→ max interval 1
Body Parameters
label
string*
Display name for the instalment plan
interval
integer*
Number of cycle units between payments (e.g., 2 weeks, 3 months). Maximum depends on the cycle value: day=365, week=52, month=12, year=1.
instalments
integer*
Total number of instalment payments
cycle
string*
Time unit for payment intervals
dayweekmonthyear
upfront
number
Percentage of total amount to pay upfront (0-90%)
interest
number
Interest rate percentage applied to instalments (0-100%)
countries
array of string
Array of country codes where this instalment plan is available
active
boolean
Whether the instalment plan is active
Responses
200
Instalment plan created successfully
Instalment plan created successfully
status
integer
instalment_plan
InstalmentPlan
400
Bad request. Possible `error_code` values:
Bad request. Possible error_code values:
| Code | Description |
|---|---|
10239 | FairUseLimitReached |
status
integer
error
string
Human-readable error message
error_code
integer
Machine-readable error code
401
Missing or invalid API key
Missing or invalid API key
status
integer
error
string