# Search services

Searches the catalog by text, category, maximum price, merchant tier and the caller's merchant rules, optionally appending published plan offers. Anyone may call it; signed-in callers also see their org rule per row.

`GET /v1/services`

Searches the catalog by text, category, maximum price, merchant tier and the caller's merchant rules, optionally appending published plan offers. Anyone may call it; signed-in callers also see their org rule per row.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `q` | query | no | Free-text search over service name, description and category and merchant name (every word must match). |
| `category` | query | no | Only services in this category. |
| `max_price_base_units` | query | no | Highest price to return, in integer base units, carried as a string. |
| `limit` | query | no | Page size (default 20, max 200). |
| `cursor` | query | no | next_cursor from the previous page. |
| `include_hidden` | query | no | Also return services hidden from discovery; honoured only for platform operator callers. |
| `tier` | query | no | Comma list of merchant tiers: UNKNOWN, KNOWN, VERIFIED. |
| `rule` | query | no | Comma list of the signed-in organization's merchant rule: block, allow, none. Anonymous callers have no rules (every row is none). |
| `include_plans` | query | no | Append published plan offers (kind plan) after services, paged in the same list. |

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).

Example 200 response:

```json
{
  "services": [
    {
      "service_id": "svc_01m7dmxx9qkb31sxgahwj24dwm",
      "slug": "card-item",
      "name": "Lab notebook (card)",
      "description": "A physical lab notebook bought with a virtual card.",
      "category": "commerce",
      "kind": "card_checkout",
      "rail": "card_lithic",
      "price_base_units": "0",
      "price_cents": "100",
      "asset": "USD",
      "chains": [],
      "accepted_networks": [],
      "payto": {},
      "url": "https://merchant.example.com/checkout/card-item",
      "method": "POST",
      "source": "listed",
      "active": true,
      "merchant": {
        "id": "mch_01m7dmxx94amd9kk6aqvtnsey6",
        "name": "Demo Shop",
        "slug": "demo-shop",
        "tier": "VERIFIED",
        "domain": "merchant.example.com"
      },
      "merchant_id": "mch_01m7dmxx94amd9kk6aqvtnsey6",
      "tier": "VERIFIED"
    },
    {
      "service_id": "svc_01m7dmxx9qkb31sxgahwj24dwn",
      "slug": "card-item-f07",
      "name": "Lab kit (card, F-07)",
      "description": "Card-challenge fixture item, 1.50 USD.",
      "category": "commerce",
      "kind": "card_checkout",
      "rail": "card_lithic",
      "price_base_units": "0",
      "price_cents": "150",
      "asset": "USD",
      "chains": [],
      "accepted_networks": [],
      "payto": {},
      "url": "https://merchant.example.com/checkout/card-item-f07",
      "method": "POST",
      "source": "listed",
      "active": true,
      "merchant": {
        "id": "mch_01m7dmxx94amd9kk6aqvtnsey6",
        "name": "Demo Shop",
        "slug": "demo-shop",
        "tier": "VERIFIED",
        "domain": "merchant.example.com"
      },
      "merchant_id": "mch_01m7dmxx94amd9kk6aqvtnsey6",
      "tier": "VERIFIED"
    }
  ]
}
```
