# Payments

Needs the `finance:read` scope. The payout account of each operator on the key, as the Oracle Payments page shows it: never another operator's. Settings and state only; sales figures are in the Sales section.

### GET /api/v1/payments

Payout account status per operator.

What the Oracle Payments page shows for every operator on the key (or the one in `partner_id`): the state of its payout account with the payment provider (not connected, identity checks pending, provisioning, active), whether a live checkout store exists and what still blocks it, and its dynamic pricing and volume discount settings. Each operator sees only its own payout account. A key over more than 6 operators answers `too_many: true`; ask per operator with `partner_id`.

Scope: `finance:read`.

Query parameters:

- `partner_id` (string, optional): Only this operator: one of the key's operators (see GET /api/v1/me). Any other id answers 404. Omit for every operator on the key.

Response fields (200):

- `too_many` (boolean): True when the key covers more operators than one answer can hold; `partners` is then empty. Ask again with `partner_id`.
- `partners` (array)
  - each item:
    - `partner` (object): The operator a row belongs to: one of the key's operators (the tour's operator for a booking).
      - `id` (string)
      - `name` (string)
    - `payouts` (object)
      - `status` (one of `not_connected`, `kyb_pending`, `provisioning`, `active`): Payout account state: not_connected (no application yet), kyb_pending (identity checks running), provisioning (approved, Panion is wiring the checkout), active (payouts flow).
      - `checkout_live` (boolean): True when the payment provider confirms at least one live checkout store.
      - `readiness_available` (boolean): False when the live readiness read failed; `stores` is then empty.
      - `settlement_currency` (string, nullable): ISO 4217 code.
      - `stores` (array)
        - each item:
          - `name` (string, nullable)
          - `surface` (one of `own_domain`, `marketplace`, `checkout`, `unconfigured`)
          - `verdict` (one of `live`, `approved_no_terminal`, `domain_unverified`, `awaiting_approval`, `needs_store_url`)
          - `blocker` (string, nullable): Next step when not live.
    - `dynamic_pricing` (object)
      - `enabled` (boolean)
      - `max_discount_percent` (integer)
    - `volume_discount` (object)
      - `enabled` (boolean)
      - `tiers` (array)
        - each item:
          - `min_pax` (integer)
          - `percent` (integer)
      - `example_currency` (string): ISO 4217 code.

Example: One operator with active payouts

```sh
curl "https://www.panion.travel/api/v1/payments" \
  -H "Authorization: Bearer $PANION_API_KEY"
```

```json
{
  "too_many": false,
  "partners": [
    {
      "partner": {
        "id": "2b7e1516-28ae-4d2a-9f15-88094f3c4f3c",
        "name": "Arctic Tours"
      },
      "payouts": {
        "status": "active",
        "checkout_live": true,
        "readiness_available": true,
        "settlement_currency": "NOK",
        "stores": [
          {
            "name": "arctictours.no",
            "surface": "own_domain",
            "verdict": "live",
            "blocker": null
          }
        ]
      },
      "dynamic_pricing": {
        "enabled": true,
        "max_discount_percent": 10
      },
      "volume_discount": {
        "enabled": true,
        "tiers": [
          {
            "min_pax": 4,
            "percent": 5
          },
          {
            "min_pax": 8,
            "percent": 10
          }
        ],
        "example_currency": "NOK"
      }
    }
  ]
}
```

Responses:

- 200: OK
- 400: Invalid request
- 401: Missing, invalid, expired or revoked key
- 403: The key lacks the scope
- 429: Rate limited (300 requests per minute per key)
