Accounts
List, retrieve, create, and update accounts, the billing entities your subscriptions belong to.
Overview
Accounts are only used for billing. You cannot create new accounts yourself. Instead, you'll need to ask an administrator to do this for you, if you'd like to have separate billing for your subscriptions.
List accounts
GET /api/v1/accounts
Returns all accounts that the current authentication token has access to.
Parameters
All parameters are optional.
name
string
Will filter the results by account name, there is nothing by default
per
integer
Will limit the results to NN entries per page, defaults to 500 (also the maximum)
page
integer
Will return the results from passed page, defaults to 1
Request
Example requests with page filtering, number of accounts per page and filtering by name.
curl 'https://customers.triton.one/api/v1/accounts' -H "Authorization: secret-api-token" -H "Content-Type: application/json" -H "Accept:application/json"curl 'https://customers.triton.one/api/v1/accounts?name=Account-123' -H "Authorization: secret-api-token" -H "Content-Type: application/json" -H "Accept:application/json" curl 'https://customers.triton.one/api/v1/accounts?per=10&page=2' -H "Authorization: secret-api-token" -H "Content-Type: application/json" -H "Accept:application/json" Response
Returns a hash with the accounts key containing an array of account summaries (uuid, name, is_active, created_at, updated_at, users_count, subscriptions_count, billing_country_code, payment_method and metered_billing_balance) and the meta containing pagination data. Use Get account for the full account object.
Get account
GET /api/v1/accounts/:account-uuid
Get Account that the current authentication token has access to.
Parameters
account-uuid is the only parameter that needs to be provided.
Request
Example request containing account-uuid
Response
Returns a hash with the account key containing the full account object, with its subscriptions. Below is the sample response.
Create account
This API is available only to Triton administrators.
Update account
API tokens are read-only, so this request returns 403 Forbidden.
PUT /api/v1/accounts/:account-uuid
Update account that the current authentication token has access to.
Parameters
All parameters are optional unless marked as required.
name
string
A human-readable display name to describe the account. Only Triton administrators can change it.
billing_address1
string
billing_address2
string
billing_address3
string
billing_city
string
billing_state_or_province
string
billing_postal_code
string
billing_country_code
string
telephone_country_code
string
telephone
string
Request
Request JSON (-d command line parameter) must contain account key for account object. All parameters should be placed inside.
Response
Returns a hash with the account key containing an account object. The response data for account object is the same as for GET /api/v1/accounts/:account-uuid and GET /api/v1/accounts
Contact support by clicking the chat icon in your customer dashboard Sales questions? Contact us AI agent? Read llms.txt Follow updates: Blog · X · YouTube · Telegram · GitHub
Last updated