Hello Edward,
Indeed there was a typo in my screenshot due to some testing, but I did try with the correct path (/membership).
I tried through Postman and it is working fine, but the same API call through the workflow doesn’t due the parsing error.
Here is the membership that I am using :
"membership": {
"type": "STANDARD",
"criteria": {
"operation": "AND",
"key": null,
"values": null,
"stringValue": null,
"children": [
{
"operation": "OR",
"key": null,
"values": null,
"stringValue": null,
"children": [
{
"operation": "EQUALS",
"key": {
"type": "IDENTITY",
"property": "cloudLifecycleState",
"sourceId": null
},
"values": null,
"stringValue": "active",
"children": null
},
{
"operation": "EQUALS",
"key": {
"type": "IDENTITY",
"property": "cloudLifecycleState",
"sourceId": null
},
"values": null,
"stringValue": "suspended",
"children": null
},
{
"operation": "EQUALS",
"key": {
"type": "IDENTITY",
"property": "cloudLifecycleState",
"sourceId": null
},
"values": null,
"stringValue": "onboarding2",
"children": null
}
]
},
{
"operation": "OR",
"key": null,
"values": null,
"stringValue": null,
"children": [
{
"operation": "EQUALS",
"key": {
"type": "IDENTITY",
"property": "serviceId",
"sourceId": null
},
"values": null,
"stringValue": "100",
"children": null
},
{
"operation": "EQUALS",
"key": {
"type": "IDENTITY",
"property": "serviceId",
"sourceId": null
},
"values": null,
"stringValue": "S",
"children": null
}
]
},
{
"operation": "OR",
"key": null,
"values": null,
"stringValue": null,
"children": [
{
"operation": "CONTAINS",
"key": {
"type": "IDENTITY",
"property": "localReference",
"sourceId": null
},
"values": null,
"stringValue": "de_DE",
"children": null
},
{
"operation": "CONTAINS",
"key": {
"type": "IDENTITY",
"property": "company",
"sourceId": null
},
"values": null,
"stringValue": "Doctolib Germany",
"children": null
},
{
"operation": "CONTAINS",
"key": {
"type": "IDENTITY",
"property": "countryName",
"sourceId": null
},
"values": null,
"stringValue": "Germany",
"children": null
}
]
},
{
"operation": "EQUALS",
"key": {
"type": "IDENTITY",
"property": "idisexclude",
"sourceId": null
},
"values": null,
"stringValue": "no",
"children": null
},
{
"operation": "EQUALS",
"key": {
"type": "IDENTITY",
"property": "isidexternal",
"sourceId": null
},
"values": null,
"stringValue": "no",
"children": null
}
]
},
"identities": null
}