Chapa
Payments

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

FieldRequiredDescription
payment_methodYesEnabled wallet method, for example telebirr
amountYesInteger cents, minimum 100
currencyYesCurrency supported by the selected method
customer.phone_numberYesCustomer's phone number
merchant_referenceNoUnique merchant reference, maximum 20 characters
customer.first_nameNoFirst name
customer.last_nameNoLast name
customer.emailNoEmail
customer.card_numberNoCustomer card number, if applicable
callback_urlNoCallback URL
return_urlNoReturn URL
subaccountsNoSplit rules
metadataNoCustom metadata, this endpoint uses metadata
customizationNoCheckout customization

Retrieve enabled payment methods with GET /v2/payments/methods.

Example Request

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.

JSON
{
  "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
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"
  }
}'
JavaScript
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);
Example Response
200 Success
{
  "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"
  }
}
400 Error
{
  "status": "error",
  "message": "Idempotency-Key header is required for payment operations",
  "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
  }
}
409 Error
{
  "status": "error",
  "message": "Merchant reference has been used before",
  "error": {
    "code": "INVALID_STATE",
    "details": null
  }
}
500 Error
{
  "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.

On this page