curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/sso/stores/company \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"user_input": "john.doe@example.com",
"tpd": {
"auth_token": "Your own key",
"unique_id": "736517181",
"email": {
"default_value": "john.doe@example.com",
"editable": true,
"hidden": false,
"support_alternate": true
},
"phone": {
"default_value": "987654321",
"phone_code": "+91",
"editable": false,
"hidden": false
},
"otp": "primary_email"
}
}
'{
"data": {
"ssoToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}Authenticate an end-user into Xoxoday’s hosted StoreFront via SSO (SAML 2.0). Returns an ssoToken which is appended to the StoreFront redirect URL. If the user account does not exist in Xoxoday, one is created automatically.
Redirect URL format: https://stagingstores.xoxoday.com/chef/v1/oauth/redirect/stores/{ssoToken}
Replace stagingstores.xoxoday.com with stores.xoxoday.com for production. The ssoToken is valid for 14 days.
curl --request POST \
--url https://stagingstores.xoxoday.com/chef/v1/oauth/sso/stores/company \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"user_input": "john.doe@example.com",
"tpd": {
"auth_token": "Your own key",
"unique_id": "736517181",
"email": {
"default_value": "john.doe@example.com",
"editable": true,
"hidden": false,
"support_alternate": true
},
"phone": {
"default_value": "987654321",
"phone_code": "+91",
"editable": false,
"hidden": false
},
"otp": "primary_email"
}
}
'{
"data": {
"ssoToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}Documentation Index
Fetch the complete documentation index at: https://help-plum.xoxoday.com/llms.txt
Use this file to discover all available pages before exploring further.
Content-Type: application/jsonAuthorization: Bearer <access_token>{OAUTH_URL}/chef/v1/oauth/redirect/stores/{ssoToken}
Note: Replace the with the SSO token received in the response of this API.
| Parameter | Type | Description |
|---|---|---|
user_input | String | End user’s email address. Used to create or fetch the account in Xoxoday. |
tpd | Object | Third-party data object containing user identity, authorization details and any custom parameter for each user. |
tpd.auth_token | String | Token provided by the client. Xoxoday will use this for subsequent API calls (balance, transaction, refund, verification). |
tpd.unique_id | String | Unique identifier for the user |
tpd.email | Object | Email configuration object for the user. |
tpd.email.default_value | String | Actual email ID of the user. Can be updated without affecting account history. |
tpd.email.editable | Boolean | If false, the user cannot edit the email at checkout. |
tpd.email.hidden | Boolean | If true, the email field will be hidden at checkout. |
tpd.email.support_alternate | Boolean | If false, no alternate email option will be shown. |
tpd.phone | Object | Phone configuration object for the user. |
tpd.phone.default_value | String | Phone number of the user. |
tpd.phone.phone_code | String | Country code of the phone number (e.g., +91). |
tpd.phone.editable | Boolean | If false, the user cannot edit the phone number at checkout. |
tpd.phone.hidden | Boolean | If true, the phone field will be hidden at checkout. |
tpd.otp | String | Mode of OTP validation. Possible values: primary_email, primary_phone, alternate_email, none. |
| Parameter | Type | Description |
|---|---|---|
data.ssoToken | String | Unique token generated upon successful validation. Used to redirect the user into Xoxoday StoreFront. Default validity is 14 days. |
Authorization: Bearer <access_token>
SSO token generated successfully.
Show child attributes