Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Purchase Categories

German: “Ausgaben – Kategorien”


The purchase category representation is:

  "id": 123,
  "name": "Travel expenses",
  "credit_account": "6640",
  "active": true,
  "created_at": "2018-10-17T09:33:46Z",
  "updated_at": "2018-10-17T09:33:46Z"

GET /purchases/categories

Retrieve all categories:

curl -X GET \
  'https://{domain}' \
  -H 'Authorization: Token token=YOUR_API_KEY'

This returns an array with complete category information (see attributes).

The following parameters can be supplied:

GET /purchases/categories/{id}

Retrieve a single category:

curl -X GET \
  'https://{domain}{id}' \
  -H 'Authorization: Token token=YOUR_API_KEY'

The response is a single category representation.