v1

latestOpenAPI 3.0.0Apache License Version 2.02026-07-24163274903.6 KB
Daily Prep Service

getDailyPrepsByPage

Retrieves all Daily Prep transactions with the accompanying information by page number.

get/dailyprep/v1/getDailyPrepsByPage

Query parameters

locationCodestring required

The Location where the Daily Prep transaction is created.

dailyPrepDatestring

Date that the Daily Prep transaction is recorded for inventory (optional). If not provided, all transactions for the location with a prep date greater than or equal to the current date will be returned.

statusstring

Daily Prep status (Completed, Incomplete or Canceled) to retrieve (optional).

templateNamestring

Template Name selected for the Daily Prep transaction (optional). Required if using Template Location Code.

templateLocationCodestring

Template Location Code selected for the Daily Prep transaction (optional). Required if using Template Name.

prepStationstring

Prep Station Name selected for the Daily Prep transaction (optional). This value is stored in recipe details.

descriptionstring

Daily Prep description (optional). The value is case-insensitive but must otherwise match exactly.

prepLocationstring

Name of the Prep Customer selected for the Daily Prep transaction (optional).

startTimestring

Start time of the Daily Prep transaction as selected when the transaction was created (optional). Format HH:mm (24hr)

createDatestring

Date that the Daily Prep transaction was created (optional).

createUserstring

Application User who created the transaction (optional). The value is case-insensitive but must otherwise match exactly.

completeDatestring

Date that the Daily Prep transaction was finalized (optional).

completeUserstring

Application User who finalized the transaction (optional). The value is case-insensitive but must otherwise match exactly.

cancelDatestring

Date that the Daily Prep transaction was canceled (optional).

cancelUserstring

Application User who canceled the transaction (optional). The value is case-insensitive but must otherwise match exactly.

dailyPrepAppstring

Application or process that created the Daily Prep transaction (optional). Current possible values: NC (Net-Chef), KS (KitchenSync), MM (Menu Mix) and UN (Undo Menu Mix).

autoPrepFlagboolean

If true, retrieves Daily Prep transactions created by Menu Mix or Undo Menu Mix (optional).

cateringOrderFlagboolean

Filters Daily Prep transactions based on whether they include Catering Customer Orders (optional).

addProjectedConsumptionFlagboolean

Filters Daily Prep transactions based on whether they include additional Projected Consumption (optional).

includeDetailsboolean

Retrieve all details (optional).

sortBy'description' | 'status' | 'createUser' | 'dailyPrepDate' | 'templateName' | 'templateLocationCode' | 'cateringOrderFlag' | 'dailyPrepApp'

Specifies the field used to sort the Daily Preps. Default is 'dailyPrepDate' if not provided (Optional).

sortOrder'ASC' | 'DESC'

Specifies the sort direction for Daily Preps: ascending (ASC) or descending (DESC). Default is ASC if not specified (optional).

includeNullboolean

Specify true to include null data elements in output.

pageNumberinteger

Retrieve one or more records by pageNumber. Use to retrieve data in smaller chunks. If left blank, the default is 1.

pageSizeinteger

Number of items to display per page.

Headers

authenticationtokenstring required

Secure token for API authentication.

sitenamestring required

Crunchtime site identifier. (test or production)

useridstring required

User ID for the Crunchtime Application User.

passwordstring required

Password for the Crunchtime Application User.

X-B3-TraceIdstring

Optional trace identifier for troubleshooting.

Response

Success

hasNextboolean
totalPagesinteger

Example response

{
  "dailyPreps": [
    {
      "locationCode": "AB121",
      "description": "Daily Prep description",
      "status": "Incomplete",
      "createDate": "11/10/2020",
      "createUser": "testuser",
      "completeDate": "11/10/2020 07:47:05",
      "completeUser": "testuser",
      "cancelDate": "11/10/2020 14:24:51",
      "cancelUser": "testuser",
      "dailyPrepDate": "11/10/2020 13:45",
      "templateName": "Morning Prep",
      "templateLocationCode": "AB121",
      "cateringOrder": "N",
      "dailyPrepApp": "NC",
      "prepLocation": "Main Kitchen",
      "recipes": {
        "productNumber": "R-123",
        "name": "Test Recipe",
        "batchQty": 1.4,
        "batchUnit": "KG",
        "projectedConsumption": 10.53,
        "suggestedProduction": 1,
        "actualProd": 23.01,
        "actualBatchCost": 63.1,
        "storageLocation": "Walk-In Cooler",
        "prepStation": "Cold Prep",
        "components": {
          "productNumber": "C1233",
          "name": "Test Component",
          "majorIngredient": "Y",
          "quantity": 13.5,
          "invUnit": "EA",
          "storageLocation": "Walk-In Cooler",
          "unitPrice": 10.45,
          "extendedValue": 121.99
        }
      }
    }
  ]
}