---
title: "savePbiV2"
method: POST
path: "/pbi/v2/savePbi"
tags: ["Pbi Service"]
---

# savePbiV2

`POST /pbi/v2/savePbi`

Create a new <<glossary:Pbi>>. 
 Update one or more <<glossary:Pbi>>s.

## Headers

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

## Request body

- PbiDetailsList — PbiDetailsList description
  - `locationCode` string, required — The Code that identifies the Location in Crunchtime.
  - `pbiDetails` PbiDetails[]
    - `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` PbiHeaderDto — PbiHeaderDto 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.

## Response `200`

Success

- object

## Other responses

- `400` — Validation Error
- `401` — Authorization
- `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)
