POST Social Sign Up
This endpoint provides user sign up/log-in through social provider.
Headers
- Type: stringrequired
Accept header
- Type: stringrequired
Authorization header
- Type: stringrequired
Content-Type header
- Type: stringrequired
API version
- Type: stringrequired
Application key
- Type: stringrequired
Unique Request identifier
Body·
application/json
- Type: stringFormat: email
- Type: string
- Type: string
- Type: integer
Customer Account opt-in statuses for marketing messages email - 1 confirmed, 2 disabled, 3 pending
- Type: integer
Customer Account opt-in statuses for marketing messages email - 1 confirmed, 2 disabled, 3 pending
- Type: integer
Customer Account opt-in statuses for marketing messages email - 1 confirmed, 2 disabled, 3 pending
- Properties: 2Type:
Responses
- application/json
Bad Request
Unauthorized
Forbidden
Not Found
Request Example for post/customers/social-sign-up
curl https://api-public-demo.menu.app/api/customers/social-sign-up \
--request POST \
--header 'Accept: application/json' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'Application: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937 ' \
--data '{
"first_name": "Ivan",
"last_name": "Djordjevic",
"email": "ivan.djordjevic@partech.com",
"provider": {
"type": "facebook",
"social_id": "ccce0e0a155eb0bc3745b0b01ae0e0da8bf6f2c846da794dd3c2fa9c714f4d06"
},
"optin_status_email": 3,
"optin_status_pn": 3,
"optin_status_sms": 3
}'
{
"status": "OK",
"code": 200,
"data": {
"customer_account": {
"id": "0da5a3f0-a354-4c04-8438-f1389c19a3f7",
"type_id": 1,
"first_name": "Ivan",
"last_name": "Djordjevic",
"email": "ivan.djordjevic@partech.com",
"confirmed": true,
"phone_number": "+381111111111",
"locale": "en",
"state": 1,
"demographics": [],
"optin_status_email": 3,
"optin_status_pn": 3,
"has_pending_email_change": true,
"has_pending_phone_number_change": true,
"is_social": true
},
"token": {
"value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbWVudS1jb3JlLm1lbnU6ODA4NC9hcGkvY3VzdG9tZXJzL3NvY2lhbC1zaWduLXVwIiwiaWF0IjoxNjgxMzA0Nzc0LCJleHAiOjE2ODEzOTExNzQsIm5iZiI6MTY4MTMwNDc3NCwianRpIjoiUDJtVm91em94ZzZiQVpFbSIsInN1YiI6IjUwODc3MTciLCJwcnYiOiJjYzMyOTIxYTE1NDgwYTExN2Q5YmJjNzJjMGUxMjU2YTY4NTI0NThiIiwiYXBwbGljYXRpb25faWQiOjE1LCJzZXNzaW9uX2lkIjoxNTcyNn0.rw0sB__aXxGO29HQnY_hxUVppzkLtm5R_FcfciQct58",
"ttl": 1440,
"refresh_ttl": 2628000
}
}
}