Paymentplans
Payment plan management
Retrieve a paginated list of paymentplans
Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.
Page number
1Items per page (max 100)
25Comma-separated list of expansions: items, payments, order, customer, custom_fields, card, gateway
items,paymentsFilter by id (exact match).
Filter by id (greater than or equal)
Filter by id (less than or equal)
Filter by id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by id (excluding a comma-separated list)
Filter by status (exact match). Valid values: active, past_due, unpaid, completed, defaulted.
Filter by status (comma-separated list). Fetches many records in one request instead of one request per id.
active,past_dueFilter by status (excluding a comma-separated list)
Filter by order_id (exact match).
Filter by order_id (greater than or equal)
Filter by order_id (less than or equal)
Filter by order_id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by order_id (excluding a comma-separated list)
Filter by customer_id (exact match).
Filter by customer_id (greater than or equal)
Filter by customer_id (less than or equal)
Filter by customer_id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by customer_id (excluding a comma-separated list)
Filter by email (exact match).
Filter by email (contains)
Filter by created_at (exact match).
Filter by created_at (greater than or equal)
Filter by created_at (less than or equal)
Filter by updated_at (exact match).
Filter by updated_at (greater than or equal)
Filter by updated_at (less than or equal)
Filter by next_payment_at (exact match).
Filter by next_payment_at (greater than or equal)
Filter by next_payment_at (less than or equal)
Sort field (prefix with - for descending)
-created_atSuccessful response with paginated list
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Internal Server Error - An unexpected error occurred
GET /v2/paymentplans HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": 1,
"order_id": 1,
"card_id": 1,
"status": "active",
"next_payment_at": "2026-01-01T00:00:00.000Z",
"finished_at": "2026-05-04T12:00:00Z",
"frequency": "month",
"frequency_count": 1,
"is_finance_hidden": true,
"unpaid_at": "2026-01-01T00:00:00.000Z",
"is_scheduled": true,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"remaining_balance": 1,
"paid_amount": 1,
"total_amount": 1,
"defaulted_amount": 1,
"payments_made": 1,
"payments_remaining": 1,
"item_ids": [
1
],
"current_payment_status": "text",
"payment_ids": [
1
],
"retry_schedule": [
"text"
],
"detail": {
"ANY_ADDITIONAL_PROPERTY": null
},
"items": [
{
"ANY_ADDITIONAL_PROPERTY": null
}
],
"payments": [
{
"ANY_ADDITIONAL_PROPERTY": null
}
],
"order": {
"ANY_ADDITIONAL_PROPERTY": null
},
"customer": {
"ANY_ADDITIONAL_PROPERTY": null
},
"custom_fields": [],
"card": {
"ANY_ADDITIONAL_PROPERTY": null
},
"gateway": {
"ANY_ADDITIONAL_PROPERTY": null
}
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 150,
"pages": 6
}
}Retrieve a single paymentplans by ID
Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.
paymentplans ID
12345Comma-separated list of expansions: items, payments, order, customer, custom_fields, card, gateway
items,paymentsSuccessful response
Payment plan ID
Associated order ID
Card used for payments
Payment plan status. 'defaulted' is a terminal write-off state set via the pay endpoint with payoff_outcome='defaulted'.
activePossible values: Next scheduled payment date
Timestamp when the plan reached a terminal state (completed or defaulted). Null for active plans.
2026-05-04T12:00:00ZPayment frequency
monthPossible values: Frequency multiplier (e.g., 2 for bi-weekly)
1Whether finance details are hidden
When payment plan became unpaid
Whether plan is scheduled
Creation timestamp
Last update timestamp
Remaining balance in cents
Total paid amount in cents
Total plan amount in cents
Magnitude of write-off adjustments tied to this plan from a payoff_outcome='defaulted' request, in cents (positive). Zero for plans that were never defaulted.
Number of payments made
Number of payments remaining
Order item IDs in this plan
Status of most recent payment
Payment IDs for this plan
Pending retry schedule for past_due plans (array of date strings)
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
GET /v2/paymentplans/{id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"order_id": 1,
"card_id": 1,
"status": "active",
"next_payment_at": "2026-01-01T00:00:00.000Z",
"finished_at": "2026-05-04T12:00:00Z",
"frequency": "month",
"frequency_count": 1,
"is_finance_hidden": true,
"unpaid_at": "2026-01-01T00:00:00.000Z",
"is_scheduled": true,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"remaining_balance": 1,
"paid_amount": 1,
"total_amount": 1,
"defaulted_amount": 1,
"payments_made": 1,
"payments_remaining": 1,
"item_ids": [
1
],
"current_payment_status": "text",
"payment_ids": [
1
],
"retry_schedule": [
"text"
],
"detail": {
"ANY_ADDITIONAL_PROPERTY": null
},
"items": [
{
"ANY_ADDITIONAL_PROPERTY": null
}
],
"payments": [
{
"ANY_ADDITIONAL_PROPERTY": null
}
],
"order": {
"ANY_ADDITIONAL_PROPERTY": null
},
"customer": {
"ANY_ADDITIONAL_PROPERTY": null
},
"custom_fields": [],
"card": {
"ANY_ADDITIONAL_PROPERTY": null
},
"gateway": {
"ANY_ADDITIONAL_PROPERTY": null
}
}Cancel a payment plan by setting its status to unpaid.
Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.
Payment plan ID
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
PUT /v2/paymentplans/{id}/cancel HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"notes": "text"
}No content
Add a note to a payment plan. Notes are stored as user events.
Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.
Payment plan ID
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
POST /v2/paymentplans/{id}/notes HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"notes": "text"
}No content
Create a new payment card and assign it to the payment plan.
Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.
Payment plan ID
Payment token from the gateway (e.g. Stripe payment method)
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
POST /v2/paymentplans/{id}/card HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 14
{
"token": null
}No content
Update a payment plan to use an existing card on file.
Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.
Payment Plan ID
ID of the existing card to use
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
PUT /v2/paymentplans/{id}/card HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"card_id": 1
}No content
Update the next billing date for a payment plan. Date must be in the future.
Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.
Payment plan ID
Next billing date (ISO 8601)
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
PUT /v2/paymentplans/{id}/nextbillingdate HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"next_payment_at": "text",
"notes": "text"
}No content
Update the payment amount, remaining balance, and/or frequency of a payment plan.
Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.
Payment plan ID
New payment amount per cycle in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500). Must be a non-negative integer.
New remaining balance in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500). Must be a non-negative integer.
Billing unit. For "every 2 weeks" pass frequency: "week" with frequency_count: 2.
Number of frequency units per billing cycle. Defaults to 1.
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
PUT /v2/paymentplans/{id}/terms HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 95
{
"payment_amount": 1,
"remaining_balance": 1,
"frequency": "day",
"frequency_count": 1,
"notes": "text"
}No content
Process a manual payment on a payment plan. Can be a partial payment or a full payoff.
Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.
Payment plan ID
Payment amount in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500).
If set, treats this request as a payoff: 'completed' marks the plan paid in full, 'defaulted' marks it as a write-off. When null/omitted, this is a regular partial payment.
Successful response
Bad Request - The request was invalid or malformed
Unauthorized - Authentication is required or has failed
Forbidden - You do not have permission to access this resource
Not Found - The requested resource does not exist
Internal Server Error - An unexpected error occurred
POST /v2/paymentplans/{id}/pay HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"amount": 1,
"payoff_outcome": "completed",
"notes": "text"
}No content
Last updated