---
title: "Calculate campaign item price"
method: POST
path: "/campaigns/{campaign_id}/calculate_price"
tags: ["Campaigns"]
---

# Calculate campaign item price

`POST /campaigns/{campaign_id}/calculate_price`

## Request body

- object
  - `offer_id` string, required — Offer ID to calculate price on.
  - `item_id` string — Item ID to be used with the Offer ID. Required for dynamic offers.
  - `order_offer_item_options` object[] — When an Item has options, or variants, determine which options should be applied. Each option will have a subset option value. Example: size is an option, Small - Medium - Large is the option value. Required for items that have options.
    - `item_option_id` integer, required — The option to be applied to the item.
    - `item_option_value_id` integer, required — The value to be used for the item option ID passed.
  - `order_offer_quantity` integer — The quantity of the offer to calculate the price.
  - `discount_code` string — Discount code to apply to the offer.

## Response `200`

OK

- object
  - `offer_id` integer
  - `offer_name` string
  - `offer_image` string, nullable
  - `item_id` integer, nullable
  - `item_name` string, nullable
  - `items_option_variation_name` string, nullable
  - `order_offer_quantity` integer
  - `offer_price` string
  - `subtotal` string
  - `total` string
  - `discount_label` string, nullable
  - `restricted_quantities` object[]
    - `quantity` integer
    - `label` string

## Other responses

- `400` — Error response
- `401` — Unauthorized response
- `403` — Forbidden response
- `500` — Error response

---

[API](https://skmtc.net/vrio/apis/crm-configuration.md) · [All operations](https://skmtc.net/vrio/apis/crm-configuration/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vrio/crm-configuration/revisions/62037010356e/schema)
