v1
latestOpenAPI 3.0.02026-07-24161215397.4 KBGet a list of memberships
Retrieve a list of sets of day memberships based on provided filters
Required scopes: flex.community.memberships.read
Path parameters
organization slug
Query parameters
Filter by membership id. Supports single id (e.g. _id=xxx) or multiple (e.g. _id[$in]=id1,id2).
Filter by company id.
Filter by member id.
The actual membership status calculated by the platform.
Filter by the calculated status of the membership (e.g. active, expired, not_started, not_approved).
Filter by location id.
Filter by plan id. Supports single id (e.g. plan=xxx) or multiple (e.g. plan[$in]=id1,id2).
Filter by the modified date. Supports date comparison filters: $gt, $gte, $lt, $lte
Support date comparison filters: $gt, $gte, $lt, $lte
Filter by custom properties. Uses deepObject style in query. Only string values are supported.
Select fields to return
Response
Example response
{
"results": [
{
"properties": {
"customProperty1": "value1",
"customProperty2": "value2"
},
"_id": "603dfbc260f4054084125d30",
"name": "Private Office",
"location": "603dfbc260f4054084125d33",
"plan": "603dfbc260f4054084125d33",
"company": "603dfbc260f4054084125d33",
"member": "603dfbc260f4054084125d33",
"startDate": "2024-01-01T00:00:00Z",
"endDate": "2024-01-01T00:00:00Z",
"intervalCount": 6,
"price": 20,
"deposit": 5,
"discount": "603dfbc260f4054084125d33",
"discountAmount": 5,
"calculatedDiscountAmount": 5,
"discountedPrice": 5,
"contract": "603dfbc260f4054084125d33",
"source": "admin",
"createdAt": "2024-04-12T00:00:00.000Z",
"createdBy": "6080186f490fcf6e0537ec27",
"modifiedAt": "2024-05-12T00:00:00.000Z",
"modifiedBy": "6080186f490fcf6e0537ec54"
}
]
}