Chilkat Online Tools

unicodeC / Salesforce Platform APIs / Calculate Price (New Sale Bundles)

Back to Collection Items

#include <C_CkHttpW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkHttpResponseW.h>

void ChilkatSample(void)
    {
    HCkHttpW http;
    BOOL success;
    HCkJsonObjectW json;
    HCkHttpResponseW resp;

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    http = CkHttpW_Create();

    // Use this online tool to generate code from sample JSON: Generate Code to Create JSON

    // The following JSON is sent in the request body.

    // {
    //   "listPricebookId": "{{standardPricebook}}",
    //   "candidatePricebookIds": [
    //     "{{standardPricebook}}"
    //   ],
    //   "pricingFlow": "GET_PRICE_USING_CONTEXT",
    //   "graph": {
    //     "graphId": "1",
    //     "records": [
    //       {
    //         "referenceId": "ref_sales_txn",
    //         "record": {
    //           "attributes": {
    //             "type": "SalesTransactionShape"
    //           },
    //           "CurrencyIsoCode": "USD"
    //         }
    //       },
    //       {
    //         "referenceId": "ref_sales_txn_item1",
    //         "record": {
    //           "attributes": {
    //             "type": "SalesTransactionItemShape"
    //           },
    //           "SalesTransactionShapeId": "@{ref_sales_txn.Id}",
    //           "StartDate": "2022-01-01",
    //           "ProductId": "{{WorkAnywhereBundleProduct}}",
    //           "ProductSellingModelId": "{{EvergreenMonthlyPSM}}",
    //           "Quantity": 10.0,
    //           "PricingTransactionType": "NewSale",
    //           "CurrencyIsoCode": "USD"
    //         }
    //       },
    //       {
    //         "referenceId": "ref_sales_txn_item2",
    //         "record": {
    //           "attributes": {
    //             "type": "SalesTransactionItemShape"
    //           },
    //           "SalesTransactionShapeId": "@{ref_sales_txn.Id}",
    //           "StartDate": "2023-01-01",
    //           "ProductId": "{{VirtualRouterProduct}}",
    //           "ProductSellingModelId": "{{EvergreenMonthlyPSM}}",
    //           "Quantity": 10.0,
    //           "PricingTransactionType": "NewSale",
    //           "CurrencyIsoCode": "USD"
    //         }
    //       },
    //       {
    //         "referenceId": "ref_sales_txn_item3",
    //         "record": {
    //           "attributes": {
    //             "type": "SalesTransactionItemShape"
    //           },
    //           "SalesTransactionShapeId": "@{ref_sales_txn.Id}",
    //           "StartDate": "2023-01-01",
    //           "ProductId": "{{SLA_BronzeProduct}}",
    //           "ProductSellingModelId": "{{EvergreenMonthlyPSM}}",
    //           "Quantity": 10.0,
    //           "PricingTransactionType": "NewSale",
    //           "CurrencyIsoCode": "USD"
    //         }
    //       },
    //       {
    //         "referenceId": "ref_sales_txn_item4",
    //         "record": {
    //           "attributes": {
    //             "type": "SalesTransactionItemShape"
    //           },
    //           "SalesTransactionShapeId": "@{ref_sales_txn.Id}",
    //           "StartDate": "2023-01-01",
    //           "ProductId": "{{ClassTrainingProduct}}",
    //           "ProductSellingModelId": "{{OneTimePSM}}",
    //           "Quantity": 50.0,
    //           "PricingTransactionType": "NewSale",
    //           "CurrencyIsoCode": "USD"
    //         }
    //       },
    //       {
    //         "referenceId": "ref_rel1",
    //         "record": {
    //           "attributes": {
    //             "type": "SalesTrxnItemRelationShape"
    //           },
    //           "MainSalesTrxnItemShapeId": "@{ref_sales_txn_item1.Id}",
    //           "AssocSalesTrxnItemShapeId": "@{ref_sales_txn_item2.Id}",
    //           "MainSalesTrxnItemShapeRole": "Bundle",
    //           "AssocSalesTrxnItemShapeRole": "BundleComponent",
    //           "AssociatedItemShapePricing": "IncludedInBundlePrice"
    //         }
    //       },
    //       {
    //         "referenceId": "ref_rel2",
    //         "record": {
    //           "attributes": {
    //             "type": "SalesTrxnItemRelationShape"
    //           },
    //           "MainSalesTrxnItemShapeId": "@{ref_sales_txn_item1.Id}",
    //           "AssocSalesTrxnItemShapeId": "@{ref_sales_txn_item3.Id}",
    //           "MainSalesTrxnItemShapeRole": "Bundle",
    //           "AssocSalesTrxnItemShapeRole": "BundleComponent",
    //           "AssociatedItemShapePricing": "IncludedInBundlePrice"
    //         }
    //       },
    //       {
    //         "referenceId": "ref_rel3",
    //         "record": {
    //           "attributes": {
    //             "type": "SalesTrxnItemRelationShape"
    //           },
    //           "MainSalesTrxnItemShapeId": "@{ref_sales_txn_item1.Id}",
    //           "AssocSalesTrxnItemShapeId": "@{ref_sales_txn_item4.Id}",
    //           "MainSalesTrxnItemShapeRole": "Bundle",
    //           "AssocSalesTrxnItemShapeRole": "BundleComponent",
    //           "AssociatedItemShapePricing": "NotIncludedInBundlePrice"
    //         }
    //       }
    //     ]
    //   }
    // }

    json = CkJsonObjectW_Create();
    CkJsonObjectW_UpdateString(json,L"listPricebookId",L"{{standardPricebook}}");
    CkJsonObjectW_UpdateString(json,L"candidatePricebookIds[0]",L"{{standardPricebook}}");
    CkJsonObjectW_UpdateString(json,L"pricingFlow",L"GET_PRICE_USING_CONTEXT");
    CkJsonObjectW_UpdateString(json,L"graph.graphId",L"1");
    CkJsonObjectW_UpdateString(json,L"graph.records[0].referenceId",L"ref_sales_txn");
    CkJsonObjectW_UpdateString(json,L"graph.records[0].record.attributes.type",L"SalesTransactionShape");
    CkJsonObjectW_UpdateString(json,L"graph.records[0].record.CurrencyIsoCode",L"USD");
    CkJsonObjectW_UpdateString(json,L"graph.records[1].referenceId",L"ref_sales_txn_item1");
    CkJsonObjectW_UpdateString(json,L"graph.records[1].record.attributes.type",L"SalesTransactionItemShape");
    CkJsonObjectW_UpdateString(json,L"graph.records[1].record.SalesTransactionShapeId",L"@{ref_sales_txn.Id}");
    CkJsonObjectW_UpdateString(json,L"graph.records[1].record.StartDate",L"2022-01-01");
    CkJsonObjectW_UpdateString(json,L"graph.records[1].record.ProductId",L"{{WorkAnywhereBundleProduct}}");
    CkJsonObjectW_UpdateString(json,L"graph.records[1].record.ProductSellingModelId",L"{{EvergreenMonthlyPSM}}");
    CkJsonObjectW_UpdateNumber(json,L"graph.records[1].record.Quantity",L"10.0");
    CkJsonObjectW_UpdateString(json,L"graph.records[1].record.PricingTransactionType",L"NewSale");
    CkJsonObjectW_UpdateString(json,L"graph.records[1].record.CurrencyIsoCode",L"USD");
    CkJsonObjectW_UpdateString(json,L"graph.records[2].referenceId",L"ref_sales_txn_item2");
    CkJsonObjectW_UpdateString(json,L"graph.records[2].record.attributes.type",L"SalesTransactionItemShape");
    CkJsonObjectW_UpdateString(json,L"graph.records[2].record.SalesTransactionShapeId",L"@{ref_sales_txn.Id}");
    CkJsonObjectW_UpdateString(json,L"graph.records[2].record.StartDate",L"2023-01-01");
    CkJsonObjectW_UpdateString(json,L"graph.records[2].record.ProductId",L"{{VirtualRouterProduct}}");
    CkJsonObjectW_UpdateString(json,L"graph.records[2].record.ProductSellingModelId",L"{{EvergreenMonthlyPSM}}");
    CkJsonObjectW_UpdateNumber(json,L"graph.records[2].record.Quantity",L"10.0");
    CkJsonObjectW_UpdateString(json,L"graph.records[2].record.PricingTransactionType",L"NewSale");
    CkJsonObjectW_UpdateString(json,L"graph.records[2].record.CurrencyIsoCode",L"USD");
    CkJsonObjectW_UpdateString(json,L"graph.records[3].referenceId",L"ref_sales_txn_item3");
    CkJsonObjectW_UpdateString(json,L"graph.records[3].record.attributes.type",L"SalesTransactionItemShape");
    CkJsonObjectW_UpdateString(json,L"graph.records[3].record.SalesTransactionShapeId",L"@{ref_sales_txn.Id}");
    CkJsonObjectW_UpdateString(json,L"graph.records[3].record.StartDate",L"2023-01-01");
    CkJsonObjectW_UpdateString(json,L"graph.records[3].record.ProductId",L"{{SLA_BronzeProduct}}");
    CkJsonObjectW_UpdateString(json,L"graph.records[3].record.ProductSellingModelId",L"{{EvergreenMonthlyPSM}}");
    CkJsonObjectW_UpdateNumber(json,L"graph.records[3].record.Quantity",L"10.0");
    CkJsonObjectW_UpdateString(json,L"graph.records[3].record.PricingTransactionType",L"NewSale");
    CkJsonObjectW_UpdateString(json,L"graph.records[3].record.CurrencyIsoCode",L"USD");
    CkJsonObjectW_UpdateString(json,L"graph.records[4].referenceId",L"ref_sales_txn_item4");
    CkJsonObjectW_UpdateString(json,L"graph.records[4].record.attributes.type",L"SalesTransactionItemShape");
    CkJsonObjectW_UpdateString(json,L"graph.records[4].record.SalesTransactionShapeId",L"@{ref_sales_txn.Id}");
    CkJsonObjectW_UpdateString(json,L"graph.records[4].record.StartDate",L"2023-01-01");
    CkJsonObjectW_UpdateString(json,L"graph.records[4].record.ProductId",L"{{ClassTrainingProduct}}");
    CkJsonObjectW_UpdateString(json,L"graph.records[4].record.ProductSellingModelId",L"{{OneTimePSM}}");
    CkJsonObjectW_UpdateNumber(json,L"graph.records[4].record.Quantity",L"50.0");
    CkJsonObjectW_UpdateString(json,L"graph.records[4].record.PricingTransactionType",L"NewSale");
    CkJsonObjectW_UpdateString(json,L"graph.records[4].record.CurrencyIsoCode",L"USD");
    CkJsonObjectW_UpdateString(json,L"graph.records[5].referenceId",L"ref_rel1");
    CkJsonObjectW_UpdateString(json,L"graph.records[5].record.attributes.type",L"SalesTrxnItemRelationShape");
    CkJsonObjectW_UpdateString(json,L"graph.records[5].record.MainSalesTrxnItemShapeId",L"@{ref_sales_txn_item1.Id}");
    CkJsonObjectW_UpdateString(json,L"graph.records[5].record.AssocSalesTrxnItemShapeId",L"@{ref_sales_txn_item2.Id}");
    CkJsonObjectW_UpdateString(json,L"graph.records[5].record.MainSalesTrxnItemShapeRole",L"Bundle");
    CkJsonObjectW_UpdateString(json,L"graph.records[5].record.AssocSalesTrxnItemShapeRole",L"BundleComponent");
    CkJsonObjectW_UpdateString(json,L"graph.records[5].record.AssociatedItemShapePricing",L"IncludedInBundlePrice");
    CkJsonObjectW_UpdateString(json,L"graph.records[6].referenceId",L"ref_rel2");
    CkJsonObjectW_UpdateString(json,L"graph.records[6].record.attributes.type",L"SalesTrxnItemRelationShape");
    CkJsonObjectW_UpdateString(json,L"graph.records[6].record.MainSalesTrxnItemShapeId",L"@{ref_sales_txn_item1.Id}");
    CkJsonObjectW_UpdateString(json,L"graph.records[6].record.AssocSalesTrxnItemShapeId",L"@{ref_sales_txn_item3.Id}");
    CkJsonObjectW_UpdateString(json,L"graph.records[6].record.MainSalesTrxnItemShapeRole",L"Bundle");
    CkJsonObjectW_UpdateString(json,L"graph.records[6].record.AssocSalesTrxnItemShapeRole",L"BundleComponent");
    CkJsonObjectW_UpdateString(json,L"graph.records[6].record.AssociatedItemShapePricing",L"IncludedInBundlePrice");
    CkJsonObjectW_UpdateString(json,L"graph.records[7].referenceId",L"ref_rel3");
    CkJsonObjectW_UpdateString(json,L"graph.records[7].record.attributes.type",L"SalesTrxnItemRelationShape");
    CkJsonObjectW_UpdateString(json,L"graph.records[7].record.MainSalesTrxnItemShapeId",L"@{ref_sales_txn_item1.Id}");
    CkJsonObjectW_UpdateString(json,L"graph.records[7].record.AssocSalesTrxnItemShapeId",L"@{ref_sales_txn_item4.Id}");
    CkJsonObjectW_UpdateString(json,L"graph.records[7].record.MainSalesTrxnItemShapeRole",L"Bundle");
    CkJsonObjectW_UpdateString(json,L"graph.records[7].record.AssocSalesTrxnItemShapeRole",L"BundleComponent");
    CkJsonObjectW_UpdateString(json,L"graph.records[7].record.AssociatedItemShapePricing",L"NotIncludedInBundlePrice");

    // Adds the "Authorization: Bearer <access_token>" header.
    CkHttpW_putAuthToken(http,L"<access_token>");
    CkHttpW_SetRequestHeader(http,L"Content-Type",L"application/json");

    resp = CkHttpW_PostJson3(http,L"https://domain.com/services/data/v{{version}}/commerce/pricing/salestransaction/actions/calculate-price",L"application/json",json);
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        CkJsonObjectW_Dispose(json);
        return;
    }

    wprintf(L"%d\n",CkHttpResponseW_getStatusCode(resp));
    wprintf(L"%s\n",CkHttpResponseW_bodyStr(resp));
    CkHttpResponseW_Dispose(resp);


    CkHttpW_Dispose(http);
    CkJsonObjectW_Dispose(json);

    }

Curl Command

curl -X POST
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/json"
	-d '{
    "listPricebookId": "{{standardPricebook}}",
    "candidatePricebookIds": [
        "{{standardPricebook}}"
    ],
    "pricingFlow": "GET_PRICE_USING_CONTEXT",
    "graph": {
        "graphId": "1",
        "records": [
            {
                "referenceId": "ref_sales_txn",
                "record": {
                    "attributes": {
                        "type": "SalesTransactionShape"
                    },
                "CurrencyIsoCode": "USD"                    
                }
            },
            {
                "referenceId": "ref_sales_txn_item1",
                "record": {
                    "attributes": {
                        "type": "SalesTransactionItemShape"
                    },
                    "SalesTransactionShapeId": "@{ref_sales_txn.Id}",
                    "StartDate": "2022-01-01",
                    "ProductId": "{{WorkAnywhereBundleProduct}}",
                    "ProductSellingModelId": "{{EvergreenMonthlyPSM}}",
                    "Quantity": 10.0,
                    "PricingTransactionType": "NewSale",
                "CurrencyIsoCode": "USD"                     
                }
            },
            {
                "referenceId": "ref_sales_txn_item2",
                "record": {
                    "attributes": {
                        "type": "SalesTransactionItemShape"
                    },
                    "SalesTransactionShapeId": "@{ref_sales_txn.Id}",
                    "StartDate": "2023-01-01",
                    "ProductId": "{{VirtualRouterProduct}}",
                    "ProductSellingModelId": "{{EvergreenMonthlyPSM}}",
                    "Quantity": 10.0,
                    "PricingTransactionType": "NewSale",
                    "CurrencyIsoCode": "USD"                     
                }
            },            
            {
                "referenceId": "ref_sales_txn_item3",
                "record": {
                    "attributes": {
                        "type": "SalesTransactionItemShape"
                    },
                    "SalesTransactionShapeId": "@{ref_sales_txn.Id}",
                    "StartDate": "2023-01-01",
                    "ProductId": "{{SLA_BronzeProduct}}",
                    "ProductSellingModelId": "{{EvergreenMonthlyPSM}}",
                    "Quantity": 10.0,
                    "PricingTransactionType": "NewSale",
                    "CurrencyIsoCode": "USD"                     
                }
            },
            {
                "referenceId": "ref_sales_txn_item4",
                "record": {
                    "attributes": {
                        "type": "SalesTransactionItemShape"
                    },
                    "SalesTransactionShapeId": "@{ref_sales_txn.Id}",
                    "StartDate": "2023-01-01",
                    "ProductId": "{{ClassTrainingProduct}}",
                    "ProductSellingModelId": "{{OneTimePSM}}",
                    "Quantity": 50.0,
                    "PricingTransactionType": "NewSale",
                "CurrencyIsoCode": "USD"                     
                }
            },            
            {
                "referenceId": "ref_rel1",
                "record": {
                    "attributes": {
                        "type": "SalesTrxnItemRelationShape"
                    },
                    "MainSalesTrxnItemShapeId": "@{ref_sales_txn_item1.Id}",
                    "AssocSalesTrxnItemShapeId": "@{ref_sales_txn_item2.Id}",
                    "MainSalesTrxnItemShapeRole": "Bundle",
                    "AssocSalesTrxnItemShapeRole": "BundleComponent",
                    "AssociatedItemShapePricing": "IncludedInBundlePrice"
                }
            },
            {
                "referenceId": "ref_rel2",
                "record": {
                    "attributes": {
                        "type": "SalesTrxnItemRelationShape"
                    },
                    "MainSalesTrxnItemShapeId": "@{ref_sales_txn_item1.Id}",
                    "AssocSalesTrxnItemShapeId": "@{ref_sales_txn_item3.Id}",
                    "MainSalesTrxnItemShapeRole": "Bundle",
                    "AssocSalesTrxnItemShapeRole": "BundleComponent",
                    "AssociatedItemShapePricing": "IncludedInBundlePrice"
                }
            },
            {
                "referenceId": "ref_rel3",
                "record": {
                    "attributes": {
                        "type": "SalesTrxnItemRelationShape"
                    },
                    "MainSalesTrxnItemShapeId": "@{ref_sales_txn_item1.Id}",
                    "AssocSalesTrxnItemShapeId": "@{ref_sales_txn_item4.Id}",
                    "MainSalesTrxnItemShapeRole": "Bundle",
                    "AssocSalesTrxnItemShapeRole": "BundleComponent",
                    "AssociatedItemShapePricing": "NotIncludedInBundlePrice"
                }
            }                                        
        ]
    }
}'
https://domain.com/services/data/v{{version}}/commerce/pricing/salestransaction/actions/calculate-price

Postman Collection Item JSON

{
  "name": "Calculate Price (New Sale Bundles)",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"listPricebookId\": \"{{standardPricebook}}\",\n    \"candidatePricebookIds\": [\n        \"{{standardPricebook}}\"\n    ],\n    \"pricingFlow\": \"GET_PRICE_USING_CONTEXT\",\n    \"graph\": {\n        \"graphId\": \"1\",\n        \"records\": [\n            {\n                \"referenceId\": \"ref_sales_txn\",\n                \"record\": {\n                    \"attributes\": {\n                        \"type\": \"SalesTransactionShape\"\n                    },\n                \"CurrencyIsoCode\": \"USD\"                    \n                }\n            },\n            {\n                \"referenceId\": \"ref_sales_txn_item1\",\n                \"record\": {\n                    \"attributes\": {\n                        \"type\": \"SalesTransactionItemShape\"\n                    },\n                    \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n                    \"StartDate\": \"2022-01-01\",\n                    \"ProductId\": \"{{WorkAnywhereBundleProduct}}\",\n                    \"ProductSellingModelId\": \"{{EvergreenMonthlyPSM}}\",\n                    \"Quantity\": 10.0,\n                    \"PricingTransactionType\": \"NewSale\",\n                \"CurrencyIsoCode\": \"USD\"                     \n                }\n            },\n            {\n                \"referenceId\": \"ref_sales_txn_item2\",\n                \"record\": {\n                    \"attributes\": {\n                        \"type\": \"SalesTransactionItemShape\"\n                    },\n                    \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n                    \"StartDate\": \"2023-01-01\",\n                    \"ProductId\": \"{{VirtualRouterProduct}}\",\n                    \"ProductSellingModelId\": \"{{EvergreenMonthlyPSM}}\",\n                    \"Quantity\": 10.0,\n                    \"PricingTransactionType\": \"NewSale\",\n                    \"CurrencyIsoCode\": \"USD\"                     \n                }\n            },            \n            {\n                \"referenceId\": \"ref_sales_txn_item3\",\n                \"record\": {\n                    \"attributes\": {\n                        \"type\": \"SalesTransactionItemShape\"\n                    },\n                    \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n                    \"StartDate\": \"2023-01-01\",\n                    \"ProductId\": \"{{SLA_BronzeProduct}}\",\n                    \"ProductSellingModelId\": \"{{EvergreenMonthlyPSM}}\",\n                    \"Quantity\": 10.0,\n                    \"PricingTransactionType\": \"NewSale\",\n                    \"CurrencyIsoCode\": \"USD\"                     \n                }\n            },\n            {\n                \"referenceId\": \"ref_sales_txn_item4\",\n                \"record\": {\n                    \"attributes\": {\n                        \"type\": \"SalesTransactionItemShape\"\n                    },\n                    \"SalesTransactionShapeId\": \"@{ref_sales_txn.Id}\",\n                    \"StartDate\": \"2023-01-01\",\n                    \"ProductId\": \"{{ClassTrainingProduct}}\",\n                    \"ProductSellingModelId\": \"{{OneTimePSM}}\",\n                    \"Quantity\": 50.0,\n                    \"PricingTransactionType\": \"NewSale\",\n                \"CurrencyIsoCode\": \"USD\"                     \n                }\n            },            \n            {\n                \"referenceId\": \"ref_rel1\",\n                \"record\": {\n                    \"attributes\": {\n                        \"type\": \"SalesTrxnItemRelationShape\"\n                    },\n                    \"MainSalesTrxnItemShapeId\": \"@{ref_sales_txn_item1.Id}\",\n                    \"AssocSalesTrxnItemShapeId\": \"@{ref_sales_txn_item2.Id}\",\n                    \"MainSalesTrxnItemShapeRole\": \"Bundle\",\n                    \"AssocSalesTrxnItemShapeRole\": \"BundleComponent\",\n                    \"AssociatedItemShapePricing\": \"IncludedInBundlePrice\"\n                }\n            },\n            {\n                \"referenceId\": \"ref_rel2\",\n                \"record\": {\n                    \"attributes\": {\n                        \"type\": \"SalesTrxnItemRelationShape\"\n                    },\n                    \"MainSalesTrxnItemShapeId\": \"@{ref_sales_txn_item1.Id}\",\n                    \"AssocSalesTrxnItemShapeId\": \"@{ref_sales_txn_item3.Id}\",\n                    \"MainSalesTrxnItemShapeRole\": \"Bundle\",\n                    \"AssocSalesTrxnItemShapeRole\": \"BundleComponent\",\n                    \"AssociatedItemShapePricing\": \"IncludedInBundlePrice\"\n                }\n            },\n            {\n                \"referenceId\": \"ref_rel3\",\n                \"record\": {\n                    \"attributes\": {\n                        \"type\": \"SalesTrxnItemRelationShape\"\n                    },\n                    \"MainSalesTrxnItemShapeId\": \"@{ref_sales_txn_item1.Id}\",\n                    \"AssocSalesTrxnItemShapeId\": \"@{ref_sales_txn_item4.Id}\",\n                    \"MainSalesTrxnItemShapeRole\": \"Bundle\",\n                    \"AssocSalesTrxnItemShapeRole\": \"BundleComponent\",\n                    \"AssociatedItemShapePricing\": \"NotIncludedInBundlePrice\"\n                }\n            }                                        \n        ]\n    }\n}"
    },
    "url": {
      "raw": "{{_endpoint}}/services/data/v{{version}}/commerce/pricing/salestransaction/actions/calculate-price",
      "host": [
        "{{_endpoint}}"
      ],
      "path": [
        "services",
        "data",
        "v{{version}}",
        "commerce",
        "pricing",
        "salestransaction",
        "actions",
        "calculate-price"
      ]
    },
    "description": "Calculate the price of the Work Anywhere software bundle plus all it's bundle components for the pricing period of 1 month. Because this bundle is sold on an evergreen subscription rather than a termed subscription, the price is calculated per month rather than for the length of the subscription.\n\nAdd one RelationShape for each bundle component. Note that the classroom training product is not included in the bundle price, while the other two bundle components are.\n\nSee [Calculate Price](https://desktop.postman.com/?desktopVersion=10.13.6&webVersion=10.13.7-ui-230522-1730&userId=10709048&teamId=0)."
  },
  "response": [
  ]
}