> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clausum.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Report post-assess outcome (feedback loop)

> Closes the antifraud feedback loop after capture, chargebacks, or confirmed fraud. Requires secret key (`clm_sk_*`) with `assess` permission. May update blocklists, payer counters, or release allowlists. Emits outbound webhook `assess.outcome_applied` when configured.

Outcomes: `captured`, `failed`, `refunded`, `chargeback_lost`, `chargeback_won`, `fraud_confirmed`, `false_positive`.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/assess/outcome
openapi: 3.1.0
info:
  title: Clausum API
  version: 1.3.0
  description: >-
    REST API for real-time fraud risk assessment (pay-in and payout), fraud
    reporting, blocklist management, and event ingestion. API version 1.3.0.
    Create Partner API keys (`clm_pub_*`, `clm_sk_*`) in the dashboard under
    Conexiones → Claves API. Webhook ingest uses separate `clm_wh_*` keys
    (Conexiones → Entrada webhooks).
  contact:
    name: Clausum API Support
    email: api@clausum.ai
    url: https://clausum.ai
servers:
  - url: https://sandbox.clausum.ai
    description: Sandbox — integrators and trials
  - url: https://dashboard.clausum.ai
    description: Production dashboard and Partner API
security:
  - apiKeyAuth: []
tags:
  - name: Risk
    description: Real-time risk scoring for pay-in checkout and sessions.
  - name: Payout
    description: Outbound disbursement and treasury transfer assessment.
  - name: Fraud
    description: Report confirmed fraud and trigger the downstream chain.
  - name: Network
    description: >-
      Collaborative fraud intelligence — publish and query shared signals
      between opt-in participants.
  - name: Blocklists
    description: Manage dynamic blocklists used during assessment.
  - name: Cases
    description: Manage fraud cases (expedientes) and submit them to regulators.
  - name: Events
    description: Ingest raw events from your payment providers.
  - name: System
    description: Health and status checks.
paths:
  /api/v1/assess/outcome:
    post:
      tags:
        - Risk
      summary: Report post-assess outcome (feedback loop)
      description: >-
        Closes the antifraud feedback loop after capture, chargebacks, or
        confirmed fraud. Requires secret key (`clm_sk_*`) with `assess`
        permission. May update blocklists, payer counters, or release
        allowlists. Emits outbound webhook `assess.outcome_applied` when
        configured.


        Outcomes: `captured`, `failed`, `refunded`, `chargeback_lost`,
        `chargeback_won`, `fraud_confirmed`, `false_positive`.
      operationId: assessOutcome
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - session_id
                - outcome
              properties:
                session_id:
                  type: string
                  minLength: 4
                  example: ps_1716998400000_abc
                outcome:
                  type: string
                  enum:
                    - captured
                    - failed
                    - refunded
                    - chargeback_lost
                    - chargeback_won
                    - fraud_confirmed
                    - false_positive
                reason:
                  type: string
                  maxLength: 500
                provider:
                  type: string
                  maxLength: 64
                provider_dispute_id:
                  type: string
                  maxLength: 128
                idempotency_key:
                  type: string
                  maxLength: 128
                metadata:
                  type: object
                  additionalProperties: true
            examples:
              chargeback_lost:
                summary: Chargeback lost
                value:
                  session_id: ps_1716998400000_abc
                  outcome: chargeback_lost
                  provider: stripe
                  provider_dispute_id: dp_1Nxyz
                  reason: Issuer chargeback 10.4
      responses:
        '200':
          description: Idempotent replay
        '201':
          description: Outcome recorded
          content:
            application/json:
              schema:
                type: object
                properties:
                  outcome_id:
                    type: string
                    format: uuid
                  session_id:
                    type: string
                  outcome:
                    type: string
                  feedback_applied:
                    type: boolean
                  feedback:
                    type: object
                    additionalProperties: true
                  idempotent_replay:
                    type: boolean
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          description: Duplicate outcome
      security:
        - apiKeyAuth: []
components:
  responses:
    ValidationError:
      description: Invalid request body or parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Missing or invalid credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ApiError:
      type: object
      properties:
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
                details:
                  type: object
                  additionalProperties: true
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: >-
        Partner secret or publishable key, e.g. `clm_sk_...` or `clm_pub_...`
        (assess only).
      x-default: clm_sk_your_secret_key

````