Credits
Credit statement
Every credit in and out, newest first.
GET
/credits/transactionsToken permission: View balance credits:read
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | No | How many transactions to return, from 1 to 200. Default: 50. |
offset | number | No | How many to skip, for pagination. Default: 0. |
To paginate, add limit to offset on each page until a list shorter than limit comes back.
Response
| Field | What it is |
|---|---|
amount | The transaction amount. Negative is money out; positive is money in. |
balance_after | The balance right after this transaction. |
type | The transaction type (table below). |
reference_type / reference_id | What the transaction refers to (table below). |
notes | A note, when there is one. |
created_at | When it happened. |
balance | Your current balance. |
type | What it is | reference_id |
|---|---|---|
key_generation | You generated keys. | The generation_id returned by the generation. |
refund | Refund of a failed generation. | The generation's generation_id. |
purchase | Credit purchase. | The credit order number. |
manual_adjust | Adjustment made by the team. | β |
Errors
| HTTP | When |
|---|---|
401 | Missing, invalid, deleted or expired token. |
403 | The token lacks the View balance permission. |
422 | limit outside 1 to 200, or a negative offset. |
429 | Over the rate limit. |