List your subscriptions
Newest first, paginated, optionally narrowed to one status or one point of sale. An organization credential lists every account in the organization that has subscriptions enabled. Each row carries its latest_charge.
query Parameters
statusOnly this status
point_of_sale_idOnly this point of sale
pagePage number, from 1
page_sizeRows per page, up to 100
List your subscriptions › Responses
OK
statusResponse status
Create a subscription for a payer to accept
Returns the subscription id and the link for the payer: the hosted checkout URL for wallet_mandate, the first invoice for email_invoice. The subscription belongs to the point of sale's account; with an organization credential, that account must be in the organization and have subscriptions enabled.
Create a subscription for a payer to accept › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = object · requires: amount, anchor_day, asset +3 more |
Create a subscription for a payer to accept › Responses
Created
statusResponse status
List the accounts you can run subscriptions for
The accounts this credential reaches that have subscriptions enabled. A credential that reaches none is refused with 403, like every route on this surface.
List the accounts you can run subscriptions for › Responses
OK
statusResponse status
Read one of your subscriptions
Status, the terms being billed, the current period and the next charge date.
path Parameters
idSubscription ID
Read one of your subscriptions › Responses
OK
statusResponse status
Cancel one of your subscriptions
Stops all future charges with reason merchant_cancelled, and closes an invoice still awaiting payment. Allowed while paused. On an email_invoice subscription the payer is emailed that the merchant cancelled it. Cancelling an already cancelled subscription answers 409.
path Parameters
idSubscription ID
Cancel one of your subscriptions › Responses
OK
statusResponse status
List a subscription's charges
Every attempt to collect each period, newest period first. An email invoice still waiting for payment carries its payment_link, and payment_link_expired when payments could be asked: true means the link no longer opens although the invoice can still be paid, which a resend fixes. resent_at is when the merchant last resent it.
path Parameters
idSubscription ID
List a subscription's charges › Responses
OK
statusResponse status
Email the open invoice to the payer again
For an email_invoice subscription with an invoice still waiting for payment. While its payment link still opens, the same invoice and link are sent again. If the link lapsed (payment_link_expired) but the invoice is still within its due date, a new payment link is issued for the same invoice and sent; the returned charge is then a new one with a new id and payment_link. At most once every ten minutes per subscription: sooner answers 429 with a Retry-After header and details "retry_after=
path Parameters
idSubscription ID
Email the open invoice to the payer again › Responses
OK
statusResponse status
Pause one of your subscriptions
Stops invoicing an active email_invoice subscription until you resume it. No new invoices and no reminders are sent while paused. An invoice already open stays payable until its due date and settles normally if paid; if it runs out unpaid, it is closed and the subscription stays paused rather than being cancelled. The payer is emailed and the merchant receives subscription_paused. Answers 409 unless the subscription is active and collected by email_invoice.
path Parameters
idSubscription ID
Pause one of your subscriptions › Responses
OK
statusResponse status
Resume one of your paused subscriptions
Restarts billing on the first date of the subscription's own cadence that is still ahead. Periods that fell due while paused are never invoiced and leave no charge rows. If an invoice from before the pause is still open, billing resumes on its period and the next new invoice follows it. The payer is emailed with the date of the next invoice and the merchant receives subscription_resumed. Answers 409 unless the subscription is paused.
path Parameters
idSubscription ID
Resume one of your paused subscriptions › Responses
OK
statusResponse status
Change the terms of one of your subscriptions
Schedules new terms for an active or paused email_invoice subscription, from the first invoice the payer has not been sent that falls due at least 15 days later (ADR 0002): a closer invoice keeps the current terms, an invoice already open keeps its amount and asset, and the first invoice of the change keeps the date it was already due on, with a new interval or anchor counted from there. Send only the fields that change; the rest keep their current value. A new change replaces one already scheduled, and sending the terms already in force withdraws it. The payer is emailed and the merchant receives subscription_updated. Answers 409 for a wallet_mandate (approved for its exact terms), a pending subscription (cancel it and create a new one) or a cancelled one.
path Parameters
idSubscription ID
Change the terms of one of your subscriptions › Request Body
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = object |
Change the terms of one of your subscriptions › Responses
OK
statusResponse status