Partner API

Partner API is designed to insert partner data into the platform to associate customer and SuggPro Gaming data.

Getting Started

To access the partner API, you must have an access token.

Request an API access token

First, navigate to the admin panel in "Settings" > "API Access" and click on "Create an API access token". Complete the form and submit it. In the token access grid, retrieve your access token.

Once you have your access token, you can use it to call the API using Bearer authentication.

Register player

To register a player for a specific game, send an HTTP request to:

https://gaming-partner-api.gaming.suggpro.com

Path to register a player

POST
/player/register/:gameId/:partnerUserId

Parameters to register a player

Headers

FieldTypeRequiredDescription
authorizationstringRequiredThe Bearer access token (Bearer :accessToken)
Example
Authorization
Bearer ab2d160d-0056-4eba-b271-3f02d50c6ae8

Path parameters

ParameterTypeRequiredDescription
gameIdstringRequiredThe game identifier
partnerUserIdstringRequiredThe partner user identifier
Example
POST
/player/register/adcca7e4-5941-470b-b391-d91c5298fa36/11111111

JSON Body parameters

FieldTypeRequiredDescription
givenNamestringThe user given name
familyNamestringThe user family name
emailstringThe user email
phoneNumberstringThe user phone number (in E.164 format)
postalCodestringThe postal code
countrystringThe country code (in ISO 3166-1 alpha-2 format)
Example
{
  "givenName": "foo",
  "familyName": "bar",
  "email": "foo.bar@suggpro.com",
  "phoneNumber": "+33123456789"
}
json

JSON Response body

FieldTypeRequiredDescription
linkstringRequiredThe user game link
playerIdstringRequiredThe internal player identifier
Example
{
  "link": "https://test.gaming.suggpro.com/adcca7e4-5941-470b-b391-d91c5298fa36/0e0d2a3a-0b9e-44f9-8b4c-b093c1fe03e4",
  "playerId": "0e0d2a3a-0b9e-44f9-8b4c-b093c1fe03e4"
}
json

HTTP response status codes

Status codeDescription
200The request was successful