Get Tariff Configurations Action

Retrieve tariff configurations, including details, attributes, and related metadata, for tariff comparison based on catalog code, category code, and service type.

This action is available in API version 68.0 and later.

Special Access Rules 

The Get Tariff Configurations action is available in Enterprise and Unlimited Editions with Energy and Utilities Cloud.

Supported REST HTTP Methods 

URI: /services/data/v68.0/actions/standard/getTariffConfigurations

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a variable.

Inputs 

InputTypeDescription
catalogCodestringOptional.
The catalog code used to filter tariff configurations.
categoryCodestringOptional.
The category code used to filter tariff configurations.
serviceTypestringOptional.
The service type used to filter tariff configurations.
includeAttributesbooleanOptional.
Indicates whether to include tariff attributes in the response.

Outputs 

OutputTypeDescription
commodityConfigResponseApexAn Apex response that contains the commodity configuration details. Contains these fields.
success (boolean): Indicates whether configuration retrieval succeeded.
attributes (object[]): Tariff attributes used for comparison and configuration. Returned when includeAttributes is true.
commodityCatalogList (object[]): Catalog and category structure used by tariff comparison.
consumptionParamList (object[]): Consumption parameters supported for comparison.
errors (object[]): List of errors returned for invalid or incomplete requests.

Example 

POST

This sample request is for the Get Tariff Configurations action.

1{
2  "inputs": [
3    {
4      "catalogCode": "ELEC_CATALOG",
5      "categoryCode": "RESIDENTIAL",
6      "serviceType": "Electricity",
7      "includeAttributes": true
8    }
9  ]
10}

This sample response is for the Get Tariff Configurations action.

1[
2  {
3    "actionName": "getTariffConfigurations",
4    "errors": null,
5    "invocationId": null,
6    "isSuccess": true,
7    "outputValues": {
8      "commodityConfigResponse": {
9        "success": true,
10        "attributes": [],
11        "commodityCatalogList": [],
12        "consumptionParamList": [],
13        "errors": []
14      }
15    },
16    "sortOrder": -1,
17    "version": 1
18  }
19]