Light Mode
Add a new commission plan
POST
/commissions/plansCreate a new commission plan with steps or product-based commissions.
Request
Body Params application/json
name
string
required
type
enum<string>
required
Allowed values:
stepsproduct-based
details
array [object]
required
Example
{
"name": "string",
"type": "steps",
"details": [
{}
]
}
Request samples
Responses
Created(201)
Bad Request(400)
Server Error(500)
HTTP Code: 201
Content Type : JSONapplication/json
Commission plan created successfully
Data Schema
plan_id
string
optional
name
string
optional
type
enum<string>
optional
Allowed values:
stepsproduct-based
details
array [object]
optional
Example
Not configured
Last modified: 25 days ago