POST /reseller-commissions.json
Body Required
-
Commission rate
Default value is
0
. -
Commission rate type
Values are
percentage
orfixed
. Default value ispercentage
. -
Enabled
Default value is
true
. -
Referred reseller
-
Reseller
POST /reseller-commissions.json
curl \
-X POST http://api.example.com/v1/reseller-commissions.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"commissionRate":0,"commissionRateType":"percentage","enabled":true,"referredResellerId":42,"resellerId":42}'
Request example
{
"commissionRate": 0,
"commissionRateType": "percentage",
"enabled": true,
"referredResellerId": 42,
"resellerId": 42
}
Response examples (200)
{
"commissionRate": 0,
"commissionRateType": "percentage",
"createdAt": "2024-05-04T09:42:00+00:00",
"enabled": true,
"id": 42,
"referredResellerId": 42,
"resellerId": 42,
"updatedAt": "2024-05-04T09:42:00+00:00"
}