1. Subscriptions
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. Subscriptions

Confirm OTP

POST
/partner-dcb/v1/subscriptions/{transaction_id}/otp/confirm

Request

Authorization
API Key
Add parameter in header
X-Signature
Example:
X-Signature: ********************
or
Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Accepted (awaiting final processing)
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/partner-dcb/v1/subscriptions//otp/confirm' \
--header 'X-Partner-Id;' \
--header 'X-Api-Key;' \
--header 'X-Timestamp;' \
--header 'X-Nonce;' \
--header 'X-Signature: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
  "payment_method": "XL",
  "transaction_details": {
    "otp": "809278"
  }
}'
Response Response Example
{
    "success": true,
    "correlation_id": "8006f1ea-0000-d000-b63f-84710c7967bb",
    "code": "OTP_CONFIRMED",
    "message": "OTP confirmed. Awaiting final processing from operator.",
    "data": {
        "transaction_id": "4c2821dc-61be-42a8-b211-baa65b845380",
        "partner_ref_id": "229ffd5a-a7d2-4d44-b11c-75fa51780793"
    }
}
Modified at 2026-05-13 04:07:16
Previous
Create Subscription (Initiate)
Next
Unsubscribe
Built with