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 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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;status&quot;:200,&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:1040162396,&quot;name&quot;:&quot;eg Customers&quot;}}