---
title: "getAllPbisV2"
method: GET
path: "/pbi/v2/getAllPbis"
tags: ["Pbi Service"]
---

# getAllPbisV2

`GET /pbi/v2/getAllPbis`

Retrieve a list of all <<glossary:PBI>>s.

## Query parameters

- `invoiceDate` string, required
- `invoiceNumber` string
- `locationCode` string, required
- `includeNull` boolean

## Headers

- `authenticationtoken` string, required
- `password` string, required
- `sitename` string, required
- `userid` string, required
- `X-B3-TraceId` string

## Response `200`

Success

- PbiDetailsGet[]
  - `pbiDetailDetails` PbiDetailDto[]
    - `category` string, required — Must match an existing Category in Enterprise Manager.
    - `detailAmount` number, required — Total value of this item row.
    - `detailMemo` string — Description of the product delivered or service performed.
    - `glNumber` string — Must match an existing GL Number in Enterprise Manager.
    - `microcategory` string, required — Must match an existing Microcategory in Enterprise Manager. Required if “Link GL to” Preference is “Microcategory”
    - `subcategory` string, required — Must match an existing Subcategory in Enterprise Manager. Required if “Link GL to” Preference is “Subcategory” or “Microcategory”
  - `pbiHeaderDetails` PbiHeaderDtoGet — PbiHeaderDtoGet description
    - `checkNumber` string — Check Number used to pay the invoice.
    - `deliveryDate` string, required — Date the product was delivered or service performed.
    - `invoiceDate` string, required — Date the vendor issued the invoice.
    - `invoiceNumber` string, required — Invoice Number from the vendor's invoice.
    - `invoiceTotal` number, required — Total value for the entire invoice.
    - `locationCode` string — Code or Name for the Location. Must match an active Location in Enterprise Manager.
    - `vendorCode` string, required — Must match a Location Export Code, Export Code, or Code for an active Vendor in Enterprise Manager.
    - `transactionStatus` integer — Indicates the transaction status: 7 for Awaiting Reconcile, 3 for Reconciled, 4 for Cancelled, and 12 for Awaiting Allocation.
    - `postInventoryScheduledDate` string — Post Date for Purchase by Invoice transaction
    - `reconcileDate` string — Date the invoice was reconciled

## Other responses

- `400` — Validation Error
- `401` — Authorization
- `404` — pbi not found
- `429` — Too Many Requests
- `500` — Unexpected Error
- `503` — System under maintenance
- `504` — Timeout

---

[API](https://skmtc.net/crunchtime/apis/inventory-labor.md) · [All operations](https://skmtc.net/crunchtime/apis/inventory-labor/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crunchtime/inventory-labor/revisions/0af8e380ff2c/schema)
