# Lists line items

<span class="api-endpoint">GET {{<a href="#urlbases">baseURL</a>}}/pay-int-api/line-items</span>

Endpoint: GET /pay-int-api/line-items
Version: V1
Security: Bearer

## Query parameters:

  - `page` (integer)
    Specifies the page number of the returned search results.

A page is considered each set of the `pageSize` value.

The maximum page value is the `pageSize` divided by the `total` count rounded up.
The count is zero-based.
For example, if `pageSize` is 50 and the `total` is 130, there are three pages.
The maximum `page` value is 2.

Values above the maximum page value will complete successfully but not return any items.

Example: 0

  - `pageSize` (integer)
    Specifies the number of items for each page of the returned search results.

A page is considered each set of the `pageSize` value.

The maximum page value is the `pageSize` divided by the `total` count rounded up.
The count is zero-based.
For example, if `pageSize` is 50 and the `total` is 130, there are three pages.
The maximum `page` value is 2.

Example: 50

  - `orderBy` (string)
    Specifies the field the results get ordered by.

The sort order is specified by the `asc` value.

Example: contactName

  - `asc` (boolean)
    Specifies the sort order is ascending.

The sort field is specified by the `orderBy` value.

If `true`, the sort order is ascending.<br>
If `false`, the sort order is descending.

Example: true

  - `search` (string)
    Specifies the search string.

This performs a case insensitive, matching, or partially matching search.

Fields does not have to be specified.
If the results are to be sorted, the field `orderby` to specify the sort field.

  - `categoryId` (string)

  - `noCategory` (boolean)

## Header parameters:

  - `x-api-version` (string)

## Response 200 fields (application/json):

  - `items` (array)

  - `items.id` (string)
    Indicates the identifier of the item.

Example: d0f6d7e8-9f0a-4b1c-2d3e-4f5a6b7c8d14
    Example: d0f6d7e8-9f0a-4b1c-2d3e-4f5a6b7c8d14

  - `items.unitType` (string)
    Indicates the unit of measure associated with the item.
This is a string identifier represents the unit of measure for the item.
Each supplier provides their own lookup value.
That value maps to a predefined unit type in their system.
See the field `unitTypeId` for a numeric equivalent.
Example: Each
    Example: Each

  - `items.unitTypeId` (integer)
    Indicates the identifier of the unit type.
This is a numeric identifier represents the unit of measure for the item.
Each supplier provides their own lookup value.
That value maps to a predefined unit type in their system.
See the field `unitType` for a string equivalent.
Example: 1
    Example: 1

  - `items.productName` (string)
    Indicates the name of the item.

Example: RollerMouse Wireless Mouse
    Example: RollerMouse Wireless Mouse

  - `items.description` (string)
    Indicates a description of the item.

Example: RollerMouse Design Collection, Limited Edition Wireless Mouse
    Example: RollerMouse Design Collection, Limited Edition Wireless Mouse

  - `items.sku` (string)
    Indicates the product identifier item.

Example: 24474771
    Example: 24474771

  - `items.unitPrice` (number)
    Indicates the unit price of the item.

Example: 18.99
    Example: 18.99

  - `items.categoryId` (string)
    Indicates the identifier of the item category.

Example: a2d1c4b5-6e7f-4890-9abc-1d2e3f4a5b67
    Example: a2d1c4b5-6e7f-4890-9abc-1d2e3f4a5b67

  - `items.categoryName` (string)
    Indicates the category associated with the item.

Example: Computer Accessories
    Example: Computer Accessories

  - `items.categoryDefaultUnitTypeId` (integer)
    Indicates the default unit type identifier associated with the category.

Example: 1
    Example: 1

  - `total` (integer)
    Indicates the total number of line items found.

Example: 26
    Example: 26

