# List Location payment items

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](#tag/Financial-Transactions-and-Accounts/operation/create_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.

Endpoint: GET /references/expenses/{location_id}
Version: 1.0.0
Security: BearerPartnerUser

## Security:

  - `BearerPartnerUser` (unknown)
    http bearer Bearer {PartnerToken}, User {UserToken}

## Path parameters:

  - `location_id` (integer, required)
    Location ID

## Header parameters:

  - `Accept` (string, required)

  - `Content-Type` (string, required)

  - `Authorization` (string, required)
    Bearer {partner_token}, User {user_token}

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `success` (boolean)

  - `data` (array)

  - `data.id` (integer)
    Payment item ID

  - `data.title` (string)
    Payment item name

  - `data.type` (integer)
    Payment item type, the report section the item belongs to:
- `1` - Prime cost expenses
- `2` - Commercial expenses
- `3` - Personnel expenses
- `4` - Administrative expenses
- `5` - Taxes and fees
- `6` - Miscellaneous expenses
- `7` - Revenue (income item)
    Enum: "1", "2", "3", "4", "5", "6", "7"

  - `meta` (object)

  - `meta.count` (integer)
    Number of payment items returned

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Authentication needed.

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Access denied.

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object | array)
    Additional response data (empty object or empty array)
    Example: {}

