API reference · Points
Is buying points worth it?
POST
/v1/points/buy-calculatorScope: pointsTest mode: real data
Tells you whether buying points at a sale price beats paying cash for the redemption you have in mind.
- URL
- https://api.pointifytravels.com/v1/points/buy-calculator
- Access
- A key with the
pointsscope (Points). New keys have it. - Test keys
- Real data. It costs nothing to serve, so test keys get the live answer. Free, up to 60 requests a minute. Test mode
- Live keys
- Each successful call counts toward your daily quota. Limits
Parameters
Body parameters
Sent as a JSON object with Content-Type: application/json.
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
buy_rate_cents | body | number | Required | - | Price per point in cents, e.g. 1.5. |
redemption_cpp | body | number | Required | - | Expected value per point in cents. |
Request example
Request
curl -X POST "https://api.pointifytravels.com/v1/points/buy-calculator" \
-H "Authorization: Bearer $POINTIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"buy_rate_cents":1.5,"redemption_cpp":2.1}'Response
200 OK with a JSON body. Examples are shortened; lists usually hold more items.
application/json
{
"worth_it": true,
"multiplier": 1.4,
"buy_rate_cents": 1.5,
"redemption_cpp": 2.1
}Errors use the shape in Errors. Invalid input returns 422 with a list of problems.
Try it
Try it
Use a test key. A live key uses your daily quota.No key yet? Create a test key in the dashboard. Test keys are free on every plan.
Path and query values go in the URL; everything else is sent as the JSON body.
POST
https://api.pointifytravels.com/v1/points/buy-calculator