InputPOST /api/v1/x402/loyalty-reward-quote
{
"purchase_amount": 49.99,
"currency": "USD",
"points_per_unit": 2,
"tier_multiplier": 1.5,
"bonus_points": 10,
"event_id": "order-123"
}
Web and API intelligence · commerce
Calculate points, reward value, effective rebate, and a ledger-ready credit instruction for loyalty workflows (x402)
One-command purchase
No account or API key. AgentCash reads the 402 challenge, pays no more than the declared cap, retries the request and returns the result.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/loyalty-reward-quote -m POST -H 'x-delx-source: product-page' --max-amount 0.001 -b '{"purchase_amount":49.99,"currency":"USD","points_per_unit":2,"tier_multiplier":1.5,"bonus_points":10,"event_id":"order-123"}'
{
"purchase_amount": 49.99,
"currency": "USD",
"points_per_unit": 2,
"tier_multiplier": 1.5,
"bonus_points": 10,
"event_id": "order-123"
}
{
"tool_name": "util_loyalty_reward_quote",
"result": {
"purchase_amount": "49.99",
"currency": "USD",
"base_points": 99,
"total_points": 158,
"estimated_reward_value": "1.580000",
"effective_rebate_pct": "3.16",
"stores_customer_state": false,
"ledger_instruction": {
"event_id": "order-123",
"operation": "credit",
"amount": 158,
"unit": "points",
"idempotency_required": true
}
}
}
Machine-readable evidence