---
title: Phone to Gaming Compliance
slug: api-marketplace/phone-to-gaming-compliance
createdAt: 2024-07-16T10:23:55.055Z
---

## Introduction:

The Gaming Compliance API simplifies the process for clients to obtain their users' details. By inputting a customer's Phone Number, Name , and Consent, this API aims to deliver comprehensive information about individuals, encompassing contact details, address history, identification documents, and demographic data.

## Sample cURL:

:::CodeblockTabs
preproduction

```curl
curl --location 'https://api-preproduction.signzy.app/api/v3/gaming/phone-onboarding' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth token>' \
--data '{
    "mobileNumber": "",
    "fullName": "",
    "consent": {
        "consentFlag": true,
        "consentTimestamp": 123456789,
        "consentIpAddress": "::ffff:192.168.0.1",
        "consentMessageId": "CM_1"
    }
}'
```

production

```curl
curl --location 'https://api.signzy.app/api/v3/gaming/phone-onboarding' \
--header 'Content-Type: application/json' \
--header 'Authorization: <auth token>' \
--data '{
    "mobileNumber": "",
    "fullName": "",
    "consent": {
        "consentFlag": true,
        "consentTimestamp": 123456789,
        "consentIpAddress": "::ffff:192.168.0.1",
        "consentMessageId": "CM_1"
    }
}'
```
:::

## Input Parameters:

| **Parameter**    | **Type** | **Description**                 | **Mandatory/Optional** |
| ---------------- | -------- | ------------------------------- | ---------------------- |
| mobileNumber     | String   | Mobile Number of the Individual | Mandatory              |
| fullName         | String   | Full Name of the Individual     | Optional               |
| consentFlag      | Boolean  | Consent of the Individual       | Mandatory              |
| consentTimestamp | Number   | Time Stamp of the Individual    | Mandatory              |
| consentIpAddress | String   | IP Address of the Individual    | Mandatory              |
| consentMessageId | String   | Message Id of the Individual    | Mandatory              |



## Output Parameters:

| **Key**                             | **Type**         | **Description**                                                               |
| ----------------------------------- | ---------------- | ----------------------------------------------------------------------------- |
| response                            | Object           | The main object contains response data.                                       |
| response.alternatePhone             | Array of Objects | List of unique Phone Numbers associated with the user of type code "M"        |
| response.alternatePhone.serialNo    | String           | Unique identifier for the alternate phone number (multiple entries possible). |
| response.alternatePhone.phoneNumber | String           | The alternate phone number (multiple entries possible).                       |
| response.email                      | Array of Objects | List of Emails associated with the user.                                      |
| response.email.serialNo             | String           | Unique identifier for the email address (multiple entries possible).          |
| response.email.email                | String           | The email address (multiple entries possible).                                |
| response.address                    | Object           | Only one latest Address associated with the user.                             |
| response.address.Seq                | String           | Unique identifier for the address record (Seq = 1).                           |
| response.address.ReportedDate       | String           | Date the address was reported (YYYY-MM-DD format).                            |
| response.address.Address            | String           | Full address information.                                                     |
| response.address.State              | String           | State code of the address.                                                    |
| response.address.Postal             | String           | Postal code of the address.                                                   |
| response.address.Type               | String           | Type of address (e.g., "Office", "Primary", "Permanent").                     |
| response.drivingLicense             | Array of Objects | Represents the List of Driving Licenses                                       |
| response.drivingLicense.serialNo    | String           | Unique identifier for the driving license (multiple entries possible).        |
| response.drivingLicense.IdNumber    | String           | The driving license number (multiple entries possible).                       |
| response.voterId                    | Array of Objects | Represents the List of Voter Ids                                              |
| response.voterId.serialNo           | String           | Unique identifier for the Voter Id (multiple entries possible).               |
| response.voterId.IdNumber           | String           | VoterId number (multiple entries possible)                                    |
| response.passport                   | Array of Objects | Represents the List of Passports                                              |
| response.passport.serialNo          | String           | Unique identifier for the passport (multiple entries possible).               |
| response.passport.IdNumber          | String           | Passport Number (multiple entries possible)                                   |
| response.PAN                        | Array of Object  | Represents the PAN                                                            |
| response.PAN.serialNo               | String           | Unique identifier for the PAN                                                 |
| response.PAN.IdNumber               | String           | PAN Number                                                                    |
| response.name                       | Object           |                                                                               |
| response.Name.fullName              | String           | Full name of the individual.                                                  |
| response.Name.firstName             | String           | First name of the individual.                                                 |
| response.Name.lastName              | String           | Last name of the individual.                                                  |
| response.income                     | String           | Reported income of the individual.                                            |
| response.gender                     | String           | Gender of the individual (e.g., "Male", "Female").                            |
| response.age                        | String           | Age of the individual.                                                        |
| response.dob                        | String           | Date of birth of the individual (YYYY-MM-DD format).                          |

## Status Codes:

:::CodeblockTabs
200

```json
{
  "response": {
    "alternatePhone": [
      {
        "serialNo": "1",
        "phoneNumber": "919422025673"
      },
      {
        "serialNo": "2",
        "phoneNumber": "9422025673"
      }
    ],
    "email": [
      {
        "serialNo": "1",
        "email": "AD.SHARAD@OUTLOOK.COM"
      }
    ],
    "address": {
      "Seq": "1",
      "ReportedDate": "2024-03-08",
      "Address": "FLAT NO RASIKA TOWER  MADHA RAOD KURDWADI LAUL-MH",
      "State": "MH",
      "Postal": "413208"
    },
    "voterId": [
      {
        "serialNo": "1",
        "IdNumber": "BZY1379387"
      },
      {
        "serialNo": "2",
        "IdNumber": "BAY1379387"
      }
    ],
    "passport": [
      {
        "serialNo": "1",
        "IdNumber": "J8186008"
      }
    ],
    "drivingLicense": [
      {
        "serialNo": "1",
        "IdNumber": "WB20200653744"
      },
      { 
        "serialNo": "2",
        "IdNumber": "20141026632"
      }
    ],
    "PAN": [
      {
        "serialNo": "1",
        "IdNumber": "AGIPN1749B"
      }
    ],
    "name": {
      "fullName": "SHARAD SIDDHESHWAR NALAWAD ",
      "firstName": "SHARAD ",
      "lastName": "NALAWAD "
    },
    "income": "500000",
    "gender": "Male",
    "age": "47",
    "dob": "1977-01-15"
  }
}
```

400

```json
{
    "error": {
        "statusCode": 400,
        "status": "Bad Request",
        "message": "\"requestBody.mobileNumber\" is required",
        "id": "05389aed-f93e-4947-bdee-7d3a7f46f391"
    }
}
```

404

```json
{
    "error": {
        "reason": "ERROR",
        "status": 404,
        "message": "Try again using fullName and mobileNumber",
        "type": "Not Found",
        "statusCode": 404,
        "name": "error"
    }
}
// Couldn't find name is not found and fullname is required to get details

{
    "error": {
        "reason": "ERROR",
        "status": 404,
        "message": "record not found",
        "type": "Not Found",
        "statusCode": 404,
        "name": "error"
    }
}
// User details not found 
```

409

```json
{
    "error": {
        "reason": "ERROR",
        "status": 409,
        "message": "Try again using fullName and mobileNumber",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
// Couldn't find name is not found and fullname is required to get details

{
    "error": {
        "reason": "Error From Upstream",
        "status": 409,
        "message": "Upstream Down",
        "type": "Conflict",
        "statusCode": 409,
        "name": "error"
    }
}
// Error 
```
:::

### State Code List

| code | Description               |
| ---- | ------------------------- |
| AN   | Andaman & Nicobar Islands |
| AP   | Andhra Pradesh            |
| AR   | Arunachal Pradesh         |
| AS   | Assam                     |
| BR   | Bihar                     |
| CG   | Chattisgarh               |
| CH   | Chandigarh                |
| DD   | Daman & Diu               |
| DL   | Delhi                     |
| DN   | Dadra & Nagar Haveli      |
| GA   | Goa                       |
| GJ   | Gujarat                   |
| HP   | Himachal Pradesh          |
| HR   | Haryana                   |
| JH   | Jharkhand                 |
| JK   | Jammu & Kashmir           |
| KA   | Karnataka                 |
| KL   | Kerala                    |
| LD   | Lakshadweep               |
| MH   | Maharashtra               |
| ML   | Meghalaya                 |
| MN   | Manipur                   |
| MP   | Madhya Pradesh            |
| MZ   | Mizoram                   |
| NL   | Nagaland                  |
| OR   | Orissa                    |
| PB   | Punjab                    |
| PY   | Pondicherry/Puducherry    |
| RJ   | Rajasthan                 |
| SK   | Sikkim                    |
| TG   | Telangana                 |
| TN   | Tamil Nadu                |
| TR   | Tripura                   |
| UK   | Uttaranchal/Uttarakhand   |
| UP   | Uttar Pradesh             |
| WB   | West Bengal               |

