Compare Tech
  1. Endpoints
Compare Tech
  • Readme
  • API
  • Endpoints
    • Coverage
      POST
    • Subscription
      POST
    • Status
      GET
    • Send OTP
      POST
    • Reset OTP
      POST
    • Documents
      GET
    • Traders
      GET
  1. Endpoints

Send OTP

POST
/subscription/{{workflowId}}/send-otp
Send the otp and continue with the flow. The workflow must be on a status of interrupted and with a request for an otp otherwise you'll receive an error, check the main documentation for more info. If everything is good you will receive the same response as the /status endpoint

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://dev-online-cart.compare-tech.com/api/v1/subscription//send-otp' \
--header 'Authorization: Fk4oXfgzPOdTQr5bYd1jiFbcO2LgzUwNnURkqXvMPwPpLpPvQK2nHWUzy6D791wBrDjlGWAvR3ErKSEZ6mOAemClziFVSAjuaoHuhJSIOJjEtX2iVB3wzFXmUXwDcTHr' \
--header 'Content-Type: application/json' \
--data-raw '{
    "otp": "203912"
}'
Response Response Example
Error - Wrong status
{
    "error": "Requires status to be interrupted"
}
Modified at 2025-09-12 09:36:18
Previous
Status
Next
Reset OTP
Built with