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

# Record the filing result

> Records what the regulator did with a report your system filed on its own channel, and is the other half of the `sar.ready_for_filing` webhook. Send `accepted: true` with the regulator's own identifier — a FinCEN BSA Identifier, a goAML report key — once its acknowledgement arrives, or `accepted: false` with its error text so the report can be corrected and refiled. Acceptance is idempotent on that identifier, so retrying is safe. A report the regulator refused was never filed, so it does not stay `SUBMITTED`: it becomes `FILING_REJECTED`, keeps your error text in `filingErrors`, and is corrected by reopening it to `DRAFT` (see `reopen/`).



## OpenAPI

````yaml /openapi/transaction-monitoring.json post /api/v1/sars/{sar_id}/filing-result/
openapi: 3.0.3
info:
  title: iDenfy Transaction Monitoring API
  version: v1
  description: >-
    Submit transactions and events for AML monitoring, and read back the alerts,
    cases and reports they produce.
servers:
  - url: https://ivs-tx-monitoring.idenfy.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Ingest
    description: Submit transactions and events for monitoring.
  - name: Transactions
    description: Read back submitted transactions and their rule hits.
  - name: Rules
    description: Detection rules evaluated against every submission.
  - name: Alerts
    description: Alerts opened when a rule matches.
  - name: Investigations
    description: Cases opened from one or more alerts.
  - name: SARs
    description: Suspicious activity reports and their attachments.
  - name: Sanctions screening
    description: Sanctions and PEP screening of transaction parties.
  - name: AML monitoring
    description: Ongoing AML monitoring of screened parties.
  - name: Party suspensions
    description: ''
  - name: Webhooks
    description: Outbound event delivery to your endpoints.
  - name: Custom fields
    description: Your own transaction attributes, declared so rules can match them.
  - name: Reference lists
    description: Named value lists rules can reference.
  - name: Notification rules
    description: Slack and email notifications for alerts.
  - name: Reports
    description: Generated compliance reports.
paths:
  /api/v1/sars/{sar_id}/filing-result/:
    post:
      tags:
        - SARs
      summary: Record the filing result
      description: >-
        Records what the regulator did with a report your system filed on its
        own channel, and is the other half of the `sar.ready_for_filing`
        webhook. Send `accepted: true` with the regulator's own identifier — a
        FinCEN BSA Identifier, a goAML report key — once its acknowledgement
        arrives, or `accepted: false` with its error text so the report can be
        corrected and refiled. Acceptance is idempotent on that identifier, so
        retrying is safe. A report the regulator refused was never filed, so it
        does not stay `SUBMITTED`: it becomes `FILING_REJECTED`, keeps your
        error text in `filingErrors`, and is corrected by reopening it to
        `DRAFT` (see `reopen/`).
      operationId: sars_filing_result_create
      parameters:
        - in: path
          name: sar_id
          schema:
            type: string
            format: uuid
            description: Primary key
          required: true
          description: Identifies the suspicious activity report.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SARResponse'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SARResponse'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SARResponse'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SARResponse'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    SARResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        partnerId:
          type: integer
          readOnly: true
        investigationId:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        referenceNumber:
          type: string
          readOnly: true
          description: Formatted SAR-{year}-{seq:03d} reference number
        jurisdiction:
          type: string
          readOnly: true
          description: >-
            ISO 3166-1 alpha-2 filing jurisdiction; validated against
            SARJurisdictionRegistry
        templateFamily:
          allOf:
            - $ref: '#/components/schemas/TemplateFamilyEnum'
          readOnly: true
          description: >-
            Regulator form shape, derived from jurisdiction so export and
            analytics can filter on it


            * `GOAML` - goAML (EU and most of the world)

            * `FINCEN` - FinCEN (United States)

            * `UK_NCA` - UK NCA (United Kingdom)

            * `SI_UPPD` - UPPD (Slovenia)

            * `GENERIC` - Generic / Universal
        sarType:
          allOf:
            - $ref: '#/components/schemas/SarTypeEnum'
          readOnly: true
          description: >-
            Report type chosen first, before jurisdiction-specific sections are
            shown


            * `CLIENT` - Client

            * `TRANSACTIONAL` - Transactional
        reportCode:
          type: string
          readOnly: true
          nullable: true
          description: >-
            goAML report_code this filing is submitted under, resolved from the
            FIU's own schema. Orthogonal to sar_type rather than a widening of
            it: STR/SAR, TFTR/TFR and PEPTR/PEPR are each one subject matter
            across the transaction and activity axes. Deliberately without
            model-level choices, because the allowed values are enumerated per
            FIU and one enum here would hardcode a single jurisdiction's list as
            universal
        status:
          allOf:
            - $ref: '#/components/schemas/SARResponseStatusEnum'
          readOnly: true
          description: |-
            SAR lifecycle state

            * `DRAFT` - Draft
            * `UNDER_REVIEW` - Under Review
            * `APPROVED` - Approved
            * `SUBMITTED` - Submitted
            * `ACCEPTED` - Accepted by regulator
            * `FILING_REJECTED` - Rejected by regulator
            * `REJECTED` - Rejected
        subjectType:
          allOf:
            - $ref: '#/components/schemas/SubjectTypeEnum'
          readOnly: true
          description: |-
            Whether the subject is a natural person or a legal entity

            * `INDIVIDUAL` - Individual
            * `ENTITY` - Entity
        subjectName:
          type: string
          readOnly: true
          description: Name of the subject the report concerns
        subjectAddress:
          type: string
          readOnly: true
          nullable: true
          description: Subject's physical address
        subjectAccount:
          type: string
          readOnly: true
          nullable: true
          description: Subject's account identifier
        suspiciousActivityDescription:
          type: string
          readOnly: true
          description: Narrative description of the suspicious activity
        internalActionTaken:
          readOnly: true
          nullable: true
          description: |-
            What the reporting entity itself did about the activity

            * `NONE` - No action taken
            * `MONITORED` - Monitored
            * `BLOCKED` - Blocked
            * `TERMINATED` - Relationship terminated
          oneOf:
            - $ref: '#/components/schemas/InternalActionTakenEnum'
            - $ref: '#/components/schemas/NullEnum'
        totalAmount:
          type: string
          format: decimal
          pattern: ^-?\d{0,12}(?:\.\d{0,8})?$
          readOnly: true
          nullable: true
          description: Total amount of the reported activity
        currency:
          type: string
          readOnly: true
          nullable: true
          description: ISO 4217 currency code
        periodStart:
          type: string
          format: date
          readOnly: true
          nullable: true
          description: Start of the reported activity period
        periodEnd:
          type: string
          format: date
          readOnly: true
          nullable: true
          description: End of the reported activity period
        preparedBy:
          type: integer
          description: Unique identifier of the user
          readOnly: true
        preparedByName:
          type: string
          nullable: true
          readOnly: true
          description: Name of the assigned user, or null when nobody is assigned
        reviewedBy:
          type: integer
          description: Unique identifier of the user
          readOnly: true
        submittedAt:
          type: string
          format: date-time
          readOnly: true
          nullable: true
          description: When the report was submitted to the regulator
        externalReference:
          type: string
          readOnly: true
          nullable: true
          description: >-
            Receipt code the FIU returned when the report was filed through its
            portal
        rejectionReason:
          type: string
          readOnly: true
          nullable: true
          description: Why the report was rejected in review
        reportData:
          readOnly: true
          description: Jurisdiction-specific report form fields
        isTest:
          type: boolean
          readOnly: true
          description: >-
            True when this record is test data rather than live monitoring data;
            derived from the record it originates from, never set by hand
        filingBlockedReason:
          type: string
          nullable: true
          description: >-
            `TEST_SAR` — a report that must never reach a regulator — is the
            only blocking reason.
          readOnly: true
        filingIntegrationReason:
          type: string
          nullable: true
          description: >-
            A warning and not a block: the partner files on the FIU's own
            channel and records that they did.
          readOnly: true
        autoFilingEnabled:
          type: boolean
          description: >-
            False for every report today: no regulator we support publishes a
            transport a multi-tenant

            service can file over, so a report is handed over and recorded,
            never transmitted for the partner.
          readOnly: true
        filingErrors:
          readOnly: true
          nullable: true
          description: >-
            The regulator's own reasons for refusing the report, verbatim, so it
            can be corrected and refiled
        filingOutcomeAt:
          type: string
          format: date-time
          readOnly: true
          nullable: true
          description: >-
            When the regulator accepted or refused the report, as reported by
            the filer
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/SARAttachmentResponse'
          readOnly: true
        handoverSnapshot:
          type: object
          additionalProperties: {}
          nullable: true
          description: >-
            The most recent handover of this report, or null when none was
            captured.


            Null equally on a report never handed over and on one handed over
            before snapshots were kept:

            those rows are deliberately not backfilled, and the status tells the
            two apart. Read off the

            prefetched relation, so a register page costs no extra query per
            row.
          readOnly: true
        createdAt:
          type: string
          format: date-time
          readOnly: true
        updatedAt:
          type: string
          format: date-time
          readOnly: true
        completeness:
          type: object
          additionalProperties: {}
          readOnly: true
      required:
        - attachments
        - autoFilingEnabled
        - completeness
        - createdAt
        - currency
        - externalReference
        - filingBlockedReason
        - filingErrors
        - filingIntegrationReason
        - filingOutcomeAt
        - handoverSnapshot
        - id
        - internalActionTaken
        - investigationId
        - isTest
        - jurisdiction
        - partnerId
        - periodEnd
        - periodStart
        - preparedBy
        - preparedByName
        - referenceNumber
        - rejectionReason
        - reportCode
        - reportData
        - reviewedBy
        - sarType
        - status
        - subjectAccount
        - subjectAddress
        - subjectName
        - subjectType
        - submittedAt
        - suspiciousActivityDescription
        - templateFamily
        - totalAmount
        - updatedAt
    TemplateFamilyEnum:
      enum:
        - GOAML
        - FINCEN
        - UK_NCA
        - SI_UPPD
        - GENERIC
      type: string
      description: |-
        * `GOAML` - goAML (EU and most of the world)
        * `FINCEN` - FinCEN (United States)
        * `UK_NCA` - UK NCA (United Kingdom)
        * `SI_UPPD` - UPPD (Slovenia)
        * `GENERIC` - Generic / Universal
    SarTypeEnum:
      enum:
        - CLIENT
        - TRANSACTIONAL
      type: string
      description: |-
        * `CLIENT` - Client
        * `TRANSACTIONAL` - Transactional
    SARResponseStatusEnum:
      enum:
        - DRAFT
        - UNDER_REVIEW
        - APPROVED
        - SUBMITTED
        - ACCEPTED
        - FILING_REJECTED
        - REJECTED
      type: string
      description: |-
        * `DRAFT` - Draft
        * `UNDER_REVIEW` - Under Review
        * `APPROVED` - Approved
        * `SUBMITTED` - Submitted
        * `ACCEPTED` - Accepted by regulator
        * `FILING_REJECTED` - Rejected by regulator
        * `REJECTED` - Rejected
    SubjectTypeEnum:
      enum:
        - INDIVIDUAL
        - ENTITY
      type: string
      description: |-
        * `INDIVIDUAL` - Individual
        * `ENTITY` - Entity
    InternalActionTakenEnum:
      enum:
        - NONE
        - MONITORED
        - BLOCKED
        - TERMINATED
      type: string
      description: |-
        * `NONE` - No action taken
        * `MONITORED` - Monitored
        * `BLOCKED` - Blocked
        * `TERMINATED` - Relationship terminated
    NullEnum:
      enum:
        - null
    SARAttachmentResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        fileName:
          type: string
          readOnly: true
          description: Original file name as uploaded
        contentType:
          type: string
          readOnly: true
          description: Detected MIME type
        sizeBytes:
          type: integer
          readOnly: true
          description: File size in bytes
        checksumSha256:
          type: string
          readOnly: true
          description: SHA-256 of the stored bytes, for integrity checks
        uploadedBy:
          type: integer
          description: Unique identifier of the user
          readOnly: true
        uploadedAt:
          type: string
          format: date-time
          readOnly: true
      required:
        - checksumSha256
        - contentType
        - fileName
        - id
        - sizeBytes
        - uploadedAt
        - uploadedBy
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [Finding Results](https://documentation.idenfy.com/guides/dashboard/general/finding-results.md)
- [Hand a SAR over for filing](https://documentation.idenfy.com/api-reference/transaction-monitoring/sars/hand-a-sar-over-for-filing.md)
- [Record the SAR decision](https://documentation.idenfy.com/api-reference/transaction-monitoring/investigations/record-the-sar-decision.md)
- [Transaction Monitoring API Webhooks](https://documentation.idenfy.com/transaction-monitoring/webhooks.md)
- [Retrieve a screening result](https://documentation.idenfy.com/api-reference/transaction-monitoring/sanctions-screening/retrieve-a-screening-result.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.