For the complete documentation index, see llms.txt. This page is also available as Markdown.

Subscriptions

Subscription management

List subscriptions

get

Retrieve a paginated list of subscriptions

Authorizations
AuthorizationstringRequired

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.

Query parameters
pageintegerOptional

Page number

Example: 1
per_pageinteger · max: 100Optional

Items per page (max 100)

Example: 25
includestringOptional

Comma-separated list of expansions: payments, usage, custom_fields, customer, order

Example: payments,usage
filter[id]stringOptional

Filter by id (exact match).

filter[id.gte]stringOptional

Filter by id (greater than or equal)

filter[id.lte]stringOptional

Filter by id (less than or equal)

filter[id.in]stringOptional

Filter by id (comma-separated list). Fetches many records in one request instead of one request per id.

Example: 101,102,103
filter[id.nin]stringOptional

Filter by id (excluding a comma-separated list)

filter[status]stringOptional

Filter by status (exact match). Valid values: pending, trialing, active, past_due, canceling, canceled, unpaid, swapped.

filter[status.in]stringOptional

Filter by status (comma-separated list). Fetches many records in one request instead of one request per id.

Example: pending,trialing
filter[status.nin]stringOptional

Filter by status (excluding a comma-separated list)

filter[order_id]stringOptional

Filter by order_id (exact match).

filter[order_id.gte]stringOptional

Filter by order_id (greater than or equal)

filter[order_id.lte]stringOptional

Filter by order_id (less than or equal)

filter[order_id.in]stringOptional

Filter by order_id (comma-separated list). Fetches many records in one request instead of one request per id.

Example: 101,102,103
filter[order_id.nin]stringOptional

Filter by order_id (excluding a comma-separated list)

filter[customer_id]stringOptional

Filter by customer_id (exact match).

filter[customer_id.gte]stringOptional

Filter by customer_id (greater than or equal)

filter[customer_id.lte]stringOptional

Filter by customer_id (less than or equal)

filter[customer_id.in]stringOptional

Filter by customer_id (comma-separated list). Fetches many records in one request instead of one request per id.

Example: 101,102,103
filter[customer_id.nin]stringOptional

Filter by customer_id (excluding a comma-separated list)

filter[email]stringOptional

Filter by email (exact match).

filter[email.contains]stringOptional

Filter by email (contains)

filter[product_id]stringOptional

Filter by product_id (exact match).

filter[product_id.gte]stringOptional

Filter by product_id (greater than or equal)

filter[product_id.lte]stringOptional

Filter by product_id (less than or equal)

filter[product_id.in]stringOptional

Filter by product_id (comma-separated list). Fetches many records in one request instead of one request per id.

Example: 101,102,103
filter[product_id.nin]stringOptional

Filter by product_id (excluding a comma-separated list)

filter[product_option_price_id]stringOptional

Filter by product_option_price_id (exact match).

filter[product_option_price_id.gte]stringOptional

Filter by product_option_price_id (greater than or equal)

filter[product_option_price_id.lte]stringOptional

Filter by product_option_price_id (less than or equal)

filter[product_option_price_id.in]stringOptional

Filter by product_option_price_id (comma-separated list). Fetches many records in one request instead of one request per id.

Example: 101,102,103
filter[product_option_price_id.nin]stringOptional

Filter by product_option_price_id (excluding a comma-separated list)

filter[created_at]stringOptional

Filter by created_at (exact match).

filter[created_at.gte]stringOptional

Filter by created_at (greater than or equal)

filter[created_at.lte]stringOptional

Filter by created_at (less than or equal)

filter[updated_at]stringOptional

Filter by updated_at (exact match).

filter[updated_at.gte]stringOptional

Filter by updated_at (greater than or equal)

filter[updated_at.lte]stringOptional

Filter by updated_at (less than or equal)

filter[next_payment_at]stringOptional

Filter by next_payment_at (exact match).

filter[next_payment_at.gte]stringOptional

Filter by next_payment_at (greater than or equal)

filter[next_payment_at.lte]stringOptional

Filter by next_payment_at (less than or equal)

sortstringOptional

Sort field (prefix with - for descending)

Example: -created_at
Responses
200

Successful response with paginated list

application/json
get/v2/subscriptions
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
  }
}

Get subscriptions

get

Retrieve a single subscriptions by ID

Authorizations
AuthorizationstringRequired

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.

Path parameters
idintegerRequired

subscriptions ID

Example: 12345
Query parameters
includestringOptional

Comma-separated list of expansions: payments, usage, custom_fields, customer, order

Example: payments,usage
Responses
200

Successful response

application/json
idintegerRequired

Subscription ID

order_item_idintegerRequired

Associated order item ID

product_option_price_idintegerRequired

Product option price ID

card_idintegerRequired

Payment card ID

swapped_from_idinteger · nullableOptional

Previous subscription ID if swapped

published_block_item_idinteger · nullableOptional

Published block item ID

replace_published_block_item_idinteger · nullableOptional

Replacement block item ID

namestring · max: 255 · nullableOptional

Subscription name/description

block_typestring · max: 255 · nullableOptional

Block type identifier

stripe_subscription_idstring · max: 255 · nullableOptional

Stripe subscription ID

stripe_subscription_item_idstring · max: 255 · nullableOptional

Stripe subscription item ID

statusstring · enumOptional

Subscription status

Example: activePossible values:
next_payment_atstring · date-time · nullableOptional

Next scheduled payment date

trial_daysintegerOptional

Trial period duration in days

num_payment_skips_remainingintegerOptional

Number of payment skips remaining

tax_ratenumber · nullableOptional

Tax rate as decimal

Example: 0.0825
is_commissionableboolean · nullableOptional

Whether subscription generates affiliate commission

is_trial_end_upcoming_sentboolean · nullableOptional

Whether trial end notification was sent

unpaid_atstring · date-time · nullableOptional

When subscription became unpaid

canceled_atstring · date-time · nullableOptional

When subscription was canceled

order_idinteger · nullableOptional

Associated order ID

tax_typestring · nullableOptional

Type of tax (vat, tax, gst)

replace_price_idinteger · nullableOptional

Replacement price ID

published_checkout_item_idstring · max: 255 · nullableOptional

Published checkout item ID

event_ready_atstring · date-time · nullableOptional

When subscription event was ready

created_atstring · date-time · nullableOptional

Creation timestamp

updated_atstring · date-time · nullableOptional

Last update timestamp

payment_idsinteger[]Optional

Array of payment IDs (excluding initial payment)

retry_schedulestring[]Optional

Pending retry schedule for past_due subscriptions (array of date strings)

current_payment_statusstring · nullableOptional

Status of most recent payment

get/v2/subscriptions/{id}
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
  }
}

Preview proration for a plan change

get

Suggested first payment for swapping this subscription onto a different price, based on the unused remainder of the current billing period. Read-only.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

price_idstringRequired

New Price ID

Query parameters
with_discountstringOptional
do_recalculate_taxesstringOptional
Responses
200

Successful response

application/json
any · nullableOptional
get/v2/subscriptions/{id}/price/{price_id}/proration
GET /v2/subscriptions/{id}/price/{price_id}/proration HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Change subscription price

put

Swap a subscription to a different price/plan. Optionally charge or refund the balance difference, or set the new plan's first payment directly.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

price_idstringRequired

New Price ID

Body
is_changed_immediatelybooleanOptional

Whether to bill immediately or at next cycle

subscription_start_atstringOptional

Future start date for the new subscription

balance_impact_typestring · enumOptional

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.

Possible values:
balance_impact_amountintegerOptional

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.

with_discountbooleanOptional

Pull forward existing discount to new subscription

do_recalculate_taxesbooleanOptional

Recalculate taxes based on current addresses

notesstringOptional
Responses
200

Successful response

application/json
any · nullableOptional
put/v2/subscriptions/{id}/price/{price_id}
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 notes to subscription

post

Add a note to a subscription, saved as an event.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

Body
notesstringRequired

Notes to add

Responses
200

Successful response

application/json
any · nullableOptional
post/v2/subscriptions/{id}/notes
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

put

Cancel a subscription. Can cancel immediately or at the end of the current billing period.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

Body
is_canceled_immediatelybooleanOptional

Cancel immediately (true) or at end of billing period (false)

skip_integration_actionsbooleanOptional

Skip triggering integration cancellation actions

notesstringOptional

Internal notes for the cancellation

Responses
200

Successful response

application/json
any · nullableOptional
put/v2/subscriptions/{id}/cancel
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

Uncancel a subscription

put

Reverse a pending cancellation and reactivate the subscription.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

Body
notesstringOptional
Responses
200

Successful response

application/json
any · nullableOptional
put/v2/subscriptions/{id}/uncancel
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

Add a new card to subscription

post

Create a new payment method and assign it to the subscription.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

Body
tokenany · nullableOptional

Payment gateway token (e.g. Stripe payment method, PayPal token)

Responses
200

Successful response

application/json
any · nullableOptional
post/v2/subscriptions/{id}/card
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 subscription card

put

Update a subscription to use an existing card on file.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

Body
card_idnumberRequired

ID of the existing card to use

Responses
200

Successful response

application/json
any · nullableOptional
put/v2/subscriptions/{id}/card
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 next billing date

put

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.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

Body
next_payment_atstringRequired

New next billing date (ISO 8601)

notesstringOptional
Responses
200

Successful response

application/json
any · nullableOptional
put/v2/subscriptions/{id}/nextbillingdate
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

Hard resume a subscription

put

Resume a canceled or unpaid subscription by creating a new subscription at the same price.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

Body
subscription_start_atstringOptional

Future start date

with_discountbooleanOptional

Pull forward existing discount

do_recalculate_taxesbooleanOptional

Recalculate taxes

notesstringOptional
Responses
200

Successful response

application/json
any · nullableOptional
put/v2/subscriptions/{id}/hardresume
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

Process early renewal

put

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.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

Body
do_recalculate_taxesbooleanOptional

Recalculate taxes

notesstringOptional
Responses
200

Successful response

application/json
any · nullableOptional
put/v2/subscriptions/{id}/earlyrenewal
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

Make a manual payment

post

Process a manual one-time payment on a subscription.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

Body
amountnumberRequired

Payment amount in the smallest currency unit ($10.00 USD = 1000; ¥1500 JPY = 1500).

notesstringOptional
Responses
200

Successful response

application/json
any · nullableOptional
post/v2/subscriptions/{id}/payment
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 discount

put

Apply a promo code discount to a subscription. Replaces any existing discount.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

Body
promo_idnumberRequired

ID of the promo code to apply

notesstringOptional
Responses
200

Successful response

application/json
any · nullableOptional
put/v2/subscriptions/{id}/discount
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 discount

delete

Remove the active discount from a subscription.

Authorizations
AuthorizationstringRequired

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.

Path parameters
idstringRequired

Subscription ID

Body
notesstringOptional
Responses
200

Successful response

application/json
any · nullableOptional
delete/v2/subscriptions/{id}/discount
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