List automatic payments
Overview
Lists automatic payment subscriptions across the account's teams. Subscription details are refreshed from the payment provider when requested. If the provider is unavailable, the last known details are returned.
Amounts are decimal strings excluding tax. Tax is calculated using the customer's location at the time of payment. is_ending identifies a subscription that has been stopped but has not reached its end date. Display it separately from active and cancelled subscriptions. sells_subscriptions indicates whether automatic payments are available, even when the list is empty.
Permissions
Requires the account permission billing.read (View billing).
Authorization
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Send it as Bearer <token>.
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The value of sells_subscriptions.
Subscriptions, active ones first, with the service covered and the next payment date.
Show child attributesHide child attributes
The uuid UUID.
The value of uuid_short.
The payment provider, such as card, paypal, or stripe.
The payment provider's current status.
Whether the resource is healthy.
Whether the resource is cancelled.
Whether the resource is ending.
What it was bought as. The fallback name for a row whose services have gone away.
How often the service renews and is billed.
Excludes tax.
The three-letter currency code used for monetary amounts.
The next charge date, or null if no further payments are scheduled. Ending subscriptions have no next charge date. If the payment provider has not reported a date, this is the next due date of the earliest service covered.
When the agreed cancellation actually takes effect.
The date and time for cancelled at, in UTC.
The date and time for last paid at, in UTC.
Whether the subscription can still be cancelled through its payment provider.
The value of services.
Show child attributesHide child attributes
The service id ID.
The name shown to customers.
The fully qualified hostname.
The value of status.
The value of next_due_date.
The server id ID.
The machine itself, where the account still holds one for this service. Null for anything else a subscription pays for, and for a server that has since been handed back.
Show child attributesHide child attributes
The id ID.
The name shown to customers.
The fully qualified hostname.
The city the server stands in, e.g. "Nuremberg, DE".
The value of windows.
The value of template_name.
The value of template_icon_url.
Whether the resource is known.
For external payments, use the service autopay cancellation endpoint.
The email address of the saved PayPal account it is charged to, when it is one.
Errors
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 403
- Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- 429
- Too many requests. The
Retry-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown