Generate your API keys from your profile page to get started.
/api/v1/calculate-rewardBase URL: https://www.thecardcaddie.com
Include your API key in the Authorization header as a Bearer token:
cardrequiredstringName of the credit card in your wallet (e.g., "Chase Sapphire Preferred")
merchantrequiredstringMerchant domain or name (e.g., "Starbucks", "Amazon.com")
amountrequirednumberTransaction amount in dollars (e.g., 25.00)
categoryoptionalstringTransaction category if known (e.g., "Dining", "Travel", "Groceries"). If provided, uses category-based lookup instead of domain lookup.
curl -X POST https://www.thecardcaddie.com/api/v1/calculate-reward \
-H "Authorization: Bearer cc_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"card": "Chase Sapphire Preferred",
"merchant": "Starbucks",
"amount": 25.00
}'successBoolean indicating if the request was successful
reward.valueReward value in dollars (e.g., 0.75 for 75 cents)
reward.rateReward rate as percentage string (e.g., "3%")
reward.categoryTransaction category (e.g., "Dining", "Travel")
reward.categorySourceHow category was determined: "provided", "domain_lookup", "domain_specific", or "default"
{
"success": true,
"reward": {
"value": 0.75,
"rate": "3%",
"category": "Dining",
"cardName": "Chase Sapphire Preferred",
"merchant": "Starbucks",
"amount": 25.00,
"categorySource": "domain_lookup"
}
}API requests are limited to:
100 requests per day
Rate limit headers are included in responses:
Bad Request
Invalid or missing parameters
Unauthorized
Missing or invalid API key
Not Found
Card not found in your wallet or no active cards
Too Many Requests
Rate limit exceeded
Internal Server Error
Server-side error
Automatically invest credit card rewards into ETFs and stocks
Show users their actual rewards earned per transaction
Aggregate and visualize total rewards across all cards
Suggest which card to use for maximum rewards