---
title: "Merchant Best Card"
method: POST
path: "/api/v1/intelligence/merchant/best-card"
tags: ["Intelligence"]
---

# Merchant Best Card

`POST /api/v1/intelligence/merchant/best-card`

## Request

- Base URL: `https://kokofinance.net` (the document declares no server; this is the origin it was published from)
- URL: `https://kokofinance.net/api/v1/intelligence/merchant/best-card`
- Auth: API key in header `X-API-Key`

Find the best card from your portfolio for a purchase at a specific merchant.

Resolves the merchant to a spending category, then ranks your cards by
reward value. Deterministic for known merchants; uses Gemini fallback
for unknown merchants.

## Headers

- `authorization` string, nullable

## Request body

- WhichCardAtMerchantRequest: Request for POST /api/v1/intelligence/merchant/best-card
  - `merchant` string, required: Merchant name (e.g. 'Starbucks', 'Saks Fifth Avenue')
  - `amount` number: Purchase amount in dollars
  - `portfolio` string[], required: List of card names in user's portfolio

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kokofinance/apis/koko-finance-api.md) · [All operations](https://skmtc.dev/kokofinance/apis/koko-finance-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kokofinance/apis/koko-finance-api/revisions/a5f1170af4d4?raw)
