Chapa
Payments

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.global

Authentication

Headers

NameRequiredDescription
AuthorizationYesBearer token containing your private key (Bearer <PRIVATE_KEY>)
Content-TypeNoNot needed for this GET request

Example:

Authorization: Bearer CHAPA_TEST_xxxxxxxxxxxxx
Content-Type: application/json

Path Parameter

NameTypeRequiredDescription
paymentReferencestringYesChapa reference or your merchant reference

Example Request

Example Request

For cURL, set PRIVATE_KEY in your shell. Replace the placeholders in the JavaScript example before running it.

cURL
curl -X GET 'https://api.chapa.global/v2/payments/CH0Vn2VASWCi/verify' \
  -H "Authorization: Bearer $PRIVATE_KEY"
JavaScript
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

Example Response
200 Success
{
  "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"
  }
}
400 Error
{
  "status": "error",
  "message": "Customer not found",
  "error": {
    "code": "NOT_FOUND",
    "details": null
  }
}
401 Error
{
  "status": "error",
  "message": "Invalid API key or User does not exist",
  "error": {
    "code": "UNAUTHORIZED",
    "details": null
  }
}
403 Error
{
  "status": "error",
  "message": "API key environment does not match business environment.",
  "error": {
    "code": "INVALID_VALUE",
    "details": null
  }
}
404 Error
{
  "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:

ContextCompletion check
Payment verification responsedata.status === "SUCCESS"
Payment webhookwebhook_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

FieldTypeDescription
statusstringOperation result: success or error
messagestringHuman-readable summary
dataobjectPayment details

Payment Object (data)

FieldTypeDescription
chapa_referencestringChapa payment reference
merchant_referencestringYour merchant-generated reference (if provided)
amountnumberPayment amount in cents
currencystringISO currency code (USD, UGX, ETB, DJF)
statusstringPayment status (e.g., SUCCESS, PENDING, FAILED, CANCELLED, INCOMPLETE)
processor_referencestringProvider transaction reference
payment_methodstringPayment method used (e.g., telebirr, card)
service_feenumberFee charged by Chapa in cents (if applicable)
customerobjectCustomer details
created_atstringISO8601 creation time
updated_atstringISO8601 last update time

How to Use Verification in Your App

Typical Flow

  1. Initialize payment → get checkout URL
  2. Customer completes checkout
  3. Your backend calls /verify
  4. 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

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_reference
  • merchant_reference
  • amount, currency
  • payment_method
  • service_fee
  • created_at, updated_at
  • customer (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

HTTPError CodeMeaning
400MISSING_REQUIRED_FIELDReference is missing
404NOT_FOUNDPayment not found
500PROCESSING_FAILEDSystem 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:

CheckDescription
data.status === "SUCCESS"Payment completed successfully
Amount matchesMatches your expected order total
Currency matchesMatches what you initialized
merchant_reference matchesMatches your order/payment attempt
Not already processedUse idempotency on your side

Never deliver goods or services until all verification checks pass on your server.

Next Steps

On this page