REST API v2. Authenticate with a Bearer JWT in the Authorization header unless an endpoint is marked public.
Servers​
https://v2-staging.tscheckout.comCurrent host
List affiliates​
GET
/api/v2/affiliates
Returns a list of affiliates
Authorizations​
bearerAuth
Type
HTTP (bearer)
Parameters​
Query Parameters
isFrontEndUser
Filter by frontend-linked affiliate. 1/true = frontendUserId > 0 (referrer picker). 0/false = admin-created only (frontendUserId = 0). Omit for all.
Type
integer
Valid values
01Responses​
Affiliate list
application/json
{
 Â
 Â
 Â
 Â
 Â
 Â
}
Create affiliate​
Get affiliate by ID​
Delete affiliate​
Update affiliate​
PATCH
/api/v2/affiliates/{id}
Update an existing affiliate
Authorizations​
bearerAuth
Type
HTTP (bearer)
Parameters​
Path Parameters
id*
Affiliate ID
Type
Requiredinteger
Format
"int64"Request Body​
application/json
"string"
Responses​
Updated affiliate
application/json
{
 Â
}
