Validate OTP

This endpoint validates a deposit transaction that requires OTP confirmation after charge initiation. Use it only when Honeycoin returns or sends stepRequired: "otp". For provider-required OTPs that must be collected before creating the charge, follow the operator-specific customer instructions and pass the generated code as otpCode in the Mobile Money Charge request.

post/api/b2b/fiat/deposit/{transactionId}/validate-otp

Request

  • Base URL
    https://api-v2.honeycoin.app
  • URL
    https://api-v2.honeycoin.app/api/b2b/fiat/deposit/{transactionId}/validate-otp
  • Auth
    API key in header Authorization

Path parameters

transactionIdstring required

The transactionId to validate.

Request body

otpstring required

The otp sent to the user

Response

200

successboolean
messagestring
transactionIdstring

Example response

{
  "success": true,
  "message": "OTP validated successfully.",
  "transactionId": "pA7dbAjcXr9CZrG5"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.