Other JurisdictionsPlease use the below if your country of residence is in one of the list jurisdictions. Jurisdiction | Endpoint |
---|
Australia | https:
| Italy | https:
| Spain | https: | Romania | https: | Sweden | https:
|
Parameters (POST) | | |
---|
username (mandatory) | The username to be used for the login | | password (mandatory) | The password to be used for the login. For strong auth customers, this should be their password with a 2 factor auth code appended to the password string. | |
| | |
---|
Accept (mandatory) | Signals that the response should be returned as JSON | application/json | X-Application (mandatory) | AppKey used by the customer to identify the product. | | Content-Type (required) | Required to support passwords containing special characters | application/x-www-form-urlencoded |
The presence of the "Accept: application/json" will signal SSO that it should respond with JSON and not with a HTML page. POST ExampleAccept: application/json X-Application: <AppKey> : application/x-www-form-urlencoded URL endpoint: https://identitysso.betfair.com/api/login Payloadusername=username&password=password Curl call sample Code Block |
---|
| curl -k -i -H "Accept: application/json" -H "X-Application: <AppKey>" -X POST -d 'username=<username>&password=<password>' https://identitysso.betfair.com/api/login |
Example of a successful login: Code Block |
---|
| curl -k -i -H "Accept: application/json" -H "X-Application: <AppKey>" -X POST -d 'username=<username>&password=<password>' https://identitysso.betfair.com/api/login
{
"token":"SESSION_TOKEN",
"product":"APP_KEY",
"status":"SUCCESS",
"error":""
} |
Response Structure Code Block |
---|
| {
"token":"<token_passed_as_header>",
"product":"product_passed_as_header",
"status":"<status>",
"error":"<error>"
} |
Status Values Code Block |
---|
| SUCCESS
LIMITED_ACCESS
LOGIN_RESTRICTED
FAIL |
Status Codes & Error values |