post
/{tenantId}/v1/products/calculate-priceCalculate configuration price
Requires Authentication
Products
Calculates the total price for a product configuration including base price,
selected features, and component selections. Prices are returned in credits
(10 credits = £0.01). Tenant-specific price overrides are automatically applied.
Path Parameters
| Name | Type | Description |
|---|---|---|
tenantIdrequired | string (uuid) | Tenant UUID |
Request Body
required
productCodestring
required
- Product code to calculate price forfeatureCodesarray
string[]componentSelectionsarray
ComponentGroupSelectionInput[]ComponentGroupSelectionInput
Responses
Configuration price with breakdown
Response Bodyapplication/json
totalPriceinteger (int64)
- Total price in credits (10 credits = £0.01)breakdownPriceBreakdown
basePriceinteger (int64)
- Base product price in creditsbaseIsOverrideboolean
- Whether the base price is a tenant-specific overridefeaturePricesarray
FeaturePriceDetail[]componentPricesarray
ComponentGroupPriceDetail[]Code Examples
curl -X POST 'https://api-next.checkio.co.uk/{tenantId}/v1/products/calculate-price' \
-H 'Authorization: Bearer {token}' \
-H 'Content-Type: application/json' \
-d '{
"productCode": "string",
"featureCodes": [
"string"
],
"componentSelections": [
{
"groupId": "00000000-0000-0000-0000-000000000000",
"itemIds": [
"00000000-0000-0000-0000-000000000000"
],
"bundleId": "00000000-0000-0000-0000-000000000000"
}
]
}'