---
title: "Calculate initial price for an offer"
method: POST
path: "/price_calculation/initial"
---

# Calculate initial price for an offer

`POST /price_calculation/initial`

## Request

- Base URL: `https://api.sandbox.cleeng.com/3.1`
- URL: `https://api.sandbox.cleeng.com/3.1/price_calculation/initial`
- Auth: API key in header `X-Publisher-Token`

Use this endpoint to calculate the price breakdown for a customer purchasing an offer, including taxes, discounts, and payment method fees.

## Request body

- object
  - `offerId` string, required: The identifier for Cleeng offer.
  - `customerId` integer, required: The identifier of Cleeng customer.
  - `paymentMethodId` integer, required: The identifier of the payment method, provided by Cleeng.
  - `customerIp` string: IP address of customer current location. Required conditionally when currency or country not supplied.
  - `currency` string: Customer currency (e.g. USD)
  - `country` string: 2-letter country code. It is the country code of the country where purchase is made.
  - `couponCode` string: Coupon code.
  - `taxRate` string: Optional override for tax rate.
  - `buyAsAGift` boolean: Whether an order refers to gift purchase. Default value: `false`.

## Response `200`

OK

## Other responses

- `404`: Not Found

---

[API](https://skmtc.dev/cleeng/apis/api-31.md) - [All operations](https://skmtc.dev/cleeng/apis/api-31/llms.txt) - [OpenAPI document](https://skmtc.dev/cleeng/apis/api-31/revisions/df55396cda4f?raw)
