Subscriptions
Subscription management
Retrieve a paginated list of subscriptions
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: payments, usage, custom_fields, customer, order
payments,usageFilter 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: pending, trialing, active, past_due, canceling, canceled, unpaid, swapped.
Filter by status (comma-separated list). Fetches many records in one request instead of one request per id.
pending,trialingFilter 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 product_id (exact match).
Filter by product_id (greater than or equal)
Filter by product_id (less than or equal)
Filter by product_id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by product_id (excluding a comma-separated list)
Filter by product_option_price_id (exact match).
Filter by product_option_price_id (greater than or equal)
Filter by product_option_price_id (less than or equal)
Filter by product_option_price_id (comma-separated list). Fetches many records in one request instead of one request per id.
101,102,103Filter by product_option_price_id (excluding a comma-separated list)
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/subscriptions HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": 1,
"order_item_id": 1,
"product_option_price_id": 1,
"card_id": 1,
"swapped_from_id": 1,
"published_block_item_id": 1,
"replace_published_block_item_id": 1,
"name": "text",
"block_type": "text",
"stripe_subscription_id": "text",
"stripe_subscription_item_id": "text",
"status": "active",
"next_payment_at": "2026-01-01T00:00:00.000Z",
"trial_days": 1,
"num_payment_skips_remaining": 1,
"tax_rate": 0.0825,
"is_commissionable": true,
"is_trial_end_upcoming_sent": true,
"unpaid_at": "2026-01-01T00:00:00.000Z",
"canceled_at": "2026-01-01T00:00:00.000Z",
"order_id": 1,
"tax_type": "text",
"replace_price_id": 1,
"published_checkout_item_id": "text",
"event_ready_at": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"payment_ids": [
1
],
"retry_schedule": [
"text"
],
"current_payment_status": "text",
"detail": {
"ANY_ADDITIONAL_PROPERTY": null
},
"discounts": [
{
"id": 1,
"subscription_id": 1,
"promo_id": 1,
"stripe_coupon_id": "text",
"discount_type": "amount",
"discount_offset": 1,
"duration_in_months": 1,
"use_taxes": true,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"deactivated_at": "2026-01-01T00:00:00.000Z",
"promo_code": "text"
}
],
"usage": {
"ANY_ADDITIONAL_PROPERTY": null
},
"payments": [
{
"ANY_ADDITIONAL_PROPERTY": null
}
],
"custom_fields": [],
"customer": {
"ANY_ADDITIONAL_PROPERTY": null
},
"order": {
"ANY_ADDITIONAL_PROPERTY": null
},
"price": {
"ANY_ADDITIONAL_PROPERTY": null
},
"card": {
"ANY_ADDITIONAL_PROPERTY": null
},
"gateway": {
"ANY_ADDITIONAL_PROPERTY": null
}
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 150,
"pages": 6
}
}Retrieve a single subscriptions 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.
subscriptions ID
12345Comma-separated list of expansions: payments, usage, custom_fields, customer, order
payments,usageSuccessful response
Subscription ID
Associated order item ID
Product option price ID
Payment card ID
Previous subscription ID if swapped
Published block item ID
Replacement block item ID
Subscription name/description
Block type identifier
Stripe subscription ID
Stripe subscription item ID
Subscription status
activePossible values: Next scheduled payment date
Trial period duration in days
Number of payment skips remaining
Tax rate as decimal
0.0825Whether subscription generates affiliate commission
Whether trial end notification was sent
When subscription became unpaid
When subscription was canceled
Associated order ID
Type of tax (vat, tax, gst)
Replacement price ID
Published checkout item ID
When subscription event was ready
Creation timestamp
Last update timestamp
Array of payment IDs (excluding initial payment)
Pending retry schedule for past_due subscriptions (array of date strings)
Status of most recent payment
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/subscriptions/{id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"order_item_id": 1,
"product_option_price_id": 1,
"card_id": 1,
"swapped_from_id": 1,
"published_block_item_id": 1,
"replace_published_block_item_id": 1,
"name": "text",
"block_type": "text",
"stripe_subscription_id": "text",
"stripe_subscription_item_id": "text",
"status": "active",
"next_payment_at": "2026-01-01T00:00:00.000Z",
"trial_days": 1,
"num_payment_skips_remaining": 1,
"tax_rate": 0.0825,
"is_commissionable": true,
"is_trial_end_upcoming_sent": true,
"unpaid_at": "2026-01-01T00:00:00.000Z",
"canceled_at": "2026-01-01T00:00:00.000Z",
"order_id": 1,
"tax_type": "text",
"replace_price_id": 1,
"published_checkout_item_id": "text",
"event_ready_at": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"payment_ids": [
1
],
"retry_schedule": [
"text"
],
"current_payment_status": "text",
"detail": {
"ANY_ADDITIONAL_PROPERTY": null
},
"discounts": [
{
"id": 1,
"subscription_id": 1,
"promo_id": 1,
"stripe_coupon_id": "text",
"discount_type": "amount",
"discount_offset": 1,
"duration_in_months": 1,
"use_taxes": true,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"deactivated_at": "2026-01-01T00:00:00.000Z",
"promo_code": "text"
}
],
"usage": {
"ANY_ADDITIONAL_PROPERTY": null
},
"payments": [
{
"ANY_ADDITIONAL_PROPERTY": null
}
],
"custom_fields": [],
"customer": {
"ANY_ADDITIONAL_PROPERTY": null
},
"order": {
"ANY_ADDITIONAL_PROPERTY": null
},
"price": {
"ANY_ADDITIONAL_PROPERTY": null
},
"card": {
"ANY_ADDITIONAL_PROPERTY": null
},
"gateway": {
"ANY_ADDITIONAL_PROPERTY": null
}
}Suggested first payment for swapping this subscription onto a different price, based on the unused remainder of the current billing period. Read-only.
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.
Subscription ID
New Price ID
Successful response
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/subscriptions/{id}/price/{price_id}/proration HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Swap a subscription to a different price/plan. Optionally charge or refund the balance difference, or set the new plan's first payment directly.
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.
Subscription ID
New Price ID
Whether to bill immediately or at next cycle
Future start date for the new subscription
charge and refund are one-time adjustments made alongside the swap, on top of whatever the new plan bills. prorate instead REPLACES the new plan's first payment with balance_impact_amount, leaving the next payment a full cycle away; it requires is_changed_immediately and is not available with subscription_start_at. Use GET /v2/subscriptions/{id}/price/{price_id}/proration for a suggested amount.
Amount in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500). For charge and refund this is the adjustment and must be positive. For prorate it is the new plan's first payment: 0 is allowed (collect nothing now) and it may not exceed what the new plan's first payment would otherwise have been.
Pull forward existing discount to new subscription
Recalculate taxes based on current addresses
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/subscriptions/{id}/price/{price_id} HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 183
{
"is_changed_immediately": true,
"subscription_start_at": "text",
"balance_impact_type": "charge",
"balance_impact_amount": 1,
"with_discount": true,
"do_recalculate_taxes": true,
"notes": "text"
}No content
Add a note to a subscription, saved as an event.
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.
Subscription ID
Notes to add
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/subscriptions/{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
Cancel a subscription. Can cancel immediately or at the end of the current billing period.
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.
Subscription ID
Cancel immediately (true) or at end of billing period (false)
Skip triggering integration cancellation actions
Internal notes for the cancellation
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/subscriptions/{id}/cancel HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 79
{
"is_canceled_immediately": true,
"skip_integration_actions": true,
"notes": "text"
}No content
Reverse a pending cancellation and reactivate the subscription.
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.
Subscription 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/subscriptions/{id}/uncancel 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 method and assign it to the subscription.
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.
Subscription ID
Payment gateway token (e.g. Stripe payment method, PayPal token)
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/subscriptions/{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 subscription 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.
Subscription 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/subscriptions/{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 subscription. Must be in the future. Refused for canceled, swapped or pending subscriptions (resume it first), and for a Stripe-gateway subscription with no Stripe subscription behind it. For a Stripe subscription the date must also be within 730 days (Stripe's trial_end ceiling). A past_due or unpaid subscription is reactivated by the new date; any other status is left as it is.
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.
Subscription ID
New 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/subscriptions/{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
Resume a canceled or unpaid subscription by creating a new subscription at the same price.
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.
Subscription ID
Future start date
Pull forward existing discount
Recalculate taxes
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/subscriptions/{id}/hardresume HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 96
{
"subscription_start_at": "text",
"with_discount": true,
"do_recalculate_taxes": true,
"notes": "text"
}No content
Charge the subscription immediately and extend the billing period. Refused, before anything is charged, when the resulting next payment date would be more than 730 days out — Stripe will not accept a trial_end that far ahead, so a subscription renewed a full cycle early (an annual plan across a leap day, or any two-year plan) has to wait until closer to its current billing date.
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.
Subscription ID
Recalculate taxes
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/subscriptions/{id}/earlyrenewal HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 44
{
"do_recalculate_taxes": true,
"notes": "text"
}No content
Process a manual one-time payment on a subscription.
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.
Subscription ID
Payment amount in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500).
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/subscriptions/{id}/payment HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 27
{
"amount": 1,
"notes": "text"
}No content
Apply a promo code discount to a subscription. Replaces any existing discount.
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.
Subscription ID
ID of the promo code to apply
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/subscriptions/{id}/discount HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"promo_id": 1,
"notes": "text"
}No content
Remove the active discount from a subscription.
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.
Subscription 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
DELETE /v2/subscriptions/{id}/discount HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"notes": "text"
}No content
Last updated