"total_sales" |
"total_orders" |
"store_rating" |
"doesnt_have_orders" |
> |
< |
between |
customers.read_write
- Customers Read & WriteAuthorization: Bearer ********************
{
"name": "VIPCustomers",
"conditions": [
{
"type": "total_sales",
"symbol": ">",
"value": 100
}
],
"features": {
"payment_method": [
"credit_card",
"mada",
"bank",
"cod",
"apple_pay",
"stc_pay"
],
"shipping": [
"all"
]
}
}
curl --location --request POST 'https://api.salla.dev/admin/v2/customers/groups' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "VIPCustomers",
"conditions": [
{
"type": "total_sales",
"symbol": ">",
"value": 100
}
],
"features": {
"payment_method": [
"credit_card",
"mada",
"bank",
"cod",
"apple_pay",
"stc_pay"
],
"shipping": [
"all"
]
}
}'
{
"status": 200,
"success": true,
"data": {
"id": 1394760126,
"name": "VIPCustomers"
}
}