List Payment Plans
GET/rest/payment_plans
/rest/payment_plansThe Payment Plans API allows merchants to manage and monitor payment installment plans for their invoices.
Retrieve a paginated list of payment plans with comprehensive filtering options. This endpoint allows you to monitor all payment installment plans across your channels.
Query Parameters
pageIntegerPage number (default: 1)
per_pageIntegerItems per page (default: 50, max: 100)
statusStringFilter by status:
created, active, completed, failed, canceledplan_typeStringFilter by plan type:
three_months, six_months, nine_months, twelve_months, fifteen_months, eighteen_monthschannel_url_nameStringFilter by channel URL name
invoice_numberStringFilter by invoice number (partial match supported)
currencyStringFilter by currency code (e.g., EUR, USD)
created_afterStringFilter plans created after date (ISO 8601 format: YYYY-MM-DD)
created_beforeStringFilter plans created before date (ISO 8601 format: YYYY-MM-DD)
Example Request
GET /rest/payment_plans?page=1&status=active&channel_url_name=my-shop
Authorization: Basic <base64(api_key:api_password)>
Response
payment_plansArrayArray of payment plan summary objects. See Payment plan summary object below.
statisticsObjectOverview statistics for all payment plans
paginationObjectPagination metadata (
page, items, count, pages, etc.)errorStringError details (
null on success)messageStringSuccess or error message
Example Response
{
"error": null,
"message": "Payment plans have been successfully retrieved.",
"payment_plans": [
{
"id": 123,
"status": "active",
"plan_type": "six_months",
"currency": "EUR",
"installments": 6,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"invoice": {
"id": 456,
"debt_claim_number": "INV-2024-001",
"customer_name": "John Doe",
"currency": "EUR",
"original_amount": 600.0,
"channel": {
"id": 789,
"name": "My Shop",
"url_name": "my-shop"
}
},
"financial_summary": {
"total_amount": 630.0,
"paid_amount": 210.0,
"remaining_amount": 420.0,
"progress_percentage": 33.33
},
"next_payment_date": "2024-03-15",
"payments_completed": 2,
"total_payments": 6,
"transactions": [
{
"installment_number": 1,
"status": "paid",
"amount": 105.0,
"included_fees": 5.0,
"scheduled_date": "2024-01-15",
"transaction_id": "TRX-ABC123",
"initial_transaction_id": null,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-16T08:45:00Z"
}
]
}
],
"statistics": {
"total": 150,
"active": 45,
"completed": 80,
"failed": 10,
"canceled": 15,
"created": 0
},
"pagination": {
"page": 1,
"items": 10,
"count": 45,
"pages": 5,
"from": 1,
"to": 10,
"prev": null,
"next": 2
}
}
Payment plan summary object
idIntegerUnique identifier for the payment plan
statusStringCurrent status:
created, active, completed, failed, canceledcurrencyStringCurrency code (e.g., EUR, USD)
plan_typeStringType of plan:
three_months, six_months, nine_months, twelve_months, fifteen_months, eighteen_monthsinstallmentsIntegerTotal number of installments in the plan
created_atStringWhen the payment plan was created (ISO 8601)
updated_atStringWhen the payment plan was last updated (ISO 8601)
invoiceObjectAssociated invoice details object
financial_summaryObjectFinancial breakdown object. See Financial summary object below.
next_payment_dateStringDate of next scheduled payment (YYYY-MM-DD)
payments_completedIntegerNumber of installments successfully paid
total_paymentsIntegerTotal number of installments
transactionsArrayArray of transaction objects. See Transaction object below.
Payment Plan Summary Object
{
"id": 123,
"status": "active",
"plan_type": "six_months",
"currency": "EUR",
"installments": 6,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"invoice": {
"id": 456,
"debt_claim_number": "INV-2024-001",
"customer_name": "John Doe",
"currency": "EUR",
"original_amount": 600.0,
"channel": {
"id": 789,
"name": "My Shop",
"url_name": "my-shop"
}
},
"financial_summary": {
"total_amount": 630.0,
"paid_amount": 210.0,
"remaining_amount": 420.0,
"progress_percentage": 33.33
},
"next_payment_date": "2024-03-15",
"payments_completed": 2,
"total_payments": 6,
"transactions": []
}
Financial summary object
total_amountFloatTotal amount including all fees
paid_amountFloatAmount already paid
remaining_amountFloatAmount still to be paid
progress_percentageFloatCompletion percentage (0-100)
Financial Summary Object
{
"total_amount": 630.0,
"paid_amount": 210.0,
"remaining_amount": 420.0,
"progress_percentage": 33.33
}
Transaction object
installment_numberIntegerInstallment number in the sequence (1, 2, 3, etc.)
statusStringTransaction status:
scheduled, pending, paid, failed, canceledamountFloatTransaction amount including fees
included_feesFloatFees included in the amount
scheduled_dateStringScheduled payment date (YYYY-MM-DD)
transaction_idStringAssociated transaction ID (if payment processed)
initial_transaction_idStringReference to initial transaction
created_atStringWhen transaction was created (ISO 8601)
updated_atStringWhen transaction was last updated (ISO 8601)
Transaction Object
{
"installment_number": 1,
"status": "paid",
"amount": 105.0,
"included_fees": 5.0,
"scheduled_date": "2024-01-15",
"transaction_id": "TRX-ABC123",
"initial_transaction_id": null,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-16T08:45:00Z"
}