logoAccess

Verify payment

POST
/api/v1/verifications/

Creates a payment verification. By default, verification is processed synchronously and the completed verification result is returned in the response. The mode field can be set to 'sync' or 'async'. Asynchronous verification is currently under development and is not available for public use.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Request Body

  1. body
psp*string
Value in"CBE""Awash""Mpesa""Dashen""CBEBirr""Siinqee""Telebirr""Abyssinia""EbirrKaafi""EbirrCoopay""Wegagen""AmharaBank""Zemen"
mode*string
Value in"sync""async"
amount*number

Expected transaction amount in minor units (santim). 1 ETB = 100 santim

tx_ref?string

Transaction reference number from the payment receipt

Length1 <= length
sender_account?string

Sender's bank account number. Required for Abyssinia transactions.

Length1 <= length
receipt_image_url?string

Publicly accessible URL of the payment receipt image to verify against

Formaturi

Response Body

Response for status 200

application/json
  1. response
id*string
psp*string
mode*string
tx_ref*string
verified*boolean
rejection_reason*string|null
match*
transaction*
curl -X POST 'https://api.tryaccess.xyz/api/v1/verifications/' \  -H 'x-api-key: string' \  -H 'Content-Type: application/json' \  -d '{  "psp": "CBE",  "mode": "sync",  "amount": 9900}'
{  "id": "string",  "psp": "string",  "mode": "string",  "tx_ref": "string",  "verified": true,  "rejection_reason": "string",  "match": {    "is_match": true,    "name_match": true,    "amount_match": true,    "account_match": true,    "status_match": true,    "confidence": "high",    "reasons": [      "string"    ]  },  "transaction": {    "vat": 0,    "date": "string",    "total": 0,    "sender": {      "name": "string",      "account": "string"    },    "amount": 0,    "date_utc": "string",    "currency": "ETB",    "receiver": {      "name": "string",      "account": "string"    },    "reference": "string",    "service_fee": 0,    "amount_in_words": "string"  }}

How is this guide?