Verify a customer's bank transfer from your own website. Create an API key in your dashboard (API keys), keep it on your server, and call these endpoints. Everything goes through PAYKOHFI, so there is nothing else to set up.
Base address: https://paykohfi.com/api/v1
Send the key in every request: Authorization: Bearer pk_live_xxxxxxxx. Call from your backend, never from a customer's browser. Limit: 120 requests per minute per key. Bodies are JSON.
Looks for a matching incoming transfer. Send any of reference, amount, date, sender (at least one).
| Field | Notes |
|---|---|
reference | The bank reference on the slip. Minimum 3 characters. |
amount | Exact to the cent: 150, "150.00", "MVR 1,250.50". |
date | 2026-11-22 or 22/11/2026. Matches the booking or value date ±1 day. |
sender | The payer's name as on the slip (word order does not matter). |
orderId | Your own order or invoice id. Needed to claim. |
claim | true = mark a safe match as used by orderId in the same call, so it can never be accepted twice. |
match | "all" (default, every field must match) or "any". |
curl -X POST https://paykohfi.com/api/v1/check \
-H "Authorization: Bearer pk_live_xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"reference":"FT26326AAAA","amount":150,"orderId":"ORDER-1002","claim":true}'
{ "status": "found", "confidence": "high", "claimed": true, "matchedFields": ["reference","amount"],
"transaction": { "transactionId": "tx_3f9a…", "amount": 150, "sender": "IBFT Ahmed Ali", "reference": "FT26326AAAA", "bookingDate": "2026-11-22" },
"stale": false }
{ "status": "not_found", "stale": false }
{ "status": "already_used", "transaction": { "claimedBy": "ORDER-1001" } }
claimed: true: mark your order paid.claimSkipped explains why): the match is weak or ambiguous. Send only the details you have (for example amount and sender); every detail you send must match.ambiguous: true: several unused payments match equally (for example two payments of the same amount from the same sender). Nothing is claimed. Show the customer the candidates (each has reference, bookingDate and receivedAt), ask for the reference or date, or let them pick one and call /claim with that transactionId.similarUsed: a payment with the same details was already used by these order ids. Without a reference this may be the same slip shown twice, so check before accepting.stale: true: the bank data is not up to date yet. Try again in a minute. Do not treat it as "not paid".confidence is high (reference matched, or 3+ fields), medium (2 fields) or low (1 field). Only safe matches are claimed automatically.
Mark one transaction as used, for example after a manual review. Body: {"transactionId":"tx_…","orderId":"ORDER-1002"}. Answers claimed or HTTP 409 already_used.
Lists received payments, newest first. Query: claimed (true/false), q (search), since (ISO time), account, limit (default 1000), offset.
Is the bank connection alive? Returns online, lastSync, stale, totalTransactions.
{ "error": { "code": "subscription_expired", "message": "The PAYKOHFI subscription of this account is not active." } }
| HTTP | code | Meaning |
|---|---|---|
| 400 | bad_request, order_required | Missing or invalid input |
| 401 | unauthorized | Missing, wrong or revoked key |
| 402 | subscription_expired | The account's subscription is not active |
| 403 | plan_no_api, account_suspended | Plan has no API, or the account is suspended |
| 409 | bank_not_connected, already_used | The bank connection is not active yet (contact support), or the transfer was used already |
| 429 | limit_reached, rate_limited | Monthly plan limit reached, or too many requests |
| 502 | service_unavailable | The bank data is temporarily unavailable. Retry in a minute; contact support if it continues |
$ch = curl_init('https://paykohfi.com/api/v1/check');
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . $apiKey, 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode(['reference' => $ref, 'amount' => $amount, 'orderId' => $orderId, 'claim' => true])]);
$r = json_decode(curl_exec($ch), true);
if (($r['status'] ?? '') === 'found' && !empty($r['claimed'])) { /* mark order paid */ }
const r = await fetch('https://paykohfi.com/api/v1/check', {
method: 'POST',
headers: { Authorization: 'Bearer ' + process.env.PAYKOHFI_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({ reference, amount, orderId, claim: true }),
});
const data = await r.json();
if (data.status === 'found' && data.claimed) { /* mark order paid */ }