Player Exclusion API
Authentication
Retrieves the customer’s blacklist status from the database or RS.
Request headers
A randomly generated string used for request verification
Request body
{
"personal_id": "12347876372",
"remote": false
}
Responses
OK
POST http://player-exclusion-api/api/v1/api/v1/check-customer HTTP/1.1
X-Nonce: vrBwqHagWT15c0G1JEZfRG4f19tmkG
X-Signature-Hash: 34e9e1ae1671a3ea4db3e01abbec52e894af3f4564e36e041f5b5bec3016571b
Content-Type: application/json
{
"personal_id": "12347876372",
"remote": false
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 10,
"message": "",
"data": {
"allowed": false,
"full_name": "",
"not_allowed_reason": {
"rs_reason_code": null,
"rs_reason_text": "Blacklisted"
}
}
}
POST http://player-exclusion-api/api/v1/api/v1/check-customer HTTP/1.1
X-Nonce: 64323tfwef434
X-Signature-Hash: 34e9e1ae1671a3ea4db3e01abbec52e894af3f4564e36e041f5b5bec3016571b
Content-Type: application/json
{
"personal_id": "12347876372",
"remote": false
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 139,
"message": "Wrong hash"
}
POST http://player-exclusion-api/api/v1/api/v1/check-customer HTTP/1.1
X-Nonce: vrBwqHagWT15c0G1JEZfRG4f19tmkG
Content-Type: application/json
{
"personal_id": "12347876372",
"remote": false
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 112,
"message": "Missing mandatory headers: X-Signature-Hash, hash or Hash"
}
POST http://player-exclusion-api/api/v1/api/v1/check-customer HTTP/1.1
X-Nonce: vrBwqHagWT15c0G1JEZfRG4f19tmkG
X-Signature-Hash: 34e9e1ae1671a3ea4db3e01abbec52e894af3f4564e36e041f5b5bec3016571b
Content-Type: application/json
{
"personal_id": "12347876372",
"remote": false
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 111,
"message": "Missing configurations `Microservices:PlayerExclusion:Secret` not found"
}
Authentication
Validates the customer by checking both blacklist status and age limit.
Request headers
Indicates the event, process, or service responsible for triggering the request.
A Legacy header indicating the event or process that initiated the request.
Retained for backward compatibility, but replaced by X-Requested-By in modern integrations.
A randomly generated string used for request verification
Request body
{
"userid": 1,
"forename": "John",
"surname": "Doe",
"middlename": "Roy",
"gender": 0,
"countryid": 268,
"registrationDomain": "singularqa.uk",
"dateofbirth": "1990-01-01",
"email": "john.doe@example.com",
"tel": "995595100200",
"address": {
"addressline1": "Test address",
"addressline2": null,
"addressline3": null,
"town": "Tbilisi",
"region": null,
"postcode": 0180,
"county": null
},
"iddocuments": [
{
"personalID": "12347876372",
"documentStatus": 0,
"documentIssueDate": "2002-02-27",
"documentCountryID": "268",
"documentExpirationDate": null,
"documentNumber": "TEST1234",
"documentIssuingAuthority": "81048124184",
"documentIssuingPlace": "81240184108",
"documentTypeID": 1
}
]
}
Responses
OK
POST http://player-exclusion-api/api/v1/api/v1/validate HTTP/1.1
X-Requested-By: loginUserWithAuthCredentials
X-Nonce: vrBwqHagWT15c0G1JEZfRG4f19tmkG
X-Signature-Hash: 34e9e1ae1671a3ea4db3e01abbec52e894af3f4564e36e041f5b5bec3016571b
Content-Type: application/json
{
"userid": 1,
"forename": "John",
"surname": "Doe",
"middlename": "Roy",
"gender": 0,
"countryid": 268,
"registrationDomain": "singularqa.uk",
"dateofbirth": "1990-01-01",
"email": "john.doe@example.com",
"tel": "995595100200",
"address": {
"addressline1": "Test address",
"addressline2": null,
"addressline3": null,
"town": "Tbilisi",
"region": null,
"postcode": 0180,
"county": null
},
"iddocuments": [
{
"personalID": "12347876372",
"documentStatus": 0,
"documentIssueDate": "2002-02-27",
"documentCountryID": "268",
"documentExpirationDate": null,
"documentNumber": "TEST1234",
"documentIssuingAuthority": "81048124184",
"documentIssuingPlace": "81240184108",
"documentTypeID": 1
}
]
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"external_service_result_code": "Success",
"code": 10,
"message": ""
}
POST http://player-exclusion-api/api/v1/api/v1/validate HTTP/1.1
X-Requested-By: loginUserWithAuthCredentials
X-Nonce: 52qwfa42ef442
X-Signature-Hash: 34e9e1ae1671a3ea4db3e01abbec52e894af3f4564e36e041f5b5bec3016571b
Content-Type: application/json
{
"userid": 1,
"forename": "John",
"surname": "Doe",
"middlename": "Roy",
"gender": 0,
"countryid": 268,
"registrationDomain": "singularqa.uk",
"dateofbirth": "1990-01-01",
"email": "john.doe@example.com",
"tel": "995595100200",
"address": {
"addressline1": "Test address",
"addressline2": null,
"addressline3": null,
"town": "Tbilisi",
"region": null,
"postcode": 0180,
"county": null
},
"iddocuments": [
{
"personalID": "12347876372",
"documentStatus": 0,
"documentIssueDate": "2002-02-27",
"documentCountryID": "268",
"documentExpirationDate": null,
"documentNumber": "TEST1234",
"documentIssuingAuthority": "81048124184",
"documentIssuingPlace": "81240184108",
"documentTypeID": 1
}
]
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 139,
"message": "Wrong hash"
}
POST http://player-exclusion-api/api/v1/api/v1/validate HTTP/1.1
X-Requested-By: loginUserWithAuthCredentials
X-Nonce: gf23423edrd42
X-Signature-Hash: 45e9e1ae1671a3eaab4242bae94af3f4564e36e041f5b5bec3016571b
Content-Type: application/json
{
"userid": 0,
"dateofbirth": "2008-01-01",
"countryid": 268,
},
"iddocuments": [
{
"personalID": "12347876372",
"documentStatus": 0,
"documentIssueDate": "2015-02-27",
"documentCountryID": "268",
"documentExpirationDate": null,
"documentNumber": "TEST1234",
"documentIssuingAuthority": "81048124184",
"documentIssuingPlace": "81240184108",
"documentTypeID": 1
}
]
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 138,
"message": ""
}
POST http://player-exclusion-api/api/v1/api/v1/validate HTTP/1.1
X-Requested-By: loginUserWithAuthCredentials
X-Signature-Hash: 34e9e1ae1671a3ea4db3e01abbec52e894af3f4564e36e041f5b5bec3016571b
Content-Type: application/json
{
"userid": 0,
"dateofbirth": "2008-01-01",
"countryid": 268,
},
"iddocuments": [
{
"personalID": "12347876372",
"documentStatus": 0,
"documentIssueDate": "2015-02-27",
"documentCountryID": "268",
"documentExpirationDate": null,
"documentNumber": "TEST1234",
"documentIssuingAuthority": "81048124184",
"documentIssuingPlace": "81240184108",
"documentTypeID": 1
}
]
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 112,
"message": "Missing mandatory headers: X-Nonce, nonce or Nonce"
}
POST http://player-exclusion-api/api/v1/api/v1/validate HTTP/1.1
X-Requested-By: loginUserWithAuthCredentials
X-Nonce: gf23423edrd42
X-Signature-Hash: 45e9e1ae1671a3eaab4242bae94af3f4564e36e041f5b5bec3016571b
Content-Type: application/json
{
"userid": 0,
"dateofbirth": "2008-01-01",
"countryid": 268,
},
"iddocuments": [
{
"personalID": "12347876372",
"documentStatus": 0,
"documentIssueDate": "2015-02-27",
"documentCountryID": "268",
"documentExpirationDate": null,
"documentNumber": "TEST1234",
"documentIssuingAuthority": "81048124184",
"documentIssuingPlace": "81240184108",
"documentTypeID": 1
}
]
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"code": 111,
"message": "Missing configurations `Microservices:PlayerExclusion:Secret` not found"
}
Description of internal status codes that might be returned in the code field of the response object.
10 - Operation was successful.
111 - Unknown error happened on server side.
112 - The request is missing mandatory parameter(s).
138 - Access is denied for the operation.
139 - The hash of the request is invalid.
404 - The specific resource could not be found.
sha256(X-Requested-By ?? caller_event_name + X-Nonce + request-payload ?? "" + secret-key)
Security hash for request validation.
A randomly generated string used for request verification
The Id of the user in PAM & Wallet.
The user name.
The user surname.
The user middle name.
The user gender.
The user country Id.
The user registration domain.
The user birthdate.
The user email address.
The user telephone number.
The user address.
The array of user documents.
The personal Id.
The document status.
The document issue date.
The document country Id.
The document expiration date.
The document number.
The document issuing authority.
The document issuing place.
The document type Id.
The first line of the address.
The second line of the address.
The third line of the address.
The town or city of the address.
The region of the address.
The postal code of the address.
The county or state of the address.