GetbeelDocs
Riferimento APIReceived invoices

List invoice categories

The team's categories for received invoices (expense categories), in the app's order. The slug is what received invoices carry in category. Both key modes.

GET
/categories

The team's categories for received invoices (expense categories), in the app's order. The slug is what received invoices carry in category. Both key modes.

Autorizzazione

apiKey
headerAuthorizationBearer <token>

API key: gb_test_… or gb_live_…

Getbeel-Company?string

Act on one of the account's client companies (its id from GET /companies) instead of the key's own account. 404 company_not_found when the key cannot act on it.

Formatuuid

Corpo della risposta

OK

application/json
  1. response
object*string
data*array<>
has_more*boolean
next_cursor*string|null
Esempio di richiesta
curl -X GET 'https://www.getbeel.com/api/v1/categories'
Esempio di risposta
{  "object": "list",  "data": [    {      "object": "category",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "slug": "software",      "label": "string",      "color": "string",      "is_default": true,      "sort_order": -9007199254740991    }  ],  "has_more": true,  "next_cursor": "string"}