API reference

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

Path and query parameters
FieldTypeWhat it is
orgId (query)integerA team's details instead of the account's: reading needs billing.view, changing needs billing.fund.

Request body

application/json, required

Request body fields
FieldTypeWhat it is
namerequiredstring
addressstring
taxIdstring

Example

{
  "name": "string",
  "address": "string",
  "taxId": "string"
}

Answer 200

As stored.

Fields of the 200 answer
FieldTypeWhat it is
detailsobject
details.namerequiredstringAt most 200 characters.
details.addressrequiredstring or nullAt most 600 characters, lines kept.
details.taxIdrequiredstring or nullAt 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.

Antimatter