Verify payment
POST
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.
apiKeyHeaderheader
x-api-key<token>API key for authentication. Generate from the dashboard or via POST /v1/api-keys.
x-api-key*stringAPI key for authentication
Length
1 <= length- body
psp*stringValue in
"CBE""Awash""Mpesa""Dashen""CBEBirr""Siinqee""Telebirr""Abyssinia""EbirrKaafi""EbirrCoopay""Wegagen""AmharaBank""Zemen"mode*stringValue in
"sync""async"amount*numberExpected transaction amount in minor units (santim). 1 ETB = 100 santim
tx_ref?stringTransaction reference number from the payment receipt
Length
1 <= lengthsender_account?stringSender's bank account number. Required for Abyssinia transactions.
Length
1 <= lengthreceipt_image_url?stringPublicly accessible URL of the payment receipt image to verify against
Format
uriResponse for status 200
application/json- response
id*stringpsp*stringmode*stringtx_ref*stringverified*booleanrejection_reason*string|nullmatch*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?