Initialize Direct Charge
Initialize a wallet charge using a specific payment method.
Direct charge sends a payment request to a specific wallet. USSD methods push a customer prompt; OTP methods require validation.
Endpoint
POST /v2/payments/direct
Host: api.chapa.global
Authorization: Bearer <PRIVATE_KEY>
Content-Type: application/json
Idempotency-Key: <UNIQUE_OPERATION_KEY>Request
| Field | Required | Description |
|---|---|---|
payment_method | Yes | Enabled wallet method, for example telebirr |
amount | Yes | Integer cents, minimum 100 |
currency | Yes | Currency supported by the selected method |
customer.phone_number | Yes | Customer's phone number |
merchant_reference | No | Unique merchant reference, maximum 20 characters |
customer.first_name | No | First name |
customer.last_name | No | Last name |
customer.email | No | |
customer.card_number | No | Customer card number, if applicable |
callback_url | No | Callback URL |
return_url | No | Return URL |
subaccounts | No | Split rules |
metadata | No | Custom metadata, this endpoint uses metadata |
customization | No | Checkout customization |
Retrieve enabled payment methods with GET /v2/payments/methods.
For cURL, set PRIVATE_KEY in your shell. Set IDEMPOTENCY_KEY for this operation and reuse it on retries. Replace the placeholders in the JavaScript example before running it.
{
"payment_method": "telebirr",
"amount": 10000,
"currency": "ETB",
"merchant_reference": "ref-1791192600",
"customer": {
"first_name": "Abebe",
"last_name": "Kebede",
"email": "abebe.kebede@example.com",
"phone_number": "251911000000"
},
"callback_url": "https://example.com/chapa/callback",
"return_url": "https://example.com/chapa/return",
"metadata": {
"order_id": "ORD-1001"
},
"customization": {
"title": "Order #1001"
}
}curl -X POST 'https://api.chapa.global/v2/payments/direct' \
-H "Authorization: Bearer $PRIVATE_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"payment_method": "telebirr",
"amount": 10000,
"currency": "ETB",
"merchant_reference": "ref-1791192600",
"customer": {
"first_name": "Abebe",
"last_name": "Kebede",
"email": "abebe.kebede@example.com",
"phone_number": "251911000000"
},
"callback_url": "https://example.com/chapa/callback",
"return_url": "https://example.com/chapa/return",
"metadata": {
"order_id": "ORD-1001"
},
"customization": {
"title": "Order #1001"
}
}'const response = await fetch("https://api.chapa.global/v2/payments/direct", {
method: "POST",
headers: {
"Authorization": "Bearer <PRIVATE_KEY>",
"Idempotency-Key": "<IDEMPOTENCY_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
"payment_method": "telebirr",
"amount": 10000,
"currency": "ETB",
"merchant_reference": "ref-1791192600",
"customer": {
"first_name": "Abebe",
"last_name": "Kebede",
"email": "abebe.kebede@example.com",
"phone_number": "251911000000"
},
"callback_url": "https://example.com/chapa/callback",
"return_url": "https://example.com/chapa/return",
"metadata": {
"order_id": "ORD-1001"
},
"customization": {
"title": "Order #1001"
}
})
});
const data = await response.json();
console.log(data);{
"status": "success",
"message": "Direct charge initialized",
"data": {
"auth_type": "USSD",
"chapa_reference": "CH0Vn2VASWCi",
"payment_status": "PENDING",
"request_id": "req_8f3a1c",
"created_at": "2026-10-05T09:30:00Z",
"expires_at": "2026-10-05T09:35:00Z"
}
}{
"status": "error",
"message": "Idempotency-Key header is required for payment operations",
"error": {
"code": "MISSING_REQUIRED_FIELD",
"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": "Merchant reference has been used before",
"error": {
"code": "INVALID_STATE",
"details": null
}
}{
"status": "error",
"message": "Failed to initialize direct charge. Try again later.",
"error": {
"code": "PROCESSING_FAILED",
"details": null
}
}Complete the charge
Store data.chapa_reference and data.request_id. The example returns auth_type: "USSD" and payment_status: "PENDING". Follow the customer prompt or submit an OTP through /v2/payments/direct/validate.
Verify server-side before fulfilling an order. Only data.status: "SUCCESS" confirms a completed payment; the top-level status: "success" describes the API operation.