logoAccess

Quickstart

Verify your first payment with the Access API in under 5 minutes.

This guide walks through verifying a payment using the Access API.

Prerequisites

  • An Access account with a merchant created
  • An API key (see Authentication)
  • A transaction reference or receipt image from a supported payment provider

Verify a Payment

POST /api/v1/verify verifies a payment synchronously. It fetches the receipt directly from the bank, extracts the transaction, and matches it against your merchant account. The result is returned immediately.

Verify a payment
curl -X POST https://api.tryaccess.xyz/api/v1/verify \
  -H "Content-Type: application/json" \
  -H "x-api-key: sk_..." \
  -d '{
    "psp": "Telebirr",
    "amount": 9900,
    "tx_ref": "FT250123456789"
  }'

Response:

{
  "id": "tran_01HXYZ...",
  "psp": "Telebirr",
  "tx_ref": "FT250123456789",
  "verified": true,
  "rejection_reason": null,
  "match": {
    "is_match": true,
    "name_match": true,
    "amount_match": true,
    "account_match": true,
    "status_match": true,
    "confidence": "high",
    "reasons": []
  },
  "transaction": {
    "reference": "FT250123456789",
    "date": "2025-01-15",
    "date_utc": "2025-01-15T07:00:00.000Z",
    "sender": { "name": "Abebe Kebede", "account": "0912345678" },
    "receiver": { "name": "My Business", "account": "1000123456789" },
    "amount": 9900,
    "currency": "ETB",
    "service_fee": 0,
    "vat": 0,
    "total": 9900,
    "amount_in_words": "Ninety-nine birr"
  }
}

Request Fields

FieldTypeRequiredDescription
pspstringYesPayment service provider. See Supported PSPs
amountnumberYesExpected amount in minor units (santim). 1 ETB = 100 santim
tx_refstringNoTransaction reference from the receipt
sender_accountstringNoSender's bank account number. Required for Abyssinia transactions, optional for Wegagen
receipt_image_urlstringNoPublicly accessible URL of the receipt image for AI-based extraction

You must provide at least one of tx_ref or receipt_image_url.

Receipt-Based Verification

If you don't have a transaction reference, provide a receipt screenshot URL. Access uses AI to extract the transaction details from the image.

Verify with receipt image
curl -X POST https://api.tryaccess.xyz/api/v1/verify \
  -H "Content-Type: application/json" \
  -H "x-api-key: sk_..." \
  -d '{
    "psp": "CBE",
    "amount": 15000,
    "receipt_image_url": "https://storage.example.com/receipts/receipt-abc123.jpg"
  }'

Supported PSPs

ValueProvider
CBECommercial Bank of Ethiopia
AwashAwash Bank
DashenDashen Bank
TelebirrTelebirr
AbyssiniaBank of Abyssinia
MpesaM-Pesa
CBEBirrCBEBirr
SiinqeeSiinqee Bank
WegagenWegagen Bank
AmharaBankAmhara Bank
ZemenZemen Bank
EbirrKaafiKaafi ebirr
EbirrCoopayCOOPay ebirr

Match Object

The match object describes how the extracted transaction compares to your merchant account:

FieldTypeDescription
is_matchbooleanOverall match result
name_matchbooleanReceiver name matched
amount_matchboolean | nullAmount matched the expected value
account_matchbooleanReceiver account matched
status_matchboolean | nullTransaction status was successful
confidence"high" | "low"Confidence level of the extraction
reasonsstring[]Reasons for rejection or low confidence

Error Responses

StatusTypeDescription
400invalid_request_errorMissing or invalid parameters
401authentication_errorInvalid or missing API key
422verification_errorReceipt could not be processed or tx_ref not found
500api_errorInternal server error
502upstream_errorBank unreachable

Next Steps

How is this guide?