Now we are getting below response
{
"Customer": [
"Username": "bhuvandhangar9"
}
],
"CurrentTime": "2021-09-17 06:39:34",
"Ack": "Success"
You need to specify OutputSelector fields to get the info you want from the API:
https://developers.neto.com.au/documentation/engineers/api-documentation/customers/getcustomer
However, customer SSO login is not supported by the Neto API. It is only available through the control panel.
Where are you getting the password ($ekeydata[1]) from? The password field in the API? That is a hashed version of the password so you can't just pass it to the login page. In fact I don't think that password field is any use at all.
In addition, Neto has CSRF (cross-site request forgery) protection. That's designed to stop exactly what you are doing - submitting a form from a different domain. You can't just generate a random CSRF token to bypass it.
To reiterate, customer SSO login is not supported by the Neto API. It is only available through the control panel.
Do you have any other option for direct login or SSO and can pass cookies so that login and api?