Create Group
POST {{baseUrl}}/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. '<'
Note: To add the payment methods you will need to get the payment methods list from Payment Endpoint
OAuth Scopes
customers.read_write
Request Body
{"name"=>"VIP Customers", "conditions"=>{"type"=>"total_sales", "symbol"=>">", "value"=>100}, "features"=>{"payment_method"=>["credit_card", "mada", "bank", "cod", "apple_pay", "stc_pay"], "shipping"=>["all"]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"status":200,"success":true,"data":{"id":1040162396,"name":"eg Customers"}}