Calculate Price
post
/ccstore/v1/cpq/prices/calculate
Calculates the prices for given Products from external systems.
Request
Supported Media Types
- application/json
Root Schema : calculatePrice_request
Type:
Show Source
object
-
items(required):
array items
-
requiredResponseProperties:
array requiredResponseProperties
CPQ properties that are required in the response.
Nested Schema : requiredResponseProperties
Type:
array
CPQ properties that are required in the response.
Show Source
-
Array of:
string
CPQ property
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : calculatePrice_response
Type:
Show Source
object
-
items:
array items
-
lastPriced:
string
Requested Timestamp of when these items are priced.
Nested Schema : items
Type:
Show Source
object
-
amount:
number
Total Amount w.r.t to quantity.
-
catRefId:
string
sku id or catalog ref id
-
charges:
array charges
List of various charges assigned to the item
-
quantity:
number
quantity of this item
-
unitPrice:
number
unit price of the item
Nested Schema : items
Type:
Show Source
object
-
amount:
number
Total Amount w.r.t to quantity.
-
chargeCode:
string
Charge code
-
chargeType:
string
Type of the charge
-
integrationId:
string
Integration id for this charge
-
isProductPrice:
boolean
This property tells which charge among others is Product price
-
name:
string
Name of the charge
-
priceType:
string
Price type for this charge. i.e., one-time, recurring or usage
-
unitPrice:
number
unit price of the item
Example Response (application/json)
[
]
Default Response
The error response
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code