Skip to main content

Installment Plans

Installment plans let your customers pay in scheduled increments. You define the total amount, number of payments, and frequency — ZendFi calculates the per-installment amount and generates a payment schedule automatically.

Create an Installment Plan

customer_wallet
string
required
Solana wallet address of the customer.
customer_email
string
Optional email for notifications.
total_amount
number
required
Total amount to be paid across all installments.
installment_count
integer
required
Number of installments to split the total into.
payment_frequency_days
integer
required
Days between each installment due date.
first_payment_date
string
ISO 8601 date for the first installment. Defaults to tomorrow.
description
string
Description of what this plan covers.
late_fee_amount
number
Fee charged for late payments.
grace_period_days
integer
default:"7"
Days after due date before an installment is considered late.
metadata
object
Arbitrary key-value pairs.

Example

Response


List Merchant Installment Plans

Returns all installment plans created by the authenticated merchant.
limit
integer
default:"50"
Maximum number of results.
offset
integer
default:"0"
Number of results to skip.

Get an Installment Plan

plan_id
string
required
Installment plan ID.

List Customer Installment Plans

Returns all installment plans for a specific customer wallet.
customer_wallet
string
required
Customer’s Solana wallet address.

Get Next Due Installment

Returns the next pending or late installment for a plan.
plan_id
string
required
Installment plan ID.

Response


Pay an Installment

Creates a payment for the next due installment. The payment follows the standard payment flow and settles to the merchant wallet.
plan_id
string
required
Installment plan ID.

Cancel an Installment Plan

Cancels an active plan. Any remaining unpaid installments are voided.
plan_id
string
required
Installment plan ID.

Plan Lifecycle

Status Reference