Pbi Service

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

post/pbi/v2/savePbi

Request

  • Base URL
    //webservices-test.net-chef.com (relative, and the document’s source URL is not known)
  • URL
    //webservices-test.net-chef.com/pbi/v2/savePbi
  • Auth
    none declared. Required headers: authenticationtoken, password, sitename, userid

Headers

authenticationtokenstring required

Secure token for API authentication.

passwordstring required

Password for the Crunchtime Application User.

sitenamestring required

Crunchtime site identifier. (test or production)

useridstring required

User ID for the Crunchtime Application User.

X-B3-TraceIdstring

Optional trace identifier for troubleshooting.

Request body

locationCodestring required

The Code that identifies the Location in Crunchtime.

Example request

{
  "locationCode": "000122",
  "pbiDetails": [
    {
      "pbiDetailDetails": [
        {
          "category": "NON-FOOD",
          "detailAmount": 15,
          "detailMemo": "Purchased Cleaning Supplies",
          "microcategory": "PAPER TOWELS",
          "subcategory": "PAPER GOODS"
        }
      ],
      "pbiHeaderDetails": {
        "checkNumber": "1701",
        "deliveryDate": "12/14/2025",
        "invoiceDate": "12/14/2025",
        "invoiceNumber": "74205",
        "invoiceTotal": 15,
        "locationCode": "100122",
        "vendorCode": "100700"
      }
    }
  ]
}

Response

Success

object required

Changes

    • breaking

      the /// request property format changed from no format to date

    • breaking

      the /// request property format changed from no format to date