Calculate Price

post

/ccstore/v1/prices/actions/calculate

Calculates the prices for given Products from external systems.

Request

Supported Media Types
Body ()
Root Schema : calculatePrice_request
Type: object
Show Source
Nested Schema : additionalFields
Type: array
CPQ properties that are required in the response.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : calculatePrice_response
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : availableAgreements
Type: object
List of all available agreements for the given item
Show Source
Nested Schema : availableRatePlans
Type: object
List of all available rate plans for the given item
Show Source
Nested Schema : charges
Type: array
List of various charges assigned to the item
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : rates
Type: object
Show Source
Nested Schema : data
Type: array
Array of rate tiers
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : columns
Type: array
Column definitions for the rate card
Show Source
Nested Schema : lookupData
Type: array
Lookup data for the schema
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : translations
Type: array
Translation data for internationalization
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "items":[
        {
            "unitPrice":125,
            "charges":[
                {
                    "unitPrice":100,
                    "amount":200,
                    "isProductPrice":true,
                    "chargeType":"ORA_SALE",
                    "priceType":"One Time"
                },
                {
                    "unitPrice":20,
                    "amount":40,
                    "isProductPrice":false,
                    "chargeType":"ORA_SALE",
                    "priceType":"Recurring",
                    "frequency":"Per Month"
                },
                {
                    "unitOfMeasure":"gb",
                    "isProductPrice":false,
                    "rates":{
                        "schema":{
                            "lookupData":[
                            ],
                            "columns":[
                                {
                                    "variableName":"from",
                                    "translations":[
                                    ],
                                    "dataType":"Integer",
                                    "name":"Usage From"
                                },
                                {
                                    "variableName":"to",
                                    "translations":[
                                    ],
                                    "dataType":"Integer",
                                    "name":"Usage To"
                                },
                                {
                                    "variableName":"rate",
                                    "translations":[
                                    ],
                                    "dataType":"Currency",
                                    "name":"Rate"
                                }
                            ]
                        },
                        "variableName":"supremoRemoteAccessRateCard",
                        "data":[
                            {
                                "rate":{
                                    "currency":"USD",
                                    "value":0.9
                                },
                                "from":0,
                                "to":100
                            },
                            {
                                "rate":{
                                    "currency":"USD",
                                    "value":0.8
                                },
                                "from":100,
                                "to":1000
                            },
                            {
                                "rate":{
                                    "currency":"USD",
                                    "value":0.5
                                },
                                "from":1000
                            }
                        ],
                        "name":"Supremo Remote Access Rate Card",
                        "type":"rateCard"
                    },
                    "chargeType":"ORA_SALE",
                    "priceType":"Usage",
                    "dynamicPricingType":"rateCard",
                    "frequency":"Per Month"
                },
                {
                    "unitPrice":25,
                    "amount":50,
                    "isProductPrice":false,
                    "chargeType":"activationFee_c",
                    "priceType":"One Time"
                }
            ],
            "amount":250,
            "quantity":2,
            "availableRatePlans":[
                {
                    "name":"Rate Plan A",
                    "id":"ratePlanA"
                },
                {
                    "name":"Rate Plan B",
                    "id":"ratePlanB"
                },
                {
                    "name":"Rate Plan C",
                    "id":"ratePlanC"
                },
                {
                    "name":"Rate Plan D",
                    "id":"ratePlanD"
                }
            ],
            "ratePlanName":"Rate Plan A",
            "ratePlanId":"ratePlanA",
            "catRefId":"partA"
        }
    ]
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |46001|Pricing Integration with {0} is not enabled. Please contact your administrator.| |46002|We are experiencing technical difficulties calculating your price right now. Please try again later or contact your customer support or administrator for assistance.| |46003|Missing required input property: {0}| |46004|Invalid catRefId {0}.| |46005|Item quantity cannot be negative.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top