Skip to main content
POST
/
v1
/
pub
/
Product
/
pointslist
Returns a estimated value of points and cashback from a given list of products.
curl --request POST \
  --url https://api.bonifiq.com.br/v1/pub/Product/pointslist \
  --header 'Content-Type: application/json' \
  --header 'X-BQ-ApiToken: <api-key>' \
  --data '
[
  {
    "Id": "<string>",
    "Price": 10.5,
    "PriceCurrency": "<string>",
    "Name": "<string>"
  }
]
'
[
  {
    "Id": "<string>",
    "Points": 123,
    "Cashback": 123
  }
]

Authorizations

X-BQ-ApiToken
string
header
required

API Tokeen

Body

application/json

Products

Id
string
required

Product Id on the ecommerce platform

Minimum string length: 1
Price
number<decimal>
required

Current product selling price

Example:

10.5

PriceCurrency
string | null

Optional: the currency used in the pricing (eg: BRL)

Name
string | null

Name of the product which price is being calculated

Response

200 - application/json
Id
string

Product Id

Points
integer<int32>

Amount of points this product will give.

Cashback
number<decimal> | null

The amount of cashback that will be received from purchasing this product. It will be null if the cashback is not available.