---
search:
  tags:
    - Channel Dashboard
    - GET
seo:
  description: >-
    The baseline is sourced from the connector's own order/analytics data
    (never… Reference for the GET /channel/comparison endpoint in the Sarvex V1
    API.
sidebar:
  label: Agentic revenue vs. the merchant's web-channel baseline
  badge: GET
title: Agentic revenue vs. the merchant's web-channel baseline
type: openapi-operation
---
The baseline is sourced from the connector's own order/analytics
data (never Sarvex's own traffic — Sarvex never sees web
sessions). Revenue and AOV are comparable between the two
channels; agent sessions and web sessions are never compared here
(different definitions, different measurement) — this response
carries no session-count field. Each metric reports available:
false with a reason when the baseline's confidence for any day in
range is short of connector_reported — never a substituted
estimate. agentic_share_of_total divides by the connector's own
reported total (which already includes agentic orders placed
directly in the merchant's store), never by agentic+baseline,
which would double-count them. Max range 92 days.

`GET /channel/comparison`

**Responses**

- `200` — Agentic vs. web-baseline comparison for the range.
- `403` — Authenticated but not permitted (e.g. non-operator on an operator route).
- `422` — Request body failed validation.

Response example, 200:

```json
{
  "from": "2019-08-24",
  "to": "2019-08-24",
  "agentic": {
    "revenue_minor": 0,
    "checkouts_completed": 0,
    "aov_minor": 0,
    "currency": "string",
    "currency_mixed": true
  },
  "web_baseline": {
    "orders": 0,
    "revenue_minor": 0,
    "aov_minor": 0,
    "currency": "string",
    "currency_mixed": true,
    "confidence": "connector_reported"
  },
  "revenue": {
    "available": true,
    "confidence": "connector_reported",
    "reason": "string",
    "agentic_minor": 0,
    "baseline_minor": 0,
    "delta_minor": 0
  },
  "aov": {
    "available": true,
    "confidence": "connector_reported",
    "reason": "string",
    "agentic_minor": 0,
    "baseline_minor": 0,
    "delta_minor": 0
  },
  "agentic_share_of_total": {
    "available": true,
    "confidence": "connector_reported",
    "reason": "string",
    "share": 0.1
  }
}
```

Response example, 403:

```json
{
  "error": {
    "code": "forbidden",
    "message": "Operator role required.",
    "details": null
  }
}
```

Response example, 422:

```json
{
  "error": {
    "code": "validation_error",
    "message": "One or more fields are invalid.",
    "details": {
      "fields": {
        "email": "must be a valid email address"
      }
    }
  }
}
```
