Payments
Validate Direct Charge
Poll a USSD charge or submit an OTP for a pending direct charge.
Validate a charge initialized through /v2/payments/direct. For USSD methods, poll this endpoint after the customer responds to the prompt. For OTP methods, submit the OTP.
Endpoint
POST /v2/payments/direct/validate
Host: api.chapa.global
Authorization: Bearer <PRIVATE_KEY>
Content-Type: application/jsonThis endpoint is not idempotency-cached. There is no /v2/payments/{reference}/authorize endpoint in the production collection.
Request
| Field | Required | Description |
|---|---|---|
reference | Yes | chapa_reference returned by charge initialization |
payment_method | Yes | The method used to initialize the charge |
otp | No | OTP for methods that require it |
Use reference, payment_method, and optionally otp. auth_type and auth_value are not validation request fields. Never regenerate the reference being validated.
Example Request
For cURL, set PRIVATE_KEY in your shell. Replace the placeholders in the JavaScript example before running it.
JSON
{
"reference": "CH0Vn2VASWCi",
"payment_method": "telebirr",
"otp": "123456"
}cURL
curl -X POST 'https://api.chapa.global/v2/payments/direct/validate' \
-H "Authorization: Bearer $PRIVATE_KEY" \
-H "Content-Type: application/json" \
-d '{
"reference": "CH0Vn2VASWCi",
"payment_method": "telebirr",
"otp": "123456"
}'JavaScript
const response = await fetch("https://api.chapa.global/v2/payments/direct/validate", {
method: "POST",
headers: {
"Authorization": "Bearer <PRIVATE_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
"reference": "CH0Vn2VASWCi",
"payment_method": "telebirr",
"otp": "123456"
})
});
const data = await response.json();
console.log(data);Example Response
200 Success
{
"status": "success",
"message": "Inline charge validation result",
"data": {
"chapa_reference": "CH0Vn2VASWCi",
"merchant_reference": "ref-1759656600",
"amount": 10000,
"currency": "ETB",
"status": "SUCCESS",
"payment_method": "telebirr",
"processor_reference": "TB123456789",
"callback_url": "https://example.com/chapa/callback",
"return_url": "https://example.com/chapa/return",
"created_at": "2026-10-05T09:30:00Z",
"updated_at": "2026-10-05T09:30:00Z"
}
}400 Error
{
"status": "error",
"message": "Reference is required",
"error": {
"code": "MISSING_REQUIRED_FIELD",
"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
}
}Confirm completion
Do not log or store OTPs. Use Verify Payments to confirm the final state.