Skip to main content
POST
/
v1
/
pvt
/
Product
/
points
Returns a estimated value of points give from a list of products.
curl --request POST \
  --url https://api.bonifiq.com.br/v1/pvt/Product/points \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "Id": "<string>",
    "Price": 10.5,
    "PriceCurrency": "<string>",
    "Name": "<string>"
  }
]
'
{
  "HasError": true,
  "ErrorMessages": [
    "<string>"
  ],
  "ErrorMessage": "<string>",
  "ErrorDescriptions": [
    {
      "Description": 0,
      "Field": "<string>",
      "FieldText": "<string>"
    }
  ],
  "Result": [
    {
      "Id": "<string>",
      "Points": 123,
      "Cashback": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Use API Basic Auth Keys

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
HasError
boolean
ErrorMessages
string[]
ErrorMessage
string
ErrorDescriptions
object[]
Result
object[] | null