Skip to main content
POST
Estimates points, cashback earned and cashback usage limits per product.

Authorizations

X-BQ-ApiToken
string
header
required

API Tokeen

Body

application/json

Array of products with external Id and Price; Name and PriceCurrency are optional.

Id
string
required

Product Id on the ecommerce platform

Minimum string length: 1
Example:

"SKU-001"

Price
number<decimal>
required

Current product selling price

Example:

499.99

PriceCurrency
string | null

Optional currency label (for example, BRL). It does not select a currency or perform conversion; the calculation uses Price as supplied.

Example:

"BRL"

Name
string | null

Optional product name. It does not affect product lookup, earning rules or cashback restrictions.

Example:

"Running shoes"

Response

200 - application/json

Product estimates in the same order as the request.

Id
string

External product identifier, returned exactly as supplied in the request.

Example:

"SKU-001"

Points
integer<int32>

Estimated earned points after applicable bonuses, limits and zero-point rules. This is a product estimate, not a guarantee of points granted for a completed order.

Example:

499

Cashback
number<decimal> | null

Estimated cashback earned from the simulated points, truncated to whole currency units. Null when cashback is unavailable; zero is a valid estimate and differs from null.

Example:

4

CashbackPercent
number<decimal> | null

The cashback percentage calculated from the final simulated points and product price, including bonuses and limits, rounded up to a whole percentage before monetary truncation. It will be null if cashback is unavailable or the product price is not positive.

Example:

1

CanUseCashback
boolean | null

Whether cashback can be used on this product, considering product restrictions only, not the customer's balance. False for restricted products, true for eligible products (including unknown products or disabled restrictions), and null when cashback is inactive.

Example:

true

CanUseCashbackPercent
number<decimal> | null

Maximum percentage of this product's price payable with cashback, assuming sufficient balance. Includes product restrictions, the configured percentage limit and monetary cap, before redemption rounding. Null without active cashback or for a nonpositive price; zero for a restricted product.

Example:

20