Skip to main content
Card statements show SQ *BLUE BOTTLE COFFE OAKLAND CA, and your users want to see Blue Bottle Coffee with its logo. /transaction reads the line, and the logo CDN draws the logo for free. Cost: 3 credits per new line, and 1 for a line seen in the last 7 days. Statements repeat the same merchants every month, so most lines soon cost 1, or nothing if you store the result.

1. Look up each descriptor

Pass mcc too if your card data has the merchant category code. It helps with ambiguous lines.

2. Turn the result into a row

Not every line is a purchase. kind tells you what it is, so label it honestly:
logo_url already carries your publishable logo token, so it’s safe in the browser:
Logo requests cost no credits. They count against your plan’s monthly logo quota, and browsers cache each logo for a day.

4. Store what you learn

Key your stored result on the descriptor, country and MCC. Let users correct a merchant, and keep their correction when you look the line up again later.

Prompt for your coding agent