Create Customer Group
POST {{baseUrl}}/customers/groups
This endpoint allows you to create a customer group 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 the following options:
"total_sales"
"total_orders"
"store_rating"
"doesnt_have_orders"
And the symbols may be one of the following options:
>
<
between
:::note To add the payment methods you will need to get the payment methods list from the Available Payment Methods endpoint :::
customers.read_write
- Customers Read & Write
Request Body
{"name"=>"<string>", "conditions"=>[{"type"=>"<string>", "symbol"=>">", "value"=>"<number>", "min_value"=>"<number>", "max_value"=>"<number>"}, {"type"=>"<string>", "symbol"=>"between", "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","conditions":{"type":"\u003cstring\u003e","symbol":"\u003cstring\u003e","value":"\u003cnumber\u003e"},"features":{"payment_method":["\u003cstring\u003e","\u003cstring\u003e"],"shipping":["\u003cstring\u003e","\u003cstring\u003e"]}}}