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.
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
| Field | Type | Required | Description |
|---|---|---|---|
psp | string | Yes | Payment service provider. See Supported PSPs |
amount | number | Yes | Expected amount in minor units (santim). 1 ETB = 100 santim |
tx_ref | string | No | Transaction reference from the receipt |
sender_account | string | No | Sender's bank account number. Required for Abyssinia transactions, optional for Wegagen |
receipt_image_url | string | No | Publicly 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.
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
| Value | Provider |
|---|---|
CBE | Commercial Bank of Ethiopia |
Awash | Awash Bank |
Dashen | Dashen Bank |
Telebirr | Telebirr |
Abyssinia | Bank of Abyssinia |
Mpesa | M-Pesa |
CBEBirr | CBEBirr |
Siinqee | Siinqee Bank |
Wegagen | Wegagen Bank |
AmharaBank | Amhara Bank |
Zemen | Zemen Bank |
EbirrKaafi | Kaafi ebirr |
EbirrCoopay | COOPay ebirr |
Match Object
The match object describes how the extracted transaction compares to your merchant account:
| Field | Type | Description |
|---|---|---|
is_match | boolean | Overall match result |
name_match | boolean | Receiver name matched |
amount_match | boolean | null | Amount matched the expected value |
account_match | boolean | Receiver account matched |
status_match | boolean | null | Transaction status was successful |
confidence | "high" | "low" | Confidence level of the extraction |
reasons | string[] | Reasons for rejection or low confidence |
Error Responses
| Status | Type | Description |
|---|---|---|
400 | invalid_request_error | Missing or invalid parameters |
401 | authentication_error | Invalid or missing API key |
422 | verification_error | Receipt could not be processed or tx_ref not found |
500 | api_error | Internal server error |
502 | upstream_error | Bank unreachable |
Next Steps
- Create a checkout session to collect payments
- Set up webhooks to receive payment notifications
- Manage customers and track their transactions
How is this guide?