Gets the billing account that owns a given database.
Request
GET https://www.activityinfo.org/resources/databases/{databaseId}/billingAccount
Successful response
application/json
| object | |||
| id | integer | The id of the billing account. | required |
| code | string | The subscription's 3-digit code in the format "SUB000" used for support and billing. | 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 (total) user limit associated with this billing account. | required |
| fullUserLimit | integer | The full 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:
|
required |
| capped | boolean | True if the user limits are enforced in real-time. If false, the account has the flexibility to temporarily exceed their limits and upgrade later if needed. | 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 |
| parentBillingAccountId | integer | For sub-accounts, the ID of the parent billing account. | optional |
| accountCredits | integer | required | |
| submissionCount | integer | The number of collection link submissions processed. | required |
| submissionLimit | integer | The limit of the number of collection link submissions included in this billing account, or zero if there is no limit. | required |
Error responses
| Status Code | Error Code | Description |
|---|---|---|
| 401 | AUTHENTICATION_ |
The request must be authenticated |
| 403 | FORBIDDEN | Permission denied |
| 404 | NOT_ |
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/databases/ck8oykh8m5/billingAccount