Logo
maya API Documentation

Social login

POST {{baseUrl}}/sociallogin

Logs user into the system with email address. If the email address does not exist, new user will be created with the email address.
Service urls:
http://yourdomain.com/api/rest/sociallogin
OR
http://yourdomain.com/index.php?route=rest/login/socialLogin

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
X-Oc-Session
string (Required) User session id
Content-Type
string
Accept
string




RESPONSES

status OK

{ "success": 1, "error": [ "Error description", "Error description" ], "data": {} }



Curl
curl -X POST 'https://api.opencart-api.com/api/rest/sociallogin' -H 'X-Oc-Session: voluptate' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"email":"test@test.com","provider":"facebook","access_token":"THIRD_PARTY_ACCESS_TOKEN"}'

ENDPOINTS