API reference · Credits
Set the details invoices are made out to
PUT/api/account/billing-detailsSigned in session
An invoice already issued keeps the details it was issued with. A deposit receipt is printed as an invoice at /billing/invoice/{number}, which takes the owner's next number in sequence the first time it is opened. Same origin only.
Parameters
| Field | Type | What it is |
|---|---|---|
| orgId (query) | integer | A team's details instead of the account's: reading needs billing.view, changing needs billing.fund. |
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| namerequired | string | |
| address | string | |
| taxId | string |
Example
{
"name": "string",
"address": "string",
"taxId": "string"
}Answer 200
As stored.
| Field | Type | What it is |
|---|---|---|
| details | object | |
| details. | string | At most 200 characters. |
| details. | string or null | At most 600 characters, lines kept. |
| details. | string or null | At most 64 characters. |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 404OpenAI shaped error.
- 429OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.