Call it
curl https://api.peume.com/v1/call/identify-transaction \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"transaction_info": "your transaction info"
}
}'const res = await fetch("https://api.peume.com/v1/call/identify-transaction", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"transaction_info": "your transaction info"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/identify-transaction",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"transaction_info": "your transaction info"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: identify-transaction.
Parameters
transaction_infoRequiredstringThe raw transaction descriptor to identify, e.g. 'SQ *COFFEE BAR 4157...' or 'AMZN Mktp US*2K4TZ'.
citystringCity to prioritize when searching for the merchant.
mccstringMerchant Category Code from the transaction, used to narrow the business category.
phonestringPhone number from the transaction, used to verify the match.
high_confidence_onlybooleanRun an extra verification pass and only return a match is confident about. Default false.
country_glstringTwo-letter ISO 3166-1 alpha-2 country code (e.g. 'us', 'gb', 'de'). Must be one of supported countries.
force_languagestringForce the language of the returned brand copy (a language NAME, e.g. 'english', 'french', 'japanese').
maxSpeedbooleanOptimize for speed: skips time-consuming enrichment for a faster response at the cost of less comprehensive data. Default false.
timeoutMSintegerUpstream deadline in milliseconds (1000-110000). stops the call when it passes; the cap leaves the run time to return the answer within the endpoint's budget.
