Verify Payments
Confirm the final status of a transaction before fulfilling orders or delivering goods.
Payment verification is how you confirm the final status of a transaction after a customer attempts to pay.
You should verify a payment when:
- The customer returns from checkout (redirect or inline completion)
- You receive a payment webhook and need to confirm the current payment state
- You must confirm payment status before delivering goods/services
Best practice: Always verify payments server-side before fulfilling an order. Redirects and frontend callbacks are not a reliable source of truth.
Endpoint
GET /v2/payments/{paymentReference}/verify
Host: api.chapa.globalAuthentication
Headers
| Name | Required | Description |
|---|---|---|
Authorization | Yes | Bearer token containing your private key (Bearer <PRIVATE_KEY>) |
Content-Type | No | Not needed for this GET request |
Example:
Authorization: Bearer CHAPA_TEST_xxxxxxxxxxxxx
Content-Type: application/jsonPath Parameter
| Name | Type | Required | Description |
|---|---|---|---|
paymentReference | string | Yes | Chapa reference or your merchant reference |
Example Request
For cURL, set PRIVATE_KEY in your shell. Replace the placeholders in the JavaScript example before running it.
curl -X GET 'https://api.chapa.global/v2/payments/CH0Vn2VASWCi/verify' \
-H "Authorization: Bearer $PRIVATE_KEY"const response = await fetch("https://api.chapa.global/v2/payments/CH0Vn2VASWCi/verify", {
method: "GET",
headers: {
"Authorization": "Bearer <PRIVATE_KEY>"
},
});
const data = await response.json();
console.log(data);Example Response
{
"status": "success",
"message": "Payment verification result",
"data": {
"chapa_reference": "CH0Vn2VASWCi",
"merchant_reference": "ref-1759656600",
"amount": 10000,
"currency": "ETB",
"status": "SUCCESS",
"payment_method": "telebirr",
"processor_reference": "TB123456789",
"service_fee": 300,
"customer": {
"first_name": "Abebe",
"last_name": "Kebede",
"email": "abebe.kebede@example.com",
"phone_number": "251911000000"
},
"created_at": "2026-10-05T09:30:00Z",
"updated_at": "2026-10-05T09:30:00Z"
}
}{
"status": "error",
"message": "Customer not found",
"error": {
"code": "NOT_FOUND",
"details": null
}
}{
"status": "error",
"message": "Invalid API key or User does not exist",
"error": {
"code": "UNAUTHORIZED",
"details": null
}
}{
"status": "error",
"message": "API key environment does not match business environment.",
"error": {
"code": "INVALID_VALUE",
"details": null
}
}{
"status": "error",
"message": "Payment not found",
"error": {
"code": "NOT_FOUND",
"details": null
}
}Verification response and webhook status
The verification API and webhook notifications use different payload shapes:
| Context | Completion check |
|---|---|
| Payment verification response | data.status === "SUCCESS" |
| Payment webhook | webhook_type === "payment", event === "payment.success", and top-level status === "success" |
The verification response's top-level status: "success" describes the API operation. The payment webhook's top-level status: "success" describes the payment event. A webhook has no verification-response data wrapper. See Payment Webhooks for the complete notification examples and signature-verification requirements.
In some older examples, merchant_referece appears misspelled. Your integration should expect and store merchant_reference consistently.
Response Fields
Top-Level Fields
| Field | Type | Description |
|---|---|---|
status | string | Operation result: success or error |
message | string | Human-readable summary |
data | object | Payment details |
Payment Object (data)
| Field | Type | Description |
|---|---|---|
chapa_reference | string | Chapa payment reference |
merchant_reference | string | Your merchant-generated reference (if provided) |
amount | number | Payment amount in cents |
currency | string | ISO currency code (USD, UGX, ETB, DJF) |
status | string | Payment status (e.g., SUCCESS, PENDING, FAILED, CANCELLED, INCOMPLETE) |
processor_reference | string | Provider transaction reference |
payment_method | string | Payment method used (e.g., telebirr, card) |
service_fee | number | Fee charged by Chapa in cents (if applicable) |
customer | object | Customer details |
created_at | string | ISO8601 creation time |
updated_at | string | ISO8601 last update time |
How to Use Verification in Your App
Typical Flow
- Initialize payment → get checkout URL
- Customer completes checkout
- Your backend calls
/verify - Handle the response:
- If
data.status == "SUCCESS"→ fulfill order / grant access - If
data.status == "PENDING"→ wait for webhook or retry verification - If
data.status == "FAILED" | "CANCELLED" | "INCOMPLETE" | "BLOCKED"→ show error, allow retry if applicable
- If
Recommended Verification Rules
Treat a payment as successful only when:
data.status == "SUCCESS"- Amount and currency match what you expected
- The payment belongs to your merchant account
Store these for reconciliation:
chapa_referencemerchant_referenceamount,currencypayment_methodservice_feecreated_at,updated_atcustomer(if available)
If you receive a webhook event:
- Use it as a real-time signal to update state
- Verify the current payment state server-side before fulfilling an order
Common Errors
| HTTP | Error Code | Meaning |
|---|---|---|
| 400 | MISSING_REQUIRED_FIELD | Reference is missing |
| 404 | NOT_FOUND | Payment not found |
| 500 | PROCESSING_FAILED | System issue fetching payment |
Failed Response
If the reference is invalid or the payment cannot be found:
The failed response example is included in the tabs above.
Recommended handling:
- Confirm you're verifying with the correct reference (Chapa reference or your merchant reference)
- Ensure you're using the correct environment keys (test key for test payments, live key for live payments)
- If you just created the payment, retry verification after a short delay (your system should be resilient to temporary states)
Verification Checklist
Before you mark an order as paid, confirm all of the following on your server:
| Check | Description |
|---|---|
data.status === "SUCCESS" | Payment completed successfully |
| Amount matches | Matches your expected order total |
| Currency matches | Matches what you initialized |
merchant_reference matches | Matches your order/payment attempt |
| Not already processed | Use idempotency on your side |
Never deliver goods or services until all verification checks pass on your server.
Next Steps
- Hosted Checkout - Full hosted payment integration
- Payment Webhooks - Real-time payment notifications
- Quick Start - End-to-end payment flow