Skip to main content
POST
/
groups
/
search
Query groups
curl --request POST \
  --url https://us.api.flexprice.io/v1/groups/search \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "end_time": "<string>",
  "entity_type": "<string>",
  "expand": "<string>",
  "filters": [
    {
      "data_type": "string",
      "field": "<string>",
      "operator": "eq",
      "value": {
        "array": [
          "<string>"
        ],
        "boolean": true,
        "date": "<string>",
        "number": 123,
        "string": "<string>"
      }
    }
  ],
  "group_ids": [
    "<string>"
  ],
  "limit": 500,
  "lookup_key": "<string>",
  "name": "<string>",
  "offset": 1,
  "order": "asc",
  "sort": [
    {
      "direction": "asc",
      "field": "<string>"
    }
  ],
  "start_time": "<string>",
  "status": "published"
}
'
{
  "items": [
    {
      "created_at": "<string>",
      "entity_ids": [
        "<string>"
      ],
      "entity_type": "<string>",
      "id": "<string>",
      "lookup_key": "<string>",
      "metadata": {},
      "name": "<string>",
      "status": "<string>",
      "updated_at": "<string>"
    }
  ],
  "pagination": {
    "limit": 123,
    "offset": 123,
    "total": 123
  }
}

Authorizations

x-api-key
string
header
required

Enter your API key in the format x-api-key <api-key>*

Body

application/json

Filter

end_time
string
entity_type
string
expand
string
filters
object[]

filters allows complex filtering based on multiple fields

group_ids
string[]

Group specific filters

limit
integer
Required range: 1 <= x <= 1000
lookup_key
string
name
string
offset
integer
Required range: x >= 0
order
enum<string>
Available options:
asc,
desc
sort
object[]
start_time
string
status
enum<string>
Available options:
published,
deleted,
archived

Response

OK

items
object[]
pagination
object