---
updatedAt: 2026-06-12T14:08:37.000Z
agentTools:
  projectIndex: https://developer.crunchtime.com/llms.txt
---

# saveDailySalesForecast

Saves a daily sales forecast

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "Swagger documentation supporting mobile development of Crunchtime.",
    "version": "2.99",
    "title": "Inventory & Labor",
    "termsOfService": "http://springfox.io",
    "contact": {
      "name": "Crunchtime Development Team",
      "url": "http://www.crunchtime.com",
      "email": "apiquestions@crunchtime.com"
    },
    "license": {
      "name": "Apache License Version 2.0",
      "url": "https://github.com/springfox/springfox/blob/master/LICENSE"
    }
  },
  "tags": [
    {
      "name": "Sales Forecast Service",
      "description": "The Sales Forecasts Service can be used to ensure that Sales Forecasting data aligns between Crunchtime and other systems. You can use the service to get Forecast data that has been systematically calculated based on a Location's Suggested Order configuration or post a Sales Forecast, overriding the systemcalculated value."
    }
  ],
  "paths": {
    "/salesforecast/v1/daily/saveSalesForecast": {
      "post": {
        "tags": [
          "Sales Forecast Service"
        ],
        "summary": "saveDailySalesForecast",
        "description": "Saves a daily sales forecast",
        "operationId": "saveDailySalesForecastUsingPOST",
        "parameters": [
          {
            "name": "authenticationtoken",
            "in": "header",
            "description": "Secure token for API authentication.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "password",
            "in": "header",
            "description": "Password for the Crunchtime Application User.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sitename",
            "in": "header",
            "description": "Crunchtime site identifier. (test or production)",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userid",
            "in": "header",
            "description": "User ID for the Crunchtime Application User.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-B3-TraceId",
            "in": "header",
            "description": "Optional trace identifier for troubleshooting.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SalesForecastDayDetailsList"
              }
            }
          },
          "description": "salesForecastDetails",
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "*/*": {
                "schema": {
                  "type": "object"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Validation Error",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SalesForecastError"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SalesForecastError"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authorization",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "sales forecast not found",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected Error",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "System under maintenance",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "504": {
            "description": "Timeout",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "externalDocs": {
    "description": "Crunchtime Developer Hub",
    "url": "https://developer.crunchtime.com/"
  },
  "servers": [
    {
      "url": "//webservices-test.net-chef.com"
    }
  ],
  "components": {
    "schemas": {
      "SalesForecastDayDetails": {
        "type": "object",
        "required": [
          "locationCode"
        ],
        "properties": {
          "forecasts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesForecastDayDto"
            }
          },
          "locationCode": {
            "type": "string",
            "example": 120012,
            "description": "\"locationCode\" from salesforecast"
          }
        },
        "title": "SalesForecastDayDetails",
        "description": "Contains forecasts for multiple periods for a single location"
      },
      "SalesForecastDayDetailsList": {
        "type": "object",
        "properties": {
          "locationsForecast": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesForecastDayDetails"
            }
          }
        },
        "title": "SalesForecastDayDetailsList",
        "description": "List of forecasts grouped by locations"
      },
      "SalesForecastDayDto": {
        "type": "object",
        "required": [
          "forecastDate"
        ],
        "properties": {
          "checks": {
            "type": "number",
            "example": 14,
            "description": "\"checks\" from salesforecast"
          },
          "forecastDate": {
            "type": "string",
            "example": "09/02/2024",
            "description": "\"forecastDate\" from salesforecast"
          },
          "guests": {
            "type": "number",
            "example": 13,
            "description": "\"guests\" from salesforecast"
          },
          "sales": {
            "type": "number",
            "example": 12,
            "description": "\"sales\" from salesforecast"
          }
        },
        "title": "SalesForecastDayDto",
        "description": "Representation of single day forecast for sales, guests and checks"
      },
      "SalesForecastError": {
        "type": "object",
        "required": [
          "errorMessage"
        ],
        "properties": {
          "errorMessage": {
            "type": "string",
            "example": "Revenue Center with Code '1sss' does not exist in the database.",
            "description": "\"errorMessage\""
          },
          "locationCode": {
            "type": "string",
            "example": 120012,
            "description": "\"locationCode\" from salesforecast"
          }
        },
        "title": "SalesForecastError",
        "description": "Sales Forecast errors"
      }
    }
  }
}
```