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/:partnerUserIdParameters to register a player
Headers
| Field | Type | Required | Description |
|---|---|---|---|
authorization | string | Required | The Bearer access token (Bearer :accessToken) |
Example
Authorization
Bearer ab2d160d-0056-4eba-b271-3f02d50c6ae8Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
gameId | string | Required | The game identifier |
partnerUserId | string | Required | The partner user identifier |
Example
POST
/player/register/adcca7e4-5941-470b-b391-d91c5298fa36/11111111JSON Body parameters
| Field | Type | Required | Description |
|---|---|---|---|
givenName | string | The user given name | |
familyName | string | The user family name | |
email | string | The user email | |
phoneNumber | string | The user phone number (in E.164 format) | |
postalCode | string | The postal code | |
country | string | The 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
| Field | Type | Required | Description |
|---|---|---|---|
link | string | Required | The user game link |
playerId | string | Required | The 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 code | Description |
|---|---|
200 | The request was successful |