List payment methods
Cards on file, as the payment provider describes them. auto_top_up_ready is the field to check before offering automatic top-ups — a card can exist and still not be usable for them.
Adding or removing a card is not an API operation; send the customer to the billing portal session below.
Authorizations
This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.
Path Parameters
The numeric ID of the account
Response
Success
Version of this payload's shape.
The account.
Cards on file, as the payment provider describes them — brand, last four, expiry.
Which one is charged by default.
Whether there is a usable card for automatic top-ups. This is the field to check before offering the setting.
Where this answer came from and how current it is. Billing reads several systems, so every response says which one it used — treat state other than fresh as a reason to be careful with the numbers rather than a failure.