POST
/
api
/
v1
/
pay
/
validate-otp
curl --request POST \
  --url https://adapter.cepta.co/api/v1/pay/validate-otp \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "otp": "<string>",
  "transactionRef": "<string>",
  "paymentId": "<string>",
  "md": "<string>"
}'
{
  "status": true,
  "message": "<string>",
  "data": {
    "amount": "<string>",
    "transactionIdentifier": "<string>",
    "tokenExpiryDate": "<string>",
    "token": "<string>",
    "message": "<string>",
    "transactionRef": "<string>",
    "responseCode": "<string>",
    "otpRetryCount": 123,
    "paymentId": "<string>",
    "errors": [
      {
        "errorCode": "<string>",
        "message": "<string>"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Authorization header with the <SECRET_KEY> value.

Body

otp
string
required

OTP sent to the customer

transactionRef
string
required

Unique identifier for the transaction

paymentId
string | null

Unique identifier for the payment

md
string | null

Merchant data

Response

200
text/plain
Success
status
boolean

Indicates if the request was successful.

message
string | null

Descriptive message about the request result.

data
object