Body
Required
-
commissionRate
number | null Required Commission rate
Default value is
0
. -
commissionRateType
string | null Required Commission rate type
Values are
percentage
orfixed
. Default value ispercentage
. -
enabled
boolean | null Required Enabled
Default value is
true
. -
referredResellerId
integer(int32) Required Referred reseller
-
resellerId
integer(int32) Required Reseller
POST
/reseller-commissions.json
curl \
--request POST 'http://api.example.com/v1/reseller-commissions.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"commissionRate":0,"commissionRateType":"percentage","enabled":true,"referredResellerId":42,"resellerId":42}'
Request examples
{
"commissionRate": 0,
"commissionRateType": "percentage",
"enabled": true,
"referredResellerId": 42,
"resellerId": 42
}
Response examples (200)
{
"commissionRate": 0,
"commissionRateType": "percentage",
"createdAt": "2025-05-04T09:42:00Z",
"enabled": true,
"id": 42,
"referredResellerId": 42,
"resellerId": 42,
"updatedAt": "2025-05-04T09:42:00Z"
}