Dashboard

PAYKOHFI API

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.

Basics

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.

POST /check

Looks for a matching incoming transfer. Send any of reference, amount, date, sender (at least one).

FieldNotes
referenceThe bank reference on the slip. Minimum 3 characters.
amountExact to the cent: 150, "150.00", "MVR 1,250.50".
date2026-11-22 or 22/11/2026. Matches the booking or value date ±1 day.
senderThe payer's name as on the slip (word order does not matter).
orderIdYour own order or invoice id. Needed to claim.
claimtrue = 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}'

Answers

{ "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" } }

confidence is high (reference matched, or 3+ fields), medium (2 fields) or low (1 field). Only safe matches are claimed automatically.

POST /claim

Mark one transaction as used, for example after a manual review. Body: {"transactionId":"tx_…","orderId":"ORDER-1002"}. Answers claimed or HTTP 409 already_used.

GET /transactions

Lists received payments, newest first. Query: claimed (true/false), q (search), since (ISO time), account, limit (default 1000), offset.

GET /status

Is the bank connection alive? Returns online, lastSync, stale, totalTransactions.

Errors

{ "error": { "code": "subscription_expired", "message": "The PAYKOHFI subscription of this account is not active." } }
HTTPcodeMeaning
400bad_request, order_requiredMissing or invalid input
401unauthorizedMissing, wrong or revoked key
402subscription_expiredThe account's subscription is not active
403plan_no_api, account_suspendedPlan has no API, or the account is suspended
409bank_not_connected, already_usedThe bank connection is not active yet (contact support), or the transfer was used already
429limit_reached, rate_limitedMonthly plan limit reached, or too many requests
502service_unavailableThe bank data is temporarily unavailable. Retry in a minute; contact support if it continues

Examples

PHP

$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 */ }

JavaScript (Node)

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 */ }