Get billing account

Retrieves information about a billing account.

Request

GET https://www.activityinfo.org/resources/billingAccounts/{accountId}

Successful response

application/json

object
id integer The id of the billing account. required
name string The name of this billing account. required
trial boolean True if this is a trial account. required
expirationTime float The expiration time of the account, in milliseconds since 1970-01-01 required
userLimit integer The user limit associated with this billing account. required
userCount integer The current number of unique users invited to any databases owned by this billing account. This count may take a few minutes to update after a change to user permissions are made. required
databaseCount integer The current number of databases owned by this billing account. required
status string Values:
ACTIVE
The account is active and in good standing.
SUSPENDED
The account is suspended due to non-payment. Databases are unchanged, but cannot be accessed.
CLOSED
The account has been closed and all databases have been deleted.
required
planName string The name of the plan that the billing account is subscribed to. required
automaticCollection boolean True if payment for this billing account is automatically collected via credit card upon expiry. required

Error responses

Status Code Error Code Description
401 AUTHENTICATION_REQUIRED The request must be authenticated
403 FORBIDDEN Permission denied
404 NOT_FOUND The resource could not be found
410 DELETED The resource has been deleted

Example

curl -u anything:YOUR_API_TOKEN \
  https://www.activityinfo.org/resources/billingAccounts/190780004
Next item
Get billing account databases