Skip to navigation

Get Monthly Commissions

Retrieve the commission earned on each trade completed by an affiliate’s customers during a statement month. Each commission record includes the dealnumber of the trade that earned it.

Authentication: Bearer token required

Authentication

AuthorizationBearer

OAuth 2.0 Bearer token authentication. This API uses OAuth 2.0 Client Credentials flow. Please refer to the Authentication section for detailed information on how to obtain and use your OAuth credentials.

Request

Affiliate numbers and the statement period to retrieve commission for.
affiliate_numberlist of stringsRequired

List of affiliate numbers to include in the report. Redpin issues an affiliate number to each affiliate partner.

Records for all listed affiliate numbers are returned together in a single response.

statement_yearstringRequired

Year of the statement period in four-digit format (e.g., 2022). Sent as a string.

statement_monthstringRequired

Month of the statement period as a number from 1 to 12 (e.g., 7 for July). Sent as a string.

Response

OK. Everything worked as expected. Monthly commissions retrieved successfully.
commissionslist of objects
Array of commission objects containing the commission earned on each trade during the statement month.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error