API reference · Points
Pay with cash or points?
POST
/v1/points/optimizeScope: pointsTest mode: real data
Ranks each points option against the cash price by effective cents per point, including transfers from the bank balances you send, and marks the best choice.
- URL
- https://api.pointifytravels.com/v1/points/optimize
- 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 |
|---|---|---|---|---|---|
cash_price | body | number | Required | - | Cash price in USD. |
points_options | body | array of { program, points_required } | Required | - | Points prices to compare. program is the name as transfer partners list it, e.g. "Aeroplan". |
user_balances | body | array of { program, balance } | Optional | [] | Bank balances the traveler holds, by bank code, e.g. { "program": "amex_mr", "balance": 120000 }. |
Request example
Request
curl -X POST "https://api.pointifytravels.com/v1/points/optimize" \
-H "Authorization: Bearer $POINTIFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"cash_price":1284.4,"points_options":[{"program":"Aeroplan","points_required":75000}],"user_balances":[{"program":"amex_mr","balance":120000}]}'Response
200 OK with a JSON body. Examples are shortened; lists usually hold more items.
application/json
{
"options": [
{
"method": "points_direct",
"program_name": "Aeroplan",
"points_required": 75000,
"effective_cpp": 1.71,
"total_cost": 0,
"savings": 1284.4,
"recommendation": "best"
},
{
"method": "points_transfer",
"program_name": "Aeroplan",
"points_required": 75000,
"transfer_from": "amex_mr",
"transfer_ratio": 1,
"effective_cpp": 1.71,
"total_cost": 0,
"savings": 1284.4,
"recommendation": "best",
"has_enough_points": true
},
{
"method": "cash",
"total_cost": 1284.4,
"savings": 0,
"recommendation": "fair"
}
]
}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/optimize