本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
group
as a path parameter.customers.read_write
- Customers Read & WriteAuthorization: Bearer ********************
symbol
equals between
.symbol
equals between
{
"name": "VIP",
"conditions": [
{
"type": "total_sales",
"symbol": "between",
"min_value": 100,
"max_value": 500
}
],
"features": {
"payment_method": [
"credit_card",
"mada",
"bank",
"cod",
"apple_pay",
"stc_pay"
],
"shipping": [
"all"
]
}
}
curl --location --request PUT 'https://echo.apifox.com/anything/customers/groups/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "VIP",
"conditions": [
{
"type": "total_sales",
"symbol": "between",
"min_value": 100,
"max_value": 500
}
],
"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": 21314237,
"name": "VIP"
}
}
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升