PUT /v1/multi-level-config
Service: affiliates · operationId: (none)
Required scopes
(no scope declared — review service config)
Request body
{
"type": "object",
"properties": {
"brand_id": {
"type": "string",
"minLength": 1
},
"l1_commission_bps": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"l2_commission_bps": {
"type": "integer",
"minimum": 0,
"maximum": 10000
},
"max_levels": {
"type": "integer",
"minimum": 1,
"maximum": 3,
"default": 3
}
},
"required": [
"brand_id",
"l1_commission_bps",
"l2_commission_bps"
]
}Responses
200 Config created/updated
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"brand_id": {
"type": "string"
},
"l1_commission_bps": {
"type": "integer"
},
"l2_commission_bps": {
"type": "integer"
},
"max_levels": {
"type": "integer"
}
},
"required": [
"id",
"brand_id",
"l1_commission_bps",
"l2_commission_bps",
"max_levels"
]
}Example
curl -X PUT https://affiliates.platform.loop.health/v1/multi-level-config \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ ... }'Related
services/affiliates— service overview- All endpoints — directory across services
- Auth model — how scopes are enforced