Create Group
POST https://api.salla.dev/admin/v2/customers/groups
This Endpoint allows you to create customer groups by providing the group name which is required and the conditions (similarities between group members) and the features that the group members will have.
type may be one of these 1. totalsales 2. totalorders 3. storerating 4. doesnthave_orders
and the symbols may be one of these 1. '>' 2. '<' 3. 'between'
💡 Note
To add the payment methods you will need to get the payment methods list from Payment Endpoint
Request Body
{"name"=>"<string>", "conditions"=>[{"type"=>"<string>", "symbol"=>"<", "value"=>"<number>", "min_value"=>"<number>", "max_value"=>"<number>"}, {"type"=>"<string>", "symbol"=>"<", "value"=>"<number>", "min_value"=>"<number>", "max_value"=>"<number>"}], "features"=>{"payment_method"=>["<string>", "<string>"], "shipping"=>["<string>", "<string>"]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"status":"\u003cnumber\u003e","success":"\u003cboolean\u003e","data":{"id":"\u003cnumber\u003e","name":"\u003cstring\u003e"}}