Pricing API
- Base URL:
https://pricing-api.sls.epilot.io - API Docs: https://docs.epilot.io/api/pricing
The pricing-api hub sets the foundations for the following Pricing APIs:
Quick Startโ
# List available operations
epilot pricing
# Call an operation
epilot pricing $calculatePricingDetails
Common Flagsโ
| Flag | Description |
|---|---|
-p key=value | Set a named parameter |
-d '{...}' | Request body JSON |
-H 'Key: Value' | Custom header |
-t, --token <token> | Bearer token for authentication |
--profile <name> | Use a named profile |
-s, --server <url> | Override server base URL |
-i, --include | Include response headers in output |
--json | Output raw JSON (no formatting) |
-v, --verbose | Verbose output (show request details) |
--jsonata <expr> | JSONata expression to transform response |
--definition <file> | Override OpenAPI spec file/URL |
--guided | Prompt for all parameters interactively |
--no-interactive | Disable interactive prompts |
Operationsโ
Order API
$calculatePricingDetailsโ Computes a set of pricing details that can be persisted on an entity with the pricing capability enabled, e.g: Orders orcreateOrderโ Create an orderputOrderโ Update an existing Order
Cart API
$checkoutCartโ Checkouts a cart and executes the specified checkoutmodeprocess.
Catalog API
$searchCatalogโ Provides a querying functionalities over products and prices of the Catalog for a given organization.$privateSearchCatalogโ Provides a querying functionalities over products and prices of the Catalog for a given organization.
Promo Codes API
$validatePromoCodesโ Validate a list of promo codes against a list of coupons
Availability API
$availabilityCheckโ The availability check endpoint$validateAvailabilityFileโ Validates an availability file, it returns an array of errors if the file is invalid
Spot Market API
$historicMarketPricesโ Get a series of historic energy prices for a given time period, market and bidding zone.$averageMarketPriceโ Get the average energy prices for a given time period, market and bidding zone.
External Integrations API
$searchExternalProductsโ Returns the list of available products with computed prices based on a given context and for a given org integration.$searchExternalProductRecommendationsโ Returns the list of available product recommendations with computed prices based on a given context and for a given org$searchProvidersโ Returns the list of providers available based on a given location$searchStreetsโ Returns the list of streets available for a given postal code and city$computePriceโ Returns the price for a given product type based on location and consumption$getCredentialsโ Gets the credentials for a given integration / organization$saveCredentialsโ Saves the credentials for a given integration / organization$deleteCredentialsโ Delete the credentials for a given integration / organization
External Catalog API
$getExternalCatalogProductsโ Returns the list of available external catalog products with computed prices based on a given context$getExternalCatalogProductRecommendationsโ Returns the list of available external catalog products recommendations based on a given context
Product Recommendations API
$productRecommendationsโ Get a list of product recommendations based on the search parameters.
Conditional Pricing API
$getConditionSetsโ Returns the condition sets built in for one conditional entity type: the situations a$resolveConditionalEntityโ Resolves which of a conditional entity's variants apply, and returns each one composed: the$createConditionalVariantโ Creates one variant of a conditional entity, together with the first version carrying its$listConditionalVariantsโ Lists a conditional entity's variants and the conditions each one pins โ the browse, filter$getConditionalVariantTreeโ The variants list, each row carrying the version in effect atas_ofโ the Entity UI's main$getActiveConditionalVariantVersionโ Returns the version of this variant that is currently in effect โ the one with the latest$replaceActiveConditionalVariantVersionโ Replaces the values of the version currently in effect, wholesale.$patchActiveConditionalVariantVersionโ Changes only the fields it names on the version currently in effect.$deleteConditionalVariantโ Removes one variant of a conditional entity: the condition tuple it holds, its registration$listConditionalVariantVersionsโ Lists one variant's versions โ its whole timeline, oldest first, which is what expanding a row$appendConditionalVariantVersionโ Appends a version to a variant: a new set of values taking effect at its own instant.$getConditionalVariantVersionโ Returns one specific version of a variant, by the instant it takes effect โ what a form editing$replaceConditionalVariantVersionโ Replaces one version's values wholesale, addressed by itsvalid_from.$patchConditionalVariantVersionโ Changes only the fields it names on one version, addressed by itsvalid_from.$deleteConditionalVariantVersionโ Removes one version of a variant.$batchUpsertConditionalVariantsโ Writes up to 100 variants or versions in one call โ the endpoint a bulk importer drives a$batchDeleteConditionalVariantsโ Removes up to 100 variants or versions in one call โ the symmetric bulk withdrawal, so
$calculatePricingDetailsโ
Computes a set of pricing details that can be persisted on an entity with the pricing capability enabled, e.g: Orders or
POST /v1/pricing:compute
Request Body
Sample Call
epilot pricing $calculatePricingDetails \
-d '{}'
Using stdin pipe:
cat body.json | epilot pricing $calculatePricingDetails
With JSONata filter:
epilot pricing $calculatePricingDetails --jsonata '$'
Sample Response
{
"items": [
{
"amount_subtotal": 10000,
"amount_total": 10600,
"currency": "EUR",
"description": "Annual internet service",
"price_id": "7e24ff5d-d580-4136-a32f-19191eed039a",
"product_id": "6241487f-b7fd-428b-ab92-24ee0b37fd84",
"taxes": [],
"unit_amount": 10000,
"unit_amount_net": 10000,
"pricing_model": "per_unit",
"_price": {},
"_product": {}
},
{
"amount_subtotal": 10000,
"amount_total": 10600,
"currency": "EUR",
"description": "Annual internet service",
"price_id": "7e24ff5d-d580-4136-a32f-19191eed039a",
"product_id": "6241487f-b7fd-428b-ab92-24ee0b37fd84",
"taxes": [],
"unit_amount": 10000,
"unit_amount_net": 10000,
"pricing_model": "per_unit",
"_price": {},
"_product": {}
}
],
"amount_subtotal": 0,
"amount_total": 0,
"unit_amount_gross": 0,
"unit_amount_net": 0,
"amount_tax": 0,
"total_details": {
"amount_shipping": 0,
"amount_tax": 0,
"breakdown": {
"taxes": [],
"recurrences": [],
"cashbacks": [],
"recurrencesByTax": []
}
},
"currency": "EUR",
"redeemed_promos": [
{
"code": "string",
"coupons": []
}
]
}
createOrderโ
Create an order
POST /v1/order
Request Body (required)
Sample Call
epilot pricing createOrder
With request body:
epilot pricing createOrder \
-d '{
"status": "draft",
"line_items": [
{
"external_fees_mappings": [],
"external_fees_metadata": {},
"external_location_metadata": {},
"external_price_metadata": {},
"_immutable_pricing_details": {},
"coupon_ids": ["string"],
"taxes": [],
"recurrences": [],
"_coupons": [],
"metadata": [],
"quantity": 0,
"product_id": "string",
"price_id": "string",
"description": "string",
"product_description": "string",
"product_name": "string",
"price_mappings": [],
"is_tax_inclusive": true,
"_product": {},
"type": "one_time",
"billing_period": "weekly",
"unit_amount": 0,
"unit_amount_gross": 0,
"unit_amount_currency": "EUR",
"unit_amount_decimal": "string",
"is_composite_price": false,
"pricing_model": "per_unit",
"_price": {}
},
{
"external_fees_mappings": [],
"external_fees_metadata": {},
"external_location_metadata": {},
"external_price_metadata": {},
"_immutable_pricing_details": {},
"coupon_ids": ["string"],
"taxes": [],
"recurrences": [],
"_coupons": [],
"metadata": [],
"quantity": 0,
"product_id": "string",
"price_id": "string",
"description": "string",
"product_description": "string",
"product_name": "string",
"price_mappings": [],
"is_tax_inclusive": true,
"_product": {},
"is_composite_price": true,
"item_components": [],
"selected_price_component_ids": ["string"],
"price_component_coupon_ids": {},
"_price": {}
}
],
"source_type": "journey",
"currency": "EUR",
"contact": "string",
"billing_first_name": "string",
"billing_last_name": "string",
"billing_company_name": "string",
"billing_vat": "string",
"billing_email": "string",
"billing_phone": "string",
"billing_address": [
{
"_tags": ["billing"],
"street": "string",
"street_number": "string",
"postal_code": "string",
"city": "string",
"country": "string",
"additional_info": "string",
"company_name": "string",
"first_name": "string",
"last_name": "string",
"salutation": "string",
"title": "string"
}
],
"delivery_address": [
{
"_tags": ["billing"],
"street": "string",
"street_number": "string",
"postal_code": "string",
"city": "string",
"country": "string",
"additional_info": "string",
"company_name": "string",
"first_name": "string",
"last_name": "string",
"salutation": "string",
"title": "string"
}
],
"payment_method": [
{
"type": "string",
"details": {}
}
],
"redeemed_promos": [
{
"code": "string",
"coupons": []
}
],
"_tags": ["string"]
}'
Using stdin pipe:
cat body.json | epilot pricing createOrder
With JSONata filter:
epilot pricing createOrder --jsonata 'order_number'
Sample Response
{
"order_number": "OR 2022/742701",
"status": "quote",
"source": {
"title": "manual",
"href": null
},
"source_type": "manual",
"_schema": "order",
"_title": "OR 2022/742701",
"expires_at": "2022-06-30T16:17:00.000Z",
"line_items": [
{
"price_id": "9c36c23b-1574-4193-beff-b1b5e1124bc7",
"product_id": "a7f4771a-6368-4d77-bb01-71f1e4902de5",
"pricing_model": "per_unit",
"is_composite_price": false,
"taxes": [],
"_price": {},
"_product": {},
"quantity": 16,
"currency": "EUR",
"description": "Solar Panel Module",
"unit_amount": 100000,
"unit_amount_net": 84034,
"amount_subtotal": 1344538,
"amount_total": 1600000
},
{
"price_id": "146aa2cc-f267-4d5e-bda4-cbe2669b7741",
"product_id": "a7f4771a-6368-4d77-bb01-71f1e4902de5",
"pricing_model": "per_unit",
"is_composite_price": false,
"taxes": [],
"_price": {},
"_product": {},
"quantity": 4,
"currency": "EUR",
"description": "Battery Module 500amps",
"unit_amount": 50000,
"unit_amount_net": 42017,
"amount_subtotal": 168067,
"amount_total": 200000
}
],
"amount_subtotal": 1532191,
"amount_total": 1821955,
"total_details": {
"amount_tax": 289764,
"breakdown": {
"taxes": [],
"recurrences": []
}
},
"currency": "EUR",
"payment_method": [
{
"type": "IBAN",
"details": {}
}
],
"billing_contact": {
"$relation": [
{}
]
},
"billing_first_name": "Joao",
"billing_last_name": "Pinho",
"billing_email": "j.pinho@epilot.cloud",
"billing_company_name": "epilot cloud",
"billing_address": [
{
"_tags": [],
"street": "Im Media Park",
"street_number": "8a",
"postal_code": "52000",
"city": "Cologne",
"country": "DE",
"additional_info": ""
}
],
"delivery_address": [],
"dates": [
{
"_tags": ["Instalation Date"],
"dates": "",
"value": "2022-06-30T16:29:00.000Z"
}
],
"_id": "4c7c9562-f8f0-4af0-a3a6-6aebc5571a6e",
"_org": "728",
"_created_at": "2022-06-03T16:29:46.303Z",
"_updated_at": "2022-06-03T16:29:46.303Z"
}
putOrderโ
Update an existing Order
PUT /v1/order/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string (uuid) | Yes | Order entity ID |
Request Body (required)
Sample Call
epilot pricing putOrder \
-p id=9d4602d3-03be-4d85-86b2-f3c6555fc606
With request body:
epilot pricing putOrder \
-p id=9d4602d3-03be-4d85-86b2-f3c6555fc606 \
-d '{
"status": "draft",
"line_items": [
{
"external_fees_mappings": [],
"external_fees_metadata": {},
"external_location_metadata": {},
"external_price_metadata": {},
"_immutable_pricing_details": {},
"coupon_ids": ["string"],
"taxes": [],
"recurrences": [],
"_coupons": [],
"metadata": [],
"quantity": 0,
"product_id": "string",
"price_id": "string",
"description": "string",
"product_description": "string",
"product_name": "string",
"price_mappings": [],
"is_tax_inclusive": true,
"_product": {},
"type": "one_time",
"billing_period": "weekly",
"unit_amount": 0,
"unit_amount_gross": 0,
"unit_amount_currency": "EUR",
"unit_amount_decimal": "string",
"is_composite_price": false,
"pricing_model": "per_unit",
"_price": {}
},
{
"external_fees_mappings": [],
"external_fees_metadata": {},
"external_location_metadata": {},
"external_price_metadata": {},
"_immutable_pricing_details": {},
"coupon_ids": ["string"],
"taxes": [],
"recurrences": [],
"_coupons": [],
"metadata": [],
"quantity": 0,
"product_id": "string",
"price_id": "string",
"description": "string",
"product_description": "string",
"product_name": "string",
"price_mappings": [],
"is_tax_inclusive": true,
"_product": {},
"is_composite_price": true,
"item_components": [],
"selected_price_component_ids": ["string"],
"price_component_coupon_ids": {},
"_price": {}
}
],
"source_type": "journey",
"currency": "EUR",
"contact": "string",
"billing_first_name": "string",
"billing_last_name": "string",
"billing_company_name": "string",
"billing_vat": "string",
"billing_email": "string",
"billing_phone": "string",
"billing_address": [
{
"_tags": ["billing"],
"street": "string",
"street_number": "string",
"postal_code": "string",
"city": "string",
"country": "string",
"additional_info": "string",
"company_name": "string",
"first_name": "string",
"last_name": "string",
"salutation": "string",
"title": "string"
}
],
"delivery_address": [
{
"_tags": ["billing"],
"street": "string",
"street_number": "string",
"postal_code": "string",
"city": "string",
"country": "string",
"additional_info": "string",
"company_name": "string",
"first_name": "string",
"last_name": "string",
"salutation": "string",
"title": "string"
}
],
"payment_method": [
{
"type": "string",
"details": {}
}
],
"redeemed_promos": [
{
"code": "string",
"coupons": []
}
],
"_tags": ["string"]
}'
Using positional args for path parameters:
epilot pricing putOrder 9d4602d3-03be-4d85-86b2-f3c6555fc606
Using stdin pipe:
cat body.json | epilot pricing putOrder -p id=9d4602d3-03be-4d85-86b2-f3c6555fc606
With JSONata filter:
epilot pricing putOrder -p id=9d4602d3-03be-4d85-86b2-f3c6555fc606 --jsonata 'order_number'
Sample Response
{
"order_number": "OR 2022/742701",
"status": "quote",
"source": {
"title": "manual",
"href": null
},
"source_type": "manual",
"_schema": "order",
"_title": "OR 2022/742701",
"expires_at": "2022-06-30T16:17:00.000Z",
"line_items": [
{
"price_id": "9c36c23b-1574-4193-beff-b1b5e1124bc7",
"product_id": "a7f4771a-6368-4d77-bb01-71f1e4902de5",
"pricing_model": "per_unit",
"is_composite_price": false,
"taxes": [],
"_price": {},
"_product": {},
"quantity": 16,
"currency": "EUR",
"description": "Solar Panel Module",
"unit_amount": 100000,
"unit_amount_net": 84034,
"amount_subtotal": 1344538,
"amount_total": 1600000
},
{
"price_id": "146aa2cc-f267-4d5e-bda4-cbe2669b7741",
"product_id": "a7f4771a-6368-4d77-bb01-71f1e4902de5",
"pricing_model": "per_unit",
"is_composite_price": false,
"taxes": [],
"_price": {},
"_product": {},
"quantity": 4,
"currency": "EUR",
"description": "Battery Module 500amps",
"unit_amount": 50000,
"unit_amount_net": 42017,
"amount_subtotal": 168067,
"amount_total": 200000
}
],
"amount_subtotal": 1532191,
"amount_total": 1821955,
"total_details": {
"amount_tax": 289764,
"breakdown": {
"taxes": [],
"recurrences": []
}
},
"currency": "EUR",
"payment_method": [
{
"type": "IBAN",
"details": {}
}
],
"billing_contact": {
"$relation": [
{}
]
},
"billing_first_name": "Joao",
"billing_last_name": "Pinho",
"billing_email": "j.pinho@epilot.cloud",
"billing_company_name": "epilot cloud",
"billing_address": [
{
"_tags": [],
"street": "Im Media Park",
"street_number": "8a",
"postal_code": "52000",
"city": "Cologne",
"country": "DE",
"additional_info": ""
}
],
"delivery_address": [],
"dates": [
{
"_tags": ["Instalation Date"],
"dates": "",
"value": "2022-06-30T16:29:00.000Z"
}
],
"_id": "4c7c9562-f8f0-4af0-a3a6-6aebc5571a6e",
"_org": "728",
"_created_at": "2022-06-03T16:29:46.303Z",
"_updated_at": "2022-06-03T16:29:46.303Z"
}
$checkoutCartโ
Checkouts a cart and executes the specified checkout mode process.
POST /v1/public/cart:checkout
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Ivy-Org-ID | header | string | Yes | The target Organization Id represented by the caller |
Request Body (required)
Sample Call
epilot pricing $checkoutCart \
-p X-Ivy-Org-ID=example
With request body:
epilot pricing $checkoutCart \
-p X-Ivy-Org-ID=example \
-d '{
"cart": "string",
"redeemed_promos": [
{
"code": "string",
"coupons": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"_schema": "coupon",
"_org": "org_12345",
"_created_at": "2024-01-15T10:00:00.000Z",
"_updated_at": "2024-01-20T12:00:00.000Z",
"_title": "Sample Coupon",
"name": "Sample Coupon",
"type": "fixed",
"fixed_value": 555,
"fixed_value_currency": "USD",
"fixed_value_decimal": "5.55",
"active": true,
"category": "cashback",
"prices": {
"$relation": [
{
"entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
"_tags": ["discount", "special"],
"_schema": "price"
}
]
}
}
]
}
],
"mode": "create_order"
}'
Using stdin pipe:
cat body.json | epilot pricing $checkoutCart -p X-Ivy-Org-ID=example
With JSONata filter:
epilot pricing $checkoutCart -p X-Ivy-Org-ID=example --jsonata 'order'
Sample Response
{
"order": {
"order_number": "OR 2022/742701",
"status": "quote",
"source": {
"title": "manual",
"href": null
},
"source_type": "manual",
"_schema": "order",
"_title": "OR 2022/742701",
"expires_at": "2022-06-30T16:17:00.000Z",
"line_items": [
{},
{}
],
"amount_subtotal": 1532191,
"amount_total": 1821955,
"total_details": {
"amount_tax": 289764,
"breakdown": {}
},
"currency": "EUR",
"payment_method": [
{}
],
"billing_contact": {
"$relation": []
},
"billing_first_name": "Joao",
"billing_last_name": "Pinho",
"billing_email": "j.pinho@epilot.cloud",
"billing_company_name": "epilot cloud",
"billing_address": [
{}
],
"delivery_address": [],
"dates": [
{}
],
"_id": "4c7c9562-f8f0-4af0-a3a6-6aebc5571a6e",
"_org": "728",
"_created_at": "2022-06-03T16:29:46.303Z",
"_updated_at": "2022-06-03T16:29:46.303Z"
}
}
$searchCatalogโ
Provides a querying functionalities over products and prices of the Catalog for a given organization.
POST /v1/public/catalog
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Ivy-Org-ID | header | string | No | The target Organization Id represented by the caller |
Authorization | header | string | No | The token identifying the client making the request |
Request Body (required)
Sample Call
epilot pricing $searchCatalog \
-d '{"q":"_id:1233432 OR _id:123432454 OR _id:23445433","sort":"description ASC","from":0,"size":200}'
Using stdin pipe:
cat body.json | epilot pricing $searchCatalog
With JSONata filter:
epilot pricing $searchCatalog --jsonata 'results[0]'
Sample Response
{
"hits": 2,
"results": [
{
"schema": "product",
"description": "product a"
},
{
"schema": "price",
"unit_amount_decimal": "124.342343434"
}
]
}
$privateSearchCatalogโ
Provides a querying functionalities over products and prices of the Catalog for a given organization.
POST /v1/catalog
Request Body (required)
Sample Call
epilot pricing $privateSearchCatalog \
-d '{"q":"_id:1233432 OR _id:123432454 OR _id:23445433","sort":"description ASC","from":0,"size":200}'
Using stdin pipe:
cat body.json | epilot pricing $privateSearchCatalog
With JSONata filter:
epilot pricing $privateSearchCatalog --jsonata 'results[0]'
Sample Response
{
"hits": 2,
"results": [
{
"schema": "product",
"description": "product a"
},
{
"schema": "price",
"unit_amount_decimal": "124.342343434"
}
]
}
$validatePromoCodesโ
Validate a list of promo codes against a list of coupons
POST /v1/public/validate-promo-codes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Ivy-Org-ID | header | string | Yes | The target Organization Id represented by the caller |
Request Body (required)
Sample Call
epilot pricing $validatePromoCodes \
-p X-Ivy-Org-ID=example \
-d '{}'
Using stdin pipe:
cat body.json | epilot pricing $validatePromoCodes -p X-Ivy-Org-ID=example
With JSONata filter:
epilot pricing $validatePromoCodes -p X-Ivy-Org-ID=example --jsonata 'matched_coupons'
Sample Response
{
"matched_coupons": [
{
"_id": "123e4567-e89b-12d3-a456-426614174000",
"_schema": "coupon",
"_org": "org_12345",
"_created_at": "2024-01-15T10:00:00.000Z",
"_updated_at": "2024-01-20T12:00:00.000Z",
"_title": "Sample Coupon",
"name": "Sample Coupon",
"type": "fixed",
"fixed_value": 555,
"fixed_value_currency": "USD",
"fixed_value_decimal": "5.55",
"active": true,
"category": "cashback",
"prices": {
"$relation": [
{
"entity_id": "abc12345-def6-7890-gh12-ijklmnopqrst",
"_tags": ["discount", "special"],
"_schema": "price"
}
]
}
}
]
}
$availabilityCheckโ
The availability check endpoint
POST /v1/public/availability:check
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Ivy-Org-ID | header | string | Yes | The target Organization Id represented by the caller |
Request Body (required)
Sample Call
epilot pricing $availabilityCheck \
-p X-Ivy-Org-ID=example
With request body:
epilot pricing $availabilityCheck \
-p X-Ivy-Org-ID=example \
-d '{
"products": ["string"],
"filters": {
"location": {
"street": "string",
"street_number": "string",
"postal_code": "string",
"city": "string",
"country": "string"
},
"available_date": "2017-07-21"
}
}'
Using stdin pipe:
cat body.json | epilot pricing $availabilityCheck -p X-Ivy-Org-ID=example
With JSONata filter:
epilot pricing $availabilityCheck -p X-Ivy-Org-ID=example --jsonata 'available_products'
Sample Response
{
"available_products": [],
"check_results": [
{
"product_id": "my-product-id-123-1",
"matching_hits": 0
},
{
"product_id": "my-product-id-123-2",
"matching_hits": 0
}
]
}
$validateAvailabilityFileโ
Validates an availability file, it returns an array of errors if the file is invalid
GET /v1/validate-availability/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Product ID that the Availability File is attached to |
X-Epilot-Org-ID | header | string | Yes | The target Organization Id represented by the caller |
Sample Call
epilot pricing $validateAvailabilityFile \
-p id=72c803b2-2e5d-4bd6-bffc-fad998bbbe36 \
-p X-Epilot-Org-ID=739224
Using positional args for path parameters:
epilot pricing $validateAvailabilityFile 72c803b2-2e5d-4bd6-bffc-fad998bbbe36
With JSONata filter:
epilot pricing $validateAvailabilityFile -p id=72c803b2-2e5d-4bd6-bffc-fad998bbbe36 -p X-Epilot-Org-ID=739224 --jsonata 'status'
Sample Response
{
"status": "success",
"rules_parsed_count": 10,
"errors": []
}
$historicMarketPricesโ
Get a series of historic energy prices for a given time period, market and bidding zone.
GET /v1/public/historicMarketPrices
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
market | query | "day_ahead" | Yes | Market to use. For now, only day ahead prices are supported. |
bidding_zone | query | "AT" | "DE-LU" | Yes | Bidding zone to use. For now, only AT and DE-LU are supported. |
frequency | query | "PT15M" | "PT1H" | "P1D" | "P1M" | Yes | Frequency of the price data points in ISO 8601 format. |
from | query | string | Yes | Start of price data in ISO 8601 format. |
If only a date is provided (YYYY-MM-DD) the timzone of the bidding zone is used.
|
| to | query | string | Yes | End of price data in ISO 8601 format.
If only a date is provided (YYYY-MM-DD) the timzone of the bidding zone is used.
|
Sample Call
epilot pricing $historicMarketPrices \
-p market=example \
-p bidding_zone=example \
-p frequency=example \
-p from=example \
-p to=example
With JSONata filter:
epilot pricing $historicMarketPrices -p market=example -p bidding_zone=example -p frequency=example -p from=example -p to=example --jsonata 'market'
Sample Response
{
"market": "day_ahead",
"bidding_zone": "AT",
"prices": [
{
"unit_amount": 12.3,
"unit_amount_decimal": "0.123",
"unit_amount_currency": "EUR",
"timestamp": "1970-01-01T00:00:00.000Z"
}
]
}
$averageMarketPriceโ
Get the average energy prices for a given time period, market and bidding zone.
GET /v1/public/averageMarketPrice
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
market | query | "day_ahead" | Yes | Market to use. For now, only day ahead prices are supported. |
bidding_zone | query | "AT" | "DE-LU" | Yes | Bidding zone to use. For now, only AT and DE-LU are supported. |
from | query | string | Yes | Start of price data in ISO 8601 format. |
If only a date is provided (YYYY-MM-DD) the timzone of the bidding zone is used.
|
| to | query | string | Yes | End of price data in ISO 8601 format.
If only a date is provided (YYYY-MM-DD) the timzone of the bidding zone is used.
|
Sample Call
epilot pricing $averageMarketPrice \
-p market=example \
-p bidding_zone=example \
-p from=example \
-p to=example
With JSONata filter:
epilot pricing $averageMarketPrice -p market=example -p bidding_zone=example -p from=example -p to=example --jsonata 'market'
Sample Response
{
"market": "day_ahead",
"bidding_zone": "AT",
"price": {
"unit_amount": 12.3,
"unit_amount_decimal": "0.123",
"unit_amount_currency": "EUR",
"timestamp": "2025-01-01T00:00:00Z/2025-01-31T23:59:59Z"
},
"_meta": {
"signature": "string",
"timestamp": 0
}
}
$searchExternalProductsโ
Returns the list of available products with computed prices based on a given context and for a given org integration.
POST /v1/public/integration/{integrationId}/products
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
integrationId | path | "getag" | "external-catalog" | Yes | The integration identifier |
Request Body (required)
Sample Call
epilot pricing $searchExternalProducts \
-p integrationId=external-catalog
With request body:
epilot pricing $searchExternalProducts \
-p integrationId=external-catalog \
-d '{
"context": {
"journey_id": "8d0a2235-97ce-42d0-88a3-e374634ca44e",
"entity_id": "8d0a2235-97ce-42d0-88a3-e374634ca44e",
"journey_name": "journey name",
"journey_tags": ["string"],
"journey_url_params": {},
"current_step_name": "step name",
"current_block_name": "block name",
"steps_data": [
{
"step_name": "string",
"step_index": 0,
"blocks": {
"Adresse": {
"countryCode": "DE",
"city": "Koblenz",
"zipCode": "56068",
"streetName": "Am Alten Hospital",
"houseNumber": "123"
}
}
}
]
}
}'
Using positional args for path parameters:
epilot pricing $searchExternalProducts external-catalog
Using stdin pipe:
cat body.json | epilot pricing $searchExternalProducts -p integrationId=external-catalog
With JSONata filter:
epilot pricing $searchExternalProducts -p integrationId=external-catalog --jsonata 'results[0]'
Sample Response
{
"hits": 0,
"results": [
{
"pricing_details": {},
"_meta": {}
}
]
}
$searchExternalProductRecommendationsโ
Returns the list of available product recommendations with computed prices based on a given context and for a given org
POST /v1/public/integration/{integrationId}/product-recommendations
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
integrationId | path | "getag" | "external-catalog" | Yes | The integration identifier |
Request Body (required)
Sample Call
epilot pricing $searchExternalProductRecommendations \
-p integrationId=external-catalog
With request body:
epilot pricing $searchExternalProductRecommendations \
-p integrationId=external-catalog \
-d '{
"context": {
"journey_id": "8d0a2235-97ce-42d0-88a3-e374634ca44e",
"entity_id": "8d0a2235-97ce-42d0-88a3-e374634ca44e",
"journey_name": "journey name",
"journey_tags": ["string"],
"journey_url_params": {},
"current_step_name": "step name",
"current_block_name": "block name",
"steps_data": [
{
"step_name": "string",
"step_index": 0,
"blocks": {
"Adresse": {
"countryCode": "DE",
"city": "Koblenz",
"zipCode": "56068",
"streetName": "Am Alten Hospital",
"houseNumber": "123"
}
}
}
]
}
}'
Using positional args for path parameters:
epilot pricing $searchExternalProductRecommendations external-catalog
Using stdin pipe:
cat body.json | epilot pricing $searchExternalProductRecommendations -p integrationId=external-catalog
With JSONata filter:
epilot pricing $searchExternalProductRecommendations -p integrationId=external-catalog --jsonata 'source'
Sample Response
{
"source": {
"pricing_details": {
"items": [],
"amount_subtotal": 0,
"amount_total": 0,
"unit_amount_gross": 0,
"unit_amount_net": 0,
"amount_tax": 0,
"total_details": {},
"currency": "EUR",
"redeemed_promos": []
},
"_meta": {
"signature": "string",
"timestamp": 0
}
},
"offers": [
{
"pricing_details": {},
"_meta": {}
}
]
}
$searchProvidersโ
Returns the list of providers available based on a given location
POST /v1/public/integration/{integrationId}/providers:search
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Epilot-Org-ID | header | string | Yes | The target Organization Id represented by the caller |
integrationId | path | "getag" | "external-catalog" | Yes | The integration identifier |
Request Body (required)
Sample Call
epilot pricing $searchProviders \
-p X-Epilot-Org-ID=739224 \
-p integrationId=getag \
-d '{"type":"power","postal_code":"string","city":"string","street":"string","street_number":"string"}'
Using positional args for path parameters:
epilot pricing $searchProviders getag
Using stdin pipe:
cat body.json | epilot pricing $searchProviders -p X-Epilot-Org-ID=739224 -p integrationId=getag
With JSONata filter:
epilot pricing $searchProviders -p X-Epilot-Org-ID=739224 -p integrationId=getag --jsonata '$'
Sample Response
[
{
"name": "string",
"code": "string",
"type": "gas",
"additionalData": {
"gridOperators": [
{
"name": "string",
"codeNumber": "string",
"validFrom": "1970-01-01",
"validUntil": "1970-01-01"
}
],
"defaultSuppliers": [
{
"name": "string",
"codeNumber": "string",
"validFrom": "1970-01-01",
"validUntil": "1970-01-01"
}
],
"marketAreaDetails": {
"gasType": "L-Gas",
"marketArea": "string",
"virtualTradingPoint": "string"
}
},
"_meta": {
"signature": "string",
"timestamp": 0
}
}
]
$searchStreetsโ
Returns the list of streets available for a given postal code and city
POST /v1/public/integration/{integrationId}/streets:search
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Epilot-Org-ID | header | string | Yes | The target Organization Id represented by the caller |
integrationId | path | "getag" | "external-catalog" | Yes | The integration identifier |
Request Body (required)
Sample Call
epilot pricing $searchStreets \
-p X-Epilot-Org-ID=739224 \
-p integrationId=getag \
-d '{"postal_code":"string","city":"string"}'
Using positional args for path parameters:
epilot pricing $searchStreets getag
Using stdin pipe:
cat body.json | epilot pricing $searchStreets -p X-Epilot-Org-ID=739224 -p integrationId=getag
With JSONata filter:
epilot pricing $searchStreets -p X-Epilot-Org-ID=739224 -p integrationId=getag --jsonata '$'
Sample Response
[
{
"street": "string"
}
]
$computePriceโ
Returns the price for a given product type based on location and consumption
POST /v1/public/integration/{integrationId}/compute-price
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Epilot-Org-ID | header | string | Yes | The target Organization Id represented by the caller |
integrationId | path | "getag" | "external-catalog" | Yes | The integration identifier |
Request Body
Sample Call
epilot pricing $computePrice \
-p X-Epilot-Org-ID=739224 \
-p integrationId=getag
With request body:
epilot pricing $computePrice \
-p X-Epilot-Org-ID=739224 \
-p integrationId=getag \
-d '{
"postal_code": "string",
"consumption_type": "household",
"consumption": 0,
"consumption_HT": 0,
"consumption_NT": 0,
"association_id": "string",
"billing_period": "monthly",
"reference_date": "1970-01-01",
"type": "power",
"meter_type": "classic"
}'
Using positional args for path parameters:
epilot pricing $computePrice getag
Using stdin pipe:
cat body.json | epilot pricing $computePrice -p X-Epilot-Org-ID=739224 -p integrationId=getag
With JSONata filter:
epilot pricing $computePrice -p X-Epilot-Org-ID=739224 -p integrationId=getag --jsonata 'amount_total'
Sample Response
{
"amount_total": 0,
"amount_total_decimal": "string",
"amount_static": 0,
"amount_static_decimal": {},
"amount_variable_ht": 0,
"amount_variable_decimal_ht": "string",
"unit_amount_variable_ht": 0,
"unit_amount_variable_decimal_ht": "string",
"amount_variable_nt": 0,
"amount_variable_decimal_nt": "string",
"unit_amount_variable_nt": 0,
"unit_amount_variable_decimal_nt": "string",
"currency": "EUR",
"billing_period": "weekly",
"breakdown": {
"static": {},
"variable": {},
"variable_ht": {},
"variable_nt": {}
},
"_meta": {
"signature": "string",
"timestamp": 0
}
}
$getCredentialsโ
Gets the credentials for a given integration / organization
GET /v1/integration/{integrationId}/credentials
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
integrationId | path | "getag" | "external-catalog" | Yes | The integration identifier |
Sample Call
epilot pricing $getCredentials \
-p integrationId=getag
Using positional args for path parameters:
epilot pricing $getCredentials getag
With JSONata filter:
epilot pricing $getCredentials -p integrationId=getag --jsonata '$'
Sample Response
{}
$saveCredentialsโ
Saves the credentials for a given integration / organization
PUT /v1/integration/{integrationId}/credentials:save
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
integrationId | path | "getag" | "external-catalog" | Yes | The integration identifier |
Request Body
Sample Call
epilot pricing $saveCredentials \
-p integrationId=getag \
-d '{}'
Using positional args for path parameters:
epilot pricing $saveCredentials getag
Using stdin pipe:
cat body.json | epilot pricing $saveCredentials -p integrationId=getag
With JSONata filter:
epilot pricing $saveCredentials -p integrationId=getag --jsonata '$'
$deleteCredentialsโ
Delete the credentials for a given integration / organization
DELETE /v1/integration/{integrationId}/credentials:delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
integrationId | path | "getag" | "external-catalog" | Yes | The integration identifier |
Sample Call
epilot pricing $deleteCredentials \
-p integrationId=getag
Using positional args for path parameters:
epilot pricing $deleteCredentials getag
With JSONata filter:
epilot pricing $deleteCredentials -p integrationId=getag --jsonata '$'
$getExternalCatalogProductsโ
Returns the list of available external catalog products with computed prices based on a given context
POST /v1/public/external-catalog/products
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
x-epilot-org-id | header | string | No | Organization ID (required when not using EpilotPublicAuth token) |
Request Body (required)
Sample Call
epilot pricing $getExternalCatalogProducts
With request body:
epilot pricing $getExternalCatalogProducts \
-d '{
"config": {
"appId": "1234567890",
"componentId": "1234567890",
"hookId": "1234567890"
},
"origin": "journey",
"context": {
"journey_id": "8d0a2235-97ce-42d0-88a3-e374634ca44e",
"entity_id": "9e1b3346-a8df-53e1-99b4-f485745db55f",
"journey_name": "Product Selection Journey",
"journey_tags": ["electricity", "residential"],
"journey_url_params": {
"utm_source": "google",
"utm_campaign": "spring2024"
},
"current_step_name": "Product Selection",
"current_block_name": "Energy Products",
"steps_data": [
{
"step_name": "Address Information",
"step_index": 0,
"blocks": {
"Adresse": {
"countryCode": "DE",
"city": "Koblenz",
"zipCode": "56068",
"streetName": "Am Alten Hospital",
"houseNumber": "123"
}
}
}
]
}
}'
Using stdin pipe:
cat body.json | epilot pricing $getExternalCatalogProducts
With JSONata filter:
epilot pricing $getExternalCatalogProducts --jsonata 'results[0]'
Sample Response
{
"hits": 0,
"results": [
{
"pricing_details": {},
"_meta": {}
}
]
}
$getExternalCatalogProductRecommendationsโ
Returns the list of available external catalog products recommendations based on a given context
POST /v1/public/external-catalog/product-recommendations
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
x-epilot-org-id | header | string | No | Organization ID (required when not using EpilotPublicAuth token) |
Request Body (required)
Sample Call
epilot pricing $getExternalCatalogProductRecommendations
With request body:
epilot pricing $getExternalCatalogProductRecommendations \
-d '{
"config": {
"appId": "1234567890",
"componentId": "1234567890",
"hookId": "1234567890"
},
"origin": "journey",
"context": {
"journey_id": "8d0a2235-97ce-42d0-88a3-e374634ca44e",
"entity_id": "9e1b3346-a8df-53e1-99b4-f485745db55f",
"journey_name": "Product Selection Journey",
"journey_tags": ["electricity", "residential"],
"journey_url_params": {
"utm_source": "google",
"utm_campaign": "spring2024"
},
"current_step_name": "Product Selection",
"current_block_name": "Energy Products",
"steps_data": [
{
"step_name": "Address Information",
"step_index": 0,
"blocks": {
"Adresse": {
"countryCode": "DE",
"city": "Koblenz",
"zipCode": "56068",
"streetName": "Am Alten Hospital",
"houseNumber": "123"
}
}
}
]
}
}'
Using stdin pipe:
cat body.json | epilot pricing $getExternalCatalogProductRecommendations
With JSONata filter:
epilot pricing $getExternalCatalogProductRecommendations --jsonata 'source'
Sample Response
{
"source": {
"pricing_details": {
"items": [],
"amount_subtotal": 0,
"amount_total": 0,
"unit_amount_gross": 0,
"unit_amount_net": 0,
"amount_tax": 0,
"total_details": {},
"currency": "EUR",
"redeemed_promos": []
},
"_meta": {
"signature": "string",
"timestamp": 0
}
},
"offers": [
{
"pricing_details": {},
"_meta": {}
}
]
}
$productRecommendationsโ
Get a list of product recommendations based on the search parameters.
POST /v1/public/product-recommendations
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-Ivy-Org-ID | header | string | No | The target Organization Id represented by the caller |
Request Body (required)
Sample Call
epilot pricing $productRecommendations
With request body:
epilot pricing $productRecommendations \
-d '{
"product_recommendation_ids": ["string"],
"catalog_item": {
"product_id": "string",
"price_id": "string"
},
"contract_id": "string",
"filters": {
"location": {
"street": "string",
"street_number": "string",
"postal_code": "string",
"city": "string",
"country": "string"
},
"available_date": "2017-07-21"
}
}'
Using stdin pipe:
cat body.json | epilot pricing $productRecommendations
With JSONata filter:
epilot pricing $productRecommendations --jsonata 'results[0]'
Sample Response
{
"hits": 0,
"results": [
{
"_id": "73f857a4-0fbc-4aa6-983f-87c0d6d410a6",
"_title": "Cool box",
"_org": "728",
"_schema": "order",
"_created_at": "2022-06-03T16:04:10.000Z",
"_updated_at": "2022-06-03T16:04:10.000Z",
"amount_subtotal": 10000,
"amount_total": 10600,
"currency": "EUR",
"description": "Annual internet service",
"price_id": "7e24ff5d-d580-4136-a32f-19191eed039a",
"product_id": "6241487f-b7fd-428b-ab92-24ee0b37fd84",
"taxes": [
{
"amount": 600,
"tax": {
"active": true,
"description": "Without Behaviour",
"rate": 6,
"region": "DE",
"type": "VAT",
"_created_at": "2022-02-07T14:49:08.831Z",
"_id": "18bbbc2e-2c37-4f91-924a-07ae60d830e4",
"_org": "739224",
"_schema": "tax",
"_title": "Tax Without Behaviour",
"_updated_at": "2022-02-07T14:49:08.831Z"
}
}
],
"unit_amount": 10000,
"unit_amount_net": 10000,
"pricing_model": "per_unit",
"_price": {
"_id": "7e24ff5d-d580-4136-a32f-19191eed039a",
"unit_amount": 10000,
"unit_amount_currency": "EUR",
"unit_amount_decimal": "100.00",
"sales_tax": "standard",
"is_tax_inclusive": false,
"price_display_in_journeys": "show_price",
"type": "one_time",
"billing_period": "weekly",
"billing_duration_unit": "months",
"notice_time_unit": "months",
"termination_time_unit": "months",
"renewal_duration_unit": "months",
"_schema": "price",
"_title": "Solar Panel Module",
"description": "Solar Panel Module",
"active": true,
"tax": {
"$relation": [
{
"entity_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc"
}
]
},
"_org": "728",
"_created_at": "2022-06-03T16:04:10.369Z",
"_updated_at": "2022-06-03T16:04:10.369Z",
"pricing_model": "per_unit"
},
"_product": {
"name": "Cool box",
"type": "product",
"_id": "73f857a4-0fbc-4aa6-983f-87c0d6d410a6",
"_title": "Cool box"
}
}
]
}
$getConditionSetsโ
Returns the condition sets built in for one conditional entity type: the situations a
GET /v1/conditional-pricing/{slug}/condition-sets
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type whose built-in condition sets to return |
Sample Call
epilot pricing $getConditionSets \
-p slug=price
Using positional args for path parameters:
epilot pricing $getConditionSets price
With JSONata filter:
epilot pricing $getConditionSets -p slug=price --jsonata 'results[0]'
Sample Response
{
"results": [
{
"id": "delivery_area",
"label": "Delivery Area",
"description": "string",
"conditions": [
{
"id": "d5839b94-ba20-4225-a78e-76951d352bd6",
"name": "postal_code",
"label": "Postal Code",
"type": "string",
"options": [
"private",
{
"value": "commercial",
"title": "Commercial customers"
}
],
"format": "zipcode"
}
]
}
]
}
$resolveConditionalEntityโ
Resolves which of a conditional entity's variants apply, and returns each one composed: the
POST /v1/conditional-pricing:resolve
Request Body (required)
Sample Call
epilot pricing $resolveConditionalEntity
With request body:
epilot pricing $resolveConditionalEntity \
-d '{
"schema": "product",
"entity_id": "price-sp26d1yo",
"context": {
"postal_code": "46045",
"consumption": {
"lt": 5000
}
},
"as_of": "2027-03-15T00:00:00Z",
"options": {
"resolve_one": false,
"hydrate": false
}
}'
Using stdin pipe:
cat body.json | epilot pricing $resolveConditionalEntity
With JSONata filter:
epilot pricing $resolveConditionalEntity --jsonata 'results[0]'
Sample Response
{
"results": [
{
"_id": "price-sp26d1yo",
"_variant_id": "var-46045",
"_version_valid_from": "2027-01-01T00:00:00.000Z",
"_conditions": {
"postal_code": "46045",
"default": false
},
"_inert_overrides": [
{
"attribute": "unit_amount",
"reason": "ATTRIBUTE_NOT_OVERRIDABLE"
}
]
}
]
}
$createConditionalVariantโ
Creates one variant of a conditional entity, together with the first version carrying its
POST /v1/conditional-pricing/{slug}/entities/{entity_id}/variants
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type this variant belongs to |
entity_id | path | string | Yes | The conditional entity to add a variant to |
Request Body (required)
Sample Call
epilot pricing $createConditionalVariant \
-p slug=price \
-p entity_id=price-sp26d1yo
With request body:
epilot pricing $createConditionalVariant \
-p slug=price \
-p entity_id=price-sp26d1yo \
-d '{
"conditions": {
"postal_code": "46045"
},
"default": false,
"valid_from": "2027-01-01T00:00:00Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
}
}'
Using positional args for path parameters:
epilot pricing $createConditionalVariant price price-sp26d1yo
Using stdin pipe:
cat body.json | epilot pricing $createConditionalVariant -p slug=price -p entity_id=price-sp26d1yo
With JSONata filter:
epilot pricing $createConditionalVariant -p slug=price -p entity_id=price-sp26d1yo --jsonata 'variant_id'
Sample Response
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
},
"valid_from": "2027-01-01T00:00:00.000Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_created_at": "string",
"_updated_at": "string",
"_revision": 0,
"warnings": [
{
"code": "VARIANT_COUNT_APPROACHING_CAP",
"message": "string",
"details": {
"variant_count": 0,
"cap": 0
}
}
]
}
$listConditionalVariantsโ
Lists a conditional entity's variants and the conditions each one pins โ the browse, filter
POST /v1/conditional-pricing/{slug}/entities/{entity_id}/variants:list
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type the variants belong to |
entity_id | path | string | Yes | The conditional entity whose variants to list |
Request Body (required)
Sample Call
epilot pricing $listConditionalVariants \
-p slug=price \
-p entity_id=price-sp26d1yo
With request body:
epilot pricing $listConditionalVariants \
-p slug=price \
-p entity_id=price-sp26d1yo \
-d '{
"conditions": {
"postal_code": "46045",
"consumption": {
"lt": 5000
}
},
"search": "460",
"sort": "conditions.postal_code:asc",
"from": 0,
"size": 10,
"cursor": "eyJmcm9tIjoyNSwibGlzdGluZyI6IjNmOWMxZTJhIn0"
}'
Using positional args for path parameters:
epilot pricing $listConditionalVariants price price-sp26d1yo
Using stdin pipe:
cat body.json | epilot pricing $listConditionalVariants -p slug=price -p entity_id=price-sp26d1yo
With JSONata filter:
epilot pricing $listConditionalVariants -p slug=price -p entity_id=price-sp26d1yo --jsonata 'results[0]'
Sample Response
{
"hits": 8128,
"results": [
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
}
}
],
"next": "eyJmcm9tIjoyNSwibGlzdGluZyI6IjNmOWMxZTJhIn0"
}
$getConditionalVariantTreeโ
The variants list, each row carrying the version in effect at as_of โ the Entity UI's main
POST /v1/conditional-pricing/{slug}/entities/{entity_id}/variants:tree
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type the variants belong to |
entity_id | path | string | Yes | The conditional entity whose variants to list |
Request Body (required)
Sample Call
epilot pricing $getConditionalVariantTree \
-p slug=price \
-p entity_id=price-sp26d1yo
With request body:
epilot pricing $getConditionalVariantTree \
-p slug=price \
-p entity_id=price-sp26d1yo \
-d '{
"conditions": {
"postal_code": "46045",
"consumption": {
"lt": 5000
}
},
"search": "460",
"sort": "conditions.postal_code:asc",
"from": 0,
"size": 10,
"cursor": "eyJmcm9tIjoyNSwibGlzdGluZyI6IjNmOWMxZTJhIn0",
"as_of": "2027-03-15T00:00:00Z"
}'
Using positional args for path parameters:
epilot pricing $getConditionalVariantTree price price-sp26d1yo
Using stdin pipe:
cat body.json | epilot pricing $getConditionalVariantTree -p slug=price -p entity_id=price-sp26d1yo
With JSONata filter:
epilot pricing $getConditionalVariantTree -p slug=price -p entity_id=price-sp26d1yo --jsonata 'results[0]'
Sample Response
{
"hits": 8128,
"results": [
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
},
"status": "active",
"version": {
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
},
"valid_from": "2027-01-01T00:00:00.000Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_created_at": "string",
"_updated_at": "string"
}
}
],
"next": "eyJmcm9tIjoyNSwibGlzdGluZyI6IjNmOWMxZTJhIn0"
}
$getActiveConditionalVariantVersionโ
Returns the version of this variant that is currently in effect โ the one with the latest
GET /v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type this variant belongs to |
entity_id | path | string | Yes | The conditional entity the variant belongs to |
variant_id | path | string | Yes | The variant whose timeline this call addresses |
Sample Call
epilot pricing $getActiveConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045
Using positional args for path parameters:
epilot pricing $getActiveConditionalVariantVersion price price-sp26d1yo var-46045
With JSONata filter:
epilot pricing $getActiveConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 --jsonata 'variant_id'
Sample Response
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
},
"valid_from": "2027-01-01T00:00:00.000Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_created_at": "string",
"_updated_at": "string",
"_revision": 3
}
$replaceActiveConditionalVariantVersionโ
Replaces the values of the version currently in effect, wholesale.
PUT /v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type this variant belongs to |
entity_id | path | string | Yes | The conditional entity the variant belongs to |
variant_id | path | string | Yes | The variant whose timeline this call addresses |
Request Body (required)
Sample Call
epilot pricing $replaceActiveConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045
With request body:
epilot pricing $replaceActiveConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045 \
-d '{
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_revision": 3,
"valid_from": "string",
"conditions": {
"postal_code": "46045"
}
}'
Using positional args for path parameters:
epilot pricing $replaceActiveConditionalVariantVersion price price-sp26d1yo var-46045
Using stdin pipe:
cat body.json | epilot pricing $replaceActiveConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045
With JSONata filter:
epilot pricing $replaceActiveConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 --jsonata '$'
Sample Response
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
},
"valid_from": "2027-01-01T00:00:00.000Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_created_at": "string",
"_updated_at": "string",
"_revision": 3,
"warnings": [
{
"code": "VARIANT_COUNT_APPROACHING_CAP",
"message": "string",
"details": {
"variant_count": 0,
"cap": 0
}
}
]
}
$patchActiveConditionalVariantVersionโ
Changes only the fields it names on the version currently in effect.
PATCH /v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type this variant belongs to |
entity_id | path | string | Yes | The conditional entity the variant belongs to |
variant_id | path | string | Yes | The variant whose timeline this call addresses |
Request Body (required)
Sample Call
epilot pricing $patchActiveConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045
With request body:
epilot pricing $patchActiveConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045 \
-d '{
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_revision": 3,
"valid_from": "string",
"conditions": {
"postal_code": "46045"
}
}'
Using positional args for path parameters:
epilot pricing $patchActiveConditionalVariantVersion price price-sp26d1yo var-46045
Using stdin pipe:
cat body.json | epilot pricing $patchActiveConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045
With JSONata filter:
epilot pricing $patchActiveConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 --jsonata '$'
Sample Response
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
},
"valid_from": "2027-01-01T00:00:00.000Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_created_at": "string",
"_updated_at": "string",
"_revision": 3,
"warnings": [
{
"code": "VARIANT_COUNT_APPROACHING_CAP",
"message": "string",
"details": {
"variant_count": 0,
"cap": 0
}
}
]
}
$deleteConditionalVariantโ
Removes one variant of a conditional entity: the condition tuple it holds, its registration
DELETE /v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type this variant belongs to |
entity_id | path | string | Yes | The conditional entity the variant belongs to |
variant_id | path | string | Yes | The variant to remove |
Sample Call
epilot pricing $deleteConditionalVariant \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045
Using positional args for path parameters:
epilot pricing $deleteConditionalVariant price price-sp26d1yo var-46045
With JSONata filter:
epilot pricing $deleteConditionalVariant -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 --jsonata 'variant_id'
Sample Response
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"tuple_released": true,
"versions_deleted": 0
}
$listConditionalVariantVersionsโ
Lists one variant's versions โ its whole timeline, oldest first, which is what expanding a row
GET /v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type this variant belongs to |
entity_id | path | string | Yes | The conditional entity the variant belongs to |
variant_id | path | string | Yes | The variant whose timeline to list |
limit | query | number | No | Versions per page. Defaults to 100, which is also the maximum; a larger value is clamped |
silently. A variant's timeline is usually short enough to fit one page.
|
| order | query | "asc" | "desc" | No | Which end of the timeline to read from: asc oldest first, desc newest first. Defaults
to asc.
Baked into every cursor this read issues: a cursor resumes one direction, and replaying it
against |
| cursor | query | string | No | Continue from a previous response's next. Opaque: it encodes the position and the order
it was issued for, and nothing a client should read or construct.
|
Sample Call
epilot pricing $listConditionalVariantVersions \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045
Using positional args for path parameters:
epilot pricing $listConditionalVariantVersions price price-sp26d1yo var-46045
With JSONata filter:
epilot pricing $listConditionalVariantVersions -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 --jsonata 'results[0]'
Sample Response
{
"results": [
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
},
"valid_from": "2027-01-01T00:00:00.000Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_created_at": "string",
"_updated_at": "string"
}
],
"next": "eyJzayI6IlYjcHJpY2Utc3AyNmQxeW8jdmFyLTQ2MDQ1IzIwMjYtMDEtMDFUMDA6MDA6MDAuMDAwWiIsIm9yZGVyIjoiYXNjIn0"
}
$appendConditionalVariantVersionโ
Appends a version to a variant: a new set of values taking effect at its own instant.
POST /v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type this variant belongs to |
entity_id | path | string | Yes | The conditional entity the variant belongs to |
variant_id | path | string | Yes | The variant whose timeline this call addresses |
Request Body (required)
Sample Call
epilot pricing $appendConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045
With request body:
epilot pricing $appendConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045 \
-d '{
"valid_from": "2027-01-01T00:00:00Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"conditions": {
"postal_code": "46045"
}
}'
Using positional args for path parameters:
epilot pricing $appendConditionalVariantVersion price price-sp26d1yo var-46045
Using stdin pipe:
cat body.json | epilot pricing $appendConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045
With JSONata filter:
epilot pricing $appendConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 --jsonata '$'
Sample Response
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
},
"valid_from": "2027-01-01T00:00:00.000Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_created_at": "string",
"_updated_at": "string",
"_revision": 3,
"warnings": [
{
"code": "VARIANT_COUNT_APPROACHING_CAP",
"message": "string",
"details": {
"variant_count": 0,
"cap": 0
}
}
]
}
$getConditionalVariantVersionโ
Returns one specific version of a variant, by the instant it takes effect โ what a form editing
GET /v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions/{valid_from}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type this variant belongs to |
entity_id | path | string | Yes | The conditional entity the variant belongs to |
variant_id | path | string | Yes | The variant whose timeline this call addresses |
valid_from | path | string | Yes | The version to address, by the instant it takes effect. |
An RFC 3339 date (2026-01-01, read as midnight UTC) or date-time
(2026-01-01T00:00:00Z), to at most millisecond precision. Written any acce |
Sample Call
epilot pricing $getConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045 \
-p valid_from=2027-01-01T00:00:00.000Z
Using positional args for path parameters:
epilot pricing $getConditionalVariantVersion price price-sp26d1yo var-46045 2027-01-01T00:00:00.000Z
With JSONata filter:
epilot pricing $getConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 -p valid_from=2027-01-01T00:00:00.000Z --jsonata 'variant_id'
Sample Response
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
},
"valid_from": "2027-01-01T00:00:00.000Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_created_at": "string",
"_updated_at": "string",
"_revision": 3
}
$replaceConditionalVariantVersionโ
Replaces one version's values wholesale, addressed by its valid_from.
PUT /v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions/{valid_from}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type this variant belongs to |
entity_id | path | string | Yes | The conditional entity the variant belongs to |
variant_id | path | string | Yes | The variant whose timeline this call addresses |
valid_from | path | string | Yes | The version to address, by the instant it takes effect. |
An RFC 3339 date (2026-01-01, read as midnight UTC) or date-time
(2026-01-01T00:00:00Z), to at most millisecond precision. Written any acce |
Request Body (required)
Sample Call
epilot pricing $replaceConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045 \
-p valid_from=2027-01-01T00:00:00.000Z
With request body:
epilot pricing $replaceConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045 \
-p valid_from=2027-01-01T00:00:00.000Z \
-d '{
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_revision": 3,
"valid_from": "string",
"conditions": {
"postal_code": "46045"
}
}'
Using positional args for path parameters:
epilot pricing $replaceConditionalVariantVersion price price-sp26d1yo var-46045 2027-01-01T00:00:00.000Z
Using stdin pipe:
cat body.json | epilot pricing $replaceConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 -p valid_from=2027-01-01T00:00:00.000Z
With JSONata filter:
epilot pricing $replaceConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 -p valid_from=2027-01-01T00:00:00.000Z --jsonata '$'
Sample Response
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
},
"valid_from": "2027-01-01T00:00:00.000Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_created_at": "string",
"_updated_at": "string",
"_revision": 3,
"warnings": [
{
"code": "VARIANT_COUNT_APPROACHING_CAP",
"message": "string",
"details": {
"variant_count": 0,
"cap": 0
}
}
]
}
$patchConditionalVariantVersionโ
Changes only the fields it names on one version, addressed by its valid_from.
PATCH /v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions/{valid_from}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type this variant belongs to |
entity_id | path | string | Yes | The conditional entity the variant belongs to |
variant_id | path | string | Yes | The variant whose timeline this call addresses |
valid_from | path | string | Yes | The version to address, by the instant it takes effect. |
An RFC 3339 date (2026-01-01, read as midnight UTC) or date-time
(2026-01-01T00:00:00Z), to at most millisecond precision. Written any acce |
Request Body (required)
Sample Call
epilot pricing $patchConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045 \
-p valid_from=2027-01-01T00:00:00.000Z
With request body:
epilot pricing $patchConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045 \
-p valid_from=2027-01-01T00:00:00.000Z \
-d '{
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_revision": 3,
"valid_from": "string",
"conditions": {
"postal_code": "46045"
}
}'
Using positional args for path parameters:
epilot pricing $patchConditionalVariantVersion price price-sp26d1yo var-46045 2027-01-01T00:00:00.000Z
Using stdin pipe:
cat body.json | epilot pricing $patchConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 -p valid_from=2027-01-01T00:00:00.000Z
With JSONata filter:
epilot pricing $patchConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 -p valid_from=2027-01-01T00:00:00.000Z --jsonata '$'
Sample Response
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"conditions": {
"postal_code": "46045",
"default": false
},
"valid_from": "2027-01-01T00:00:00.000Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
},
"_created_at": "string",
"_updated_at": "string",
"_revision": 3,
"warnings": [
{
"code": "VARIANT_COUNT_APPROACHING_CAP",
"message": "string",
"details": {
"variant_count": 0,
"cap": 0
}
}
]
}
$deleteConditionalVariantVersionโ
Removes one version of a variant.
DELETE /v1/conditional-pricing/{slug}/entities/{entity_id}/variants/{variant_id}/versions/{valid_from}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type this variant belongs to |
entity_id | path | string | Yes | The conditional entity the variant belongs to |
variant_id | path | string | Yes | The variant whose timeline this call addresses |
valid_from | path | string | Yes | The version to address, by the instant it takes effect. |
An RFC 3339 date (2026-01-01, read as midnight UTC) or date-time
(2026-01-01T00:00:00Z), to at most millisecond precision. Written any acce |
| _revision | query | number | Yes | The revision marker read from the version being deleted. The delete is refused if the
version has been written since.
The same marker the write bodies carry as _revision.
|
Sample Call
epilot pricing $deleteConditionalVariantVersion \
-p slug=price \
-p entity_id=price-sp26d1yo \
-p variant_id=var-46045 \
-p valid_from=2027-01-01T00:00:00.000Z \
-p _revision=3
Using positional args for path parameters:
epilot pricing $deleteConditionalVariantVersion price price-sp26d1yo var-46045 2027-01-01T00:00:00.000Z
With JSONata filter:
epilot pricing $deleteConditionalVariantVersion -p slug=price -p entity_id=price-sp26d1yo -p variant_id=var-46045 -p valid_from=2027-01-01T00:00:00.000Z -p _revision=3 --jsonata 'variant_id'
Sample Response
{
"variant_id": "var-46045",
"entity_id": "price-sp26d1yo",
"schema": "product",
"valid_from": "2027-01-01T00:00:00.000Z",
"warnings": [
{
"code": "VARIANT_COUNT_APPROACHING_CAP",
"message": "string",
"details": {
"variant_count": 0,
"cap": 0
}
}
]
}
$batchUpsertConditionalVariantsโ
Writes up to 100 variants or versions in one call โ the endpoint a bulk importer drives a
POST /v1/conditional-pricing/{slug}/variants:batchUpsert
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type every item in this call writes under |
Request Body (required)
Sample Call
epilot pricing $batchUpsertConditionalVariants \
-p slug=price
With request body:
epilot pricing $batchUpsertConditionalVariants \
-p slug=price \
-d '{
"correlation_id": "tariff-refresh-2027-01",
"items": [
{
"entity_id": "price-sp26d1yo",
"conditions": {
"postal_code": "46045"
},
"default": false,
"valid_from": "2027-01-01T00:00:00Z",
"values": {
"unit_amount": 2499,
"unit_amount_decimal": "24.99"
}
}
]
}'
Using positional args for path parameters:
epilot pricing $batchUpsertConditionalVariants price
Using stdin pipe:
cat body.json | epilot pricing $batchUpsertConditionalVariants -p slug=price
With JSONata filter:
epilot pricing $batchUpsertConditionalVariants -p slug=price --jsonata 'results[0]'
Sample Response
{
"correlation_id": "tariff-refresh-2027-01",
"counts": {
"variant_created": 1,
"version_created": 1,
"updated": 1,
"skipped": 1,
"error": 1
},
"results": [
{
"outcome": "variant_created",
"entity_id": "price-sp26d1yo",
"variant_id": "var-46045",
"valid_from": "2027-01-01T00:00:00.000Z",
"warnings": [
{
"code": "VARIANT_COUNT_APPROACHING_CAP",
"message": "string",
"details": {
"variant_count": 0,
"cap": 0
}
}
],
"error": {
"code": "SCHEMA_NOT_FOUND",
"details": {
"schema": "price"
}
}
}
]
}
$batchDeleteConditionalVariantsโ
Removes up to 100 variants or versions in one call โ the symmetric bulk withdrawal, so
POST /v1/conditional-pricing/{slug}/variants:batchDelete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
slug | path | "product" | "price" | "coupon" | Yes | The conditional entity type every item in this call removes from |
Request Body (required)
Sample Call
epilot pricing $batchDeleteConditionalVariants \
-p slug=price
With request body:
epilot pricing $batchDeleteConditionalVariants \
-p slug=price \
-d '{
"correlation_id": "postal-code-cleanup-2026-09",
"items": [
{
"entity_id": "price-sp26d1yo",
"variant_id": "var-46045",
"valid_from": "2027-01-01T00:00:00Z"
}
]
}'
Using positional args for path parameters:
epilot pricing $batchDeleteConditionalVariants price
Using stdin pipe:
cat body.json | epilot pricing $batchDeleteConditionalVariants -p slug=price
With JSONata filter:
epilot pricing $batchDeleteConditionalVariants -p slug=price --jsonata 'results[0]'
Sample Response
{
"correlation_id": "postal-code-cleanup-2026-09",
"counts": {
"deleted": 1,
"skipped": 1,
"error": 1
},
"results": [
{
"outcome": "deleted",
"entity_id": "price-sp26d1yo",
"variant_id": "var-46045",
"valid_from": "2027-01-01T00:00:00.000Z",
"warnings": [
{
"code": "VARIANT_COUNT_APPROACHING_CAP",
"message": "string",
"details": {
"variant_count": 0,
"cap": 0
}
}
],
"error": {
"code": "SCHEMA_NOT_FOUND",
"details": {
"schema": "price"
}
}
}
]
}