Skip to main content

Overview

Account linkage is the mechanism that allows FACEIT and external platforms to communicate with each other. For example, FACEIT can redeem a platform voucher without involving a user.

The Account linkage works the following way:

Authorization

It requires implementing OpenID Connect 2.0 specification.

We will use authorization code flow, for that we need:

Note

We use client_secret_basic for client authorization and https://api.faceit.com/account-integration/v1/platforms/{partner}/redirect as a redirect URI for production.

Sending code

After successful authorization, we will redeem a voucher by making an HTTP request.

Endpoint

MethodURLDescription
POSThttps://<your domain>/codes/applyThis POST request is used to redeem a voucher.

Header *(required)

  • Content-Type - application/json
  • Authorization: Brearer <access token> - We use Brearer authentication. access token - user access token that we got after authorization.

Data (JSON format)

Request body with following params:

param nameDescriptionType
codeCode for redeemingstring
   POST https://<your domain>/codes/apply
Authorization: Bearer <access token>
Content-Type: application/json

{
"code": "CODE"
}

Response

param nameDescriptionType
codeA human-readable error code used to identify the error that occurred.string
messageA detailed error message.string
 {
"code": "invalid_code",
"message": "code was already redeemed"
}

Limitation

Please be aware that each integration must be linked to a specific organizer responsible for prize distribution. If you have multiple CRMs due to geographical restrictions or other factors, they will need to be associated with separate organizers, leading to divided competitions. Therefore, we recommend consolidating all your user data into a single CRM to simplify management and avoid splitting the competitions.

How to initiate Account linkage integration

What do you need?

  1. OAuth2 parameters for stage and production