The GetProfileAPI is used to verify account information and prevent fraud at the time of checkout. This API provides a second layer of account verification before the reward is sent, ensuring a seamless and secure customer experience. The API has to be built by the client so Xoxoday can consume it.

๐Ÿ“˜

The request and response are for illustrative purposes and to help the client refer to a skeleton that Xoxoday deems acceptable.

๐Ÿšง

Note: Please ensure that you share your response in JSON format only, as our system does not support any other data types.

Headers

  1. application/JSON

Request

{
ย  ย  "auth_token": "123xyz", //client's api token provided at the time of SSO
ย  ย  "employee_id": "22816281"
}

Schema

ParametersDescription
api_keyAn authorisation value to successfully allow the request from Xoxoday to your system. This value is to be sent by the client during SSO redirection
employee_idEmployee ID or the UID of the end user

Response

{
ย  ย  "status": 1,
ย  ย  "message": "Successfully loaded employee's data",
ย  ย  "employee_data":
ย  ย  ย  ย  {
ย  ย  ย  ย  ย  ย  "employee_id": "22816281",
ย  ย  ย  ย  ย  ย  "company_email_id": "[email protected]",
ย  ย  ย  ย  ย  ย  "first_name": "Dwight",
ย  ย  ย  ย  ย  ย  "last_name": "Schrute",
ย  ย  ย  ย  ย  ย  "primary_mobile_number": "",
ย  ย  ย  ย  ย  ย  "designation_name": "Assistant Regional Manager",
ย  ย  ย  ย  ย  ย  "department": "Sales",
ย  ย  ย  ย  ย  ย  "group_company": "Dundler Mifflin"
ย  ย  ย  ย  }

}

Schema

ParametersDescription
status1 = successful 0 = failure
employee_data.employee_idEmployee ID or the UID of the end user
employee_data.company_email_idEmail address of the end user
employee_data.first_nameFirst name of the end user
employee_data.last_nameLast name of the end user
employee_data.primary_mobile_numberMobile number of the end user
employee_data.designation_nameDesignation of the end user
employee_data.departmentDepartment of the end user
employee_data.group_companyName of the company