Get Product Details for Consumer Sales Action

Retrieve product details for Consumer Sales.

This action is available in API version 68.0 and later.

This is applicable for Consumer Sales for business-to-consumer (B2C).

Note

Special Access Rules 

You need the CME B2C permission set to use this invocable action.

Supported REST HTTP Methods 

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

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where, TOKEN is a variable.

Inputs 

InputTypeDescription
productIdstringRequired.
The ID of the product whose details are requested.

Outputs 

OutputTypeDescription
productDetailsstringThe product details returned by the product details API, serialized as JSON.
correlationIdstringThe correlation ID for the product details.
contextIdstringThe ID of the sales transaction context associated with the product details response.

Example 

POST

This sample request is for the Get Product Details for Consumer Sales action.

1{
2  "inputs": [
3    {
4      "productId": "01txx0000004CjrAAE"
5    }
6  ]
7}

This sample response is for the Get Product Details for Consumer Sales action.

1[
2  {
3    "actionName": "getProductDetailsConsuSls",
4    "errors": null,
5    "invocationId": null,
6    "isSuccess": true,
7    "outputValues": {
8      "productDetails": "{\"productId\":\"01txx0000004CjrAAE\",\"name\":\"Unlimited Wireless Plan\"}",
9      "correlationId": "cme-pd-001",
10      "contextId": "e055bb18-d4e8-41c3-881e-0132b9561708"
11    },
12    "sortOrder": -1,
13    "version": 1
14  }
15]