v1

latestOpenAPI 3.0.0Apache License Version 2.02026-07-24163274903.6 KB
Projected Consumption Service

getProjectedConsumptionByPage

Retrieve a projected consumption entry's details by page number.

get/projectedconsumption/v1/getProjectedConsumptionByPage

Query parameters

locationCodestring required

The Code that identifies the Location in Crunchtime.

pageNumberinteger

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

projCnsDatestring required

Projected consumption date to retrieve in format DD-MMM-YY.

pageSizeinteger

Number of items to display per page.

includeNullboolean

Specify 'true' to output null data elements.

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.

Response

Success

hasNextboolean
totalPagesinteger

Example response

{
  "projectedConsumptionDetails": [
    {
      "projectedConsumptionDetailDetails": [
        {
          "productNumber": "R-001",
          "projCnsQty": 99999999.9999
        }
      ],
      "projectedConsumptionHeaderDetails": {
        "locationCode": "000122",
        "projCnsDate": "MM/dd/yyyy"
      }
    }
  ]
}