---
search:
  tags:
    - Agent Behavior Insights
    - GET
seo:
  description: >-
    attempts/successes/failures summed over the range. failures is broken down
    by the… Reference for the GET /insights/negotiation endpoint in the Sarvex
    V1 API.
sidebar:
  label: Negotiation outcomes, failure breakdown, and payment-handler mismatch detail
  badge: GET
title: Negotiation outcomes, failure breakdown, and payment-handler mismatch detail
type: openapi-operation
---
attempts/successes/failures summed over the range. failures is
broken down by the closed failure_reason enum negotiation.Negotiate
actually produces (version_unsupported,
capabilities_incompatible); each carries
missing_capability_counts when the failure reason is itself a
capability-set delta (capabilities_incompatible only —
version_unsupported fails on the version field, not a capability
delta, so that map is absent there). payment_handler_mismatch is
its own dedicated breakdown, computed observationally from every
negotiation attempt (succeeded or failed) whose offered
payment-handler set had no overlap with the merchant's declared
set — an empty payment-handler intersection does not fail
negotiation on its own, so this condition would otherwise be
invisible in `failures`. Breakdown entries below the small-count
suppression threshold (default 5) are omitted; attempts/successes
totals are never suppressed. Max range 92 days.

`GET /insights/negotiation`

**Responses**

- `200` — Negotiation outcome summary 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
{
  "attempts": 0,
  "successes": 0,
  "failures": [
    {
      "reason": "version_unsupported",
      "count": 0,
      "missing_capability_counts": {
        "property1": 0,
        "property2": 0
      }
    }
  ],
  "payment_handler_mismatch": {
    "occurrences": 0,
    "offered_handler_counts": {
      "property1": 0,
      "property2": 0
    },
    "merchant_declared_handlers": [
      "string"
    ]
  }
}
```

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"
      }
    }
  }
}
```
