本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
"total_sales" |
"total_orders" |
"store_rating" |
"doesnt_have_orders" |
> |
< |
between |
customers.read_write
- Customers Read & WriteAuthorization: Bearer ********************
symbol
equals between
.symbol
equals between
{
"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://echo.apifox.com/anything/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"
]
}
}'
total_sales > 100
, determine auto-assignment. For example, customers with sales exceeding 100 are added to the group automatically.{
"status": 200,
"success": true,
"data": {
"id": 1394760126,
"name": "VIPCustomers"
}
}
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升