Skip to content

List Location payment items

Request

Returns the payment items (expense categories) available in the Location: built-in items such as Product purchase or Team salaries and the Location's custom items. Use an item id as expense_id in Create a Financial Transaction. Income items (type: 7) classify incoming money; the other types classify expenses.

The Business User needs Finances access in the Location; otherwise the request returns 403. If the Business User's access is limited to selected payment items, only those items are returned; without such a limit all items are returned.

Security
BearerPartnerUser
Path
location_idintegerrequired

Location ID

Example:4564
Headers
Acceptstringrequired
Default:"application/vnd.api.v2+json"
Content-Typestringrequired
Default:"application/json"
Authorizationstringrequired

Bearer {partner_token}, User {user_token}

curl -i -X GET \
  https://developer.alteg.io/_mock/en/b2b-v1/openapi/references/expenses/4564 \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: application/json'

Responses

OK

Bodyapplication/json
successboolean
dataArray of objects(Payment item)
Example:
[ { "id": 2, "title": "Product purchase", "type": 1 } ]
metaobject
Response
{ "success": true, "data": [ { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … } ], "meta": { "count": 8 } }