Create member group
POST/openapi/2026-01/loyalty/member-groups
Create a new member segment for targeted operations
Request
- application/json
- Body
- Example
Bodyrequired
- Array [
- ]
Group name
Optional idempotency key
member_condition objectrequired
Member filter condition
Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.
extra object
Member condition extra config (time window, categories, products, regions)
Time range window: all / 7d / 30d
categories object[]
Categories filter, 2-level nested array ([["a","a-1"],["b"]])
Repeated field of dynamically typed values.
Product id list
country_and_province object
Country+province map: key=country code, value=province codes (["ALL"]=whole country)
property name* ListValue
ListValue is a wrapper around a repeated field of values.
The JSON representation for ListValue is JSON array.
Repeated field of dynamically typed values.
{
"name": "string",
"idempotency_key": "string",
"member_condition": {
"key": "string",
"operator": "string",
"extra": {
"time_range": "string",
"categories": [
{
"values": [
null
]
}
],
"product_ids": [
"string"
],
"country_and_province": {}
},
"relation": "string",
"children": [
null
]
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
- Array [
- ]
error code
error message
data object
Create member group response
member_condition object
Member condition expression (recursive tree)
Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.
extra object
Member condition extra config (time window, categories, products, regions)
Time range window: all / 7d / 30d
categories object[]
Categories filter, 2-level nested array ([["a","a-1"],["b"]])
Repeated field of dynamically typed values.
Product id list
country_and_province object
Country+province map: key=country code, value=province codes (["ALL"]=whole country)
property name* ListValue
ListValue is a wrapper around a repeated field of values.
The JSON representation for ListValue is JSON array.
Repeated field of dynamically typed values.
{
"code": "string",
"message": "string",
"data": {
"member_group_id": "string",
"name": "string",
"is_real_time": true,
"member_count": 0,
"created_at": "string",
"updated_at": "string",
"member_condition": {
"key": "string",
"operator": "string",
"extra": {
"time_range": "string",
"categories": [
{
"values": [
null
]
}
],
"product_ids": [
"string"
],
"country_and_province": {}
},
"relation": "string",
"children": [
null
]
}
}
}