1. OnDemand
XL DCB API for Partner
  • Getting Started
    • Introduction
    • Authentication
    • Headers
    • Recurring (Subscription)
    • On-Demand (One-Time Charge)
    • Callbacks (Webhooks)
    • Errors & Response Codes
    • Notes (Partner Guidance)
  • Subscriptions
    • Create Subscription (Initiate)
      POST
    • Confirm OTP
      POST
    • Unsubscribe
      POST
  • OnDemand
    • Create one-time charge (OTP flow)
      POST
    • Confirm OTP (execute charge)
      POST
    • Check transaction status
      GET
  1. OnDemand

Confirm OTP (execute charge)

POST
/partner-dcb/v1/on-demand/charges/{transaction_id}/otp/confirm

Request

Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Charge executed
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/partner-dcb/v1/on-demand/charges//otp/confirm' \
--header 'Content-Type: application/json' \
--data '{
  "payment_method": "XL",
  "transaction_details": {
    "otp": "607148"
  }
}'
Response Response Example
{
    "success": true,
    "correlation_id": "8000b0fe-1007-f300-b63f-84710c7967bb",
    "code": "OTP_CONFIRMED",
    "message": "OTP Confirmed Successfully",
    "data": {
        "transaction_id": "A8847207-A233-4AC5-BBB2-8649990064BD"
    }
}
Modified at 2026-05-13 04:21:39
Previous
Create one-time charge (OTP flow)
Next
Check transaction status
Built with