Calculate initial price for an offer

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

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

Request body

offerIdstring required

The identifier for Cleeng offer.

customerIdinteger required

The identifier of Cleeng customer.

paymentMethodIdinteger required

The identifier of the payment method, provided by Cleeng.

customerIpstring

IP address of customer current location. Required conditionally when currency or country not supplied.

currencystring

Customer currency (e.g. USD)

countrystring

2-letter country code. It is the country code of the country where purchase is made.

couponCodestring

Coupon code.

taxRatestring

Optional override for tax rate.

buyAsAGiftboolean

Whether an order refers to gift purchase. Default value: false.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.