---
title: "POST /v2/merchants/:id/reporting/flows"
method: POST
path: "/v2/merchants/{id}/reporting/flows"
tags: ["reporting"]
---

# POST /v2/merchants/:id/reporting/flows

`POST /v2/merchants/{id}/reporting/flows`

## Request

- Base URL: `https://api.aifinpay.io`
- URL: `https://api.aifinpay.io/v2/merchants/{id}/reporting/flows`
- Auth: API key in header `AIFP-Merchant-Secret`

Reporting v2: observations never authorize payments or access. Current scope and explicit coverage; no-store. Default-off operator flag; independent approval and deployment are separate.

## Path parameters

- `id` string, required: Server-issued identifier

## Request body

- ReportingFlowRequest
  - `version` 2, required
  - `request_id` string, uuid, required
  - `resource` string, required
  - `channel` 'browser' | 'api' | 'unknown', required
  - `consent` 'granted' | 'denied' | 'unknown', required
  - `client_id` string, uuid

## Response `200`

Evidence-bound reporting response

- ReportingFlow
  - `version` 2, required
  - `flow_id` string, uuid, required
  - `reporting_token` string, required: Observation capability. Header/memory only; never persist or log.
  - `expires_at` string, date-time, required
  - `mode` 'live' | 'test' | 'internal', required
  - `resource` string, nullable, required

## Other responses

- `400`: Safe reporting error; no payload or credential echo
- `401`: Safe reporting error; no payload or credential echo
- `403`: Safe reporting error; no payload or credential echo
- `404`: Safe reporting error; no payload or credential echo
- `409`: Safe reporting error; no payload or credential echo
- `410`: Safe reporting error; no payload or credential echo
- `413`: Safe reporting error; no payload or credential echo
- `422`: Safe reporting error; no payload or credential echo
- `429`: Safe reporting error; no payload or credential echo
- `503`: Safe reporting error; no payload or credential echo

---

[API](https://skmtc.dev/aifinpay/apis/aifinpay-api.md) · [All operations](https://skmtc.dev/aifinpay/apis/aifinpay-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aifinpay/apis/aifinpay-api/revisions/a9a644bb441d?raw)
