Response of "J_SUBMIT_LOGIN_OTP "

Class library usage, coding and language questions.
JIT
Posts: 1
Joined: Sun Dec 25, 2022 6:26 pm

Response of "J_SUBMIT_LOGIN_OTP "

Post by JIT » Sat Dec 31, 2022 8:37 am

I am trying to automate a website and "J_SUBMIT_LOGIN_OTP " is the name of API whose payload is this :

Code: Select all

{
  "headers": {
    "Accept": "application/json",
    "Content-Type": "application/json",
    "Cache-Control": "no-cache",
    "Access-Control-Allow-Origin": "*"
  },
  "options": {
    "name": "J_SUBMIT_LOGIN_OTP",
    "params": {
      [b]"country": "IN"[/b] ,
      "countryCode": "91" ,
       "name": "" ,
      "otp": "${otp}" ,
     "phone": "2639201056"
    },
    "deviceInfo": {
      "mobile_no": "",
      "geocode": "",
      "location": "some location",
      "ip": "1",
      "make": "Safari",
      "mac_id": "1",
      "os": "Win32",
      "app_version": "v1.0.0",
      "rooted": "no",
      "imei": "1",
      "device_id": "516.0650682386502",
      "platform": "web",
      "push_id": "dummy"
    },
    "isLoader": "true"
  }
}
Response :

Code: Select all

{"message":"Country can not be empty."}
Response header : HTTP/1.1 400 Bad Request
You do not have the required permissions to view the files attached to this post.