Modo Claro
Create Customer Group
POST
/customers/groupsLast modified: a month ago
This endpoint allows you to create a customer group by providing a required group name, along with conditions (shared traits among members) and the features that will apply to the group.
:::tip[Note]
The type variable may be one of the following options:
"total_sales" |
"total_orders" |
"store_rating" |
"doesnt_have_orders" |
And the symbols may be one of the following options:
> |
< |
between |
:::
:::info[Information]
To add the payment methods you will need to get the payment methods list from the Available Payment Methods endpoint
:::
Request
Parâmetros Bodyapplication/json
No schema defined
Exemplo
{
"name": "VIPCustomers",
"conditions": [
{
"type": "total_sales",
"symbol": ">",
"value": 100
}
],
"features": {
"payment_method": [
"credit_card",
"mada",
"bank",
"cod",
"apple_pay",
"stc_pay"
],
"shipping": [
"all"
]
}
}
Request samples
Respostas
Success(200)
Error Validation(422)
HTTP Code: 200
Content Type : JSONapplication/json
Esquema de Dados
No schema defined
Exemplo
Example
{
"status": 200,
"success": true,
"data": {
"id": 1394760126,
"name": "VIPCustomers"
}
}
Last modified: a month ago