Set, change or turn off the programme's level-2 rate
PATCH/api/v1/programs/:id/level2
Every approved partner with no own rate recruits and earns this rate on the payments of the customers of the partners they recruited; a partner's own rate overrides it, and an own rate of 0 excludes the partner. A changed rate applies to the claims of the partners on it only with scope: all_customers; by default (new_customers) they keep their rate. null turns it off: those partners stop recruiting, and their claims keep paying unless stopClaims is true. removeEqualOwnRates on turning it on clears the own rates equal to it. Commissions already created keep their rate.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
The saved programme state
Rate outside [0.0001, 100]
Unauthorized
Example programme (read-only)
Programme not found
stopClaims when the rate is not being turned off (PROGRAMME_LEVEL2_STOP_ONLY_WHEN_OFF), or an archived programme (PROGRAM_ARCHIVED)