POST
/
prices
/
units
/
search
List price units by filter
curl --request POST \
  --url https://api.cloud.flexprice.io/v1/prices/units/search \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "environment_id": "<string>",
  "filters": [
    {
      "data_type": "string",
      "field": "<string>",
      "operator": "eq",
      "value": {
        "array": [
          "<string>"
        ],
        "boolean": true,
        "date": "<string>",
        "number": 123,
        "string": "<string>"
      }
    }
  ],
  "queryFilter": {
    "expand": "<string>",
    "limit": 500,
    "offset": 1,
    "order": "asc",
    "sort": "<string>",
    "status": "published"
  },
  "sort": [
    {
      "direction": "asc",
      "field": "<string>"
    }
  ],
  "status": "published",
  "tenant_id": "<string>",
  "timeRangeFilter": {
    "end_time": "<string>",
    "start_time": "<string>"
  }
}'
{
  "items": [
    {
      "base_currency": "<string>",
      "code": "<string>",
      "conversion_rate": 123,
      "created_at": "<string>",
      "created_by": "<string>",
      "environment_id": "<string>",
      "id": "<string>",
      "name": "<string>",
      "precision": 123,
      "status": "published",
      "symbol": "<string>",
      "tenant_id": "<string>",
      "updated_at": "<string>",
      "updated_by": "<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

The body is of type object.

Response

200
application/json

OK

The response is of type object.