Affiliate

Register partner

post
/affiliate/partner-register

Registers the user as a partner in the affiliate program.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Body
partnerCodestringRequired
paypalMeLinkstringRequired
termsAndConditionsbooleanRequired
Responses
200

Successful response

application/json
post
/affiliate/partner-register
200

Successful response

Get commission stats

get
/affiliate/stats

Retrieves graph data for commisions in the past year for the current user.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Query parameters
dateFromstring · dateOptionalExample: 2021-08-01
dateTostring · dateOptionalExample: 2021-11-01
Responses
200

Successful response

application/json
get
/affiliate/stats
200

Successful response

Get commissions

get
/affiliate/commissions

Retrieves detailed data about individual commisions of the current user.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Query parameters
statusIdintegerOptionalExample: 1
dateFromstring · dateOptionalExample: 2021-08-01
dateTostring · dateOptionalExample: 2021-11-01
pg[sortBy]stringOptional

The value that will be used to sort returned entities by.

Example: id
pg[offset]integerOptional

The value of entities you want to skip before getting entities you need.

pg[sortDir]string · enumOptional

The sorting order. It accepts the ascending and descending direction specifiers.

Possible values:
pg[limit]integerOptional

Sets the maximum number of results per page in the API call response. For example, pg[limit]=100. The default number varies with different API endpoints.

Responses
200

Successful response

application/json
get
/affiliate/commissions
200

Successful response

Get commission info

get
/affiliate/commission-info

Retrieves general info about accumulated commissions of the current user.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Query parameters
dateFromstring · dateOptionalExample: 2021-08-01
dateTostring · dateOptionalExample: 2021-11-01
Responses
200

Successful response

application/json
get
/affiliate/commission-info
200

Successful response

Request payout

post
/affiliate/payout-request

Request a payout of available commissions.

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.

If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.

Responses
200

Successful response

application/json
post
/affiliate/payout-request
200

Successful response

Last updated