Skip to main content

Report.getStaticData

The method, Report.getStaticData returns configuration data in name/value pairs. This data is required in order to reconcile transactional data returned from Report.getHistorical.

Parameters

None. Report.getStaticData does not accept parameters.

Request Examples

Examples are provided in Curl and PHP.

Curl Example

curl --location --request POST 'https://chef.penguinpos.com/pcu/server/public/index.php/api/json-rpc/v1' \ --header 'Authorization: Bearer {jwt}' \ --header 'Content-Type: text/plain' \ --data-raw'{ "jsonrpc": "2.0", "method": "Report.getStaticData", "params": [{}], "id": 0 }'

PHP Example

?php $apiUrl = 'https://chef.penguinpos.com/pcu/server/public/index.php/api/json-rpc/v1'; $payload = '{ "method": "Report.getStaticData", "params": [{}], "id": 1, "jsonrpc": "2.0" }'; $header = array( "Content-Type: application/json", "Authorization: Bearer {jwt}" ); $context = stream_context_create(array( 'http' => array( 'ignore_errors' => true, 'method' => "POST", 'header'  => $header, 'content' => $payload )) ); $result = file_get_contents($apiUrl, false, $context); var_dump($result);

Output Example

The method, Report.getStaticData returns configuration data in name/value pairs. This data includes, but is not limited to:

  • Ingredients

  • Daypart

  • Daypart Pan Contents

  • Holding Unit Information

  • Equipment Types

  • Equipment Parameters

  • Pan Information

  • Pan Status Types

  • Pan Content Close Types

  • Fryer Information

  • Frypot Information

  • Frypot Lanes

  • Recipes

Loading request from Report.getStaticData.

{ "jsonrpc": "2.0", "id": 1, "result": { "success": true, "data": { "config": [], "ingredient": [{ "ingredient_uid": 2, "ingredient_num": 3, "name": "Biscuits", "short_name": "BISC", "scoring_weight": 1, "utilization": 1, "class": "", "type": 1, "calc_destination_eat_in": 1, "calc_destination_take_out": 1, "calc_destination_delivery": 1, "calc_destination_drive_through": 1 }, { ...