> ## 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.

# Suspend a party

> Suspends a party by hand: name a transaction to suspend its customer, or name the party directly as `party: {ref, refType}`. A reason is required. Answers `409` when that party is already suspended. Requires the transaction-edit permission and a dashboard user.



## OpenAPI

````yaml /openapi/transaction-monitoring.json post /api/v1/party-suspensions/
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/party-suspensions/:
    post:
      tags:
        - Party suspensions
      summary: Suspend a party
      description: >-
        Suspends a party by hand: name a transaction to suspend its customer, or
        name the party directly as `party: {ref, refType}`. A reason is
        required. Answers `409` when that party is already suspended. Requires
        the transaction-edit permission and a dashboard user.
      operationId: party_suspensions_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PartySuspensionCreate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PartySuspensionCreate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PartySuspensionCreate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PartySuspension'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PartySuspensionCreate:
      type: object
      properties:
        partnerId:
          type: string
          writeOnly: true
          nullable: true
          description: >-
            Target partner id; honored only for multi-partner operators, ignored
            otherwise.
        transactionId:
          type: string
          format: uuid
          nullable: true
          description: >-
            Suspend this transaction's customer; their party id is used, else
            their account
        party:
          allOf:
            - $ref: '#/components/schemas/PartyRefInput'
          nullable: true
          description: The party to suspend; required when no `transactionId` is given
        reason:
          type: string
          description: Why the party is being suspended
          maxLength: 2000
      required:
        - reason
    PartySuspension:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        partnerId:
          type: integer
          readOnly: true
        party:
          allOf:
            - $ref: '#/components/schemas/SuspendedParty'
          readOnly: true
          description: The party the suspension bars
        status:
          allOf:
            - $ref: '#/components/schemas/PartySuspensionStatusEnum'
          readOnly: true
          description: |-
            ACTIVE while the party is barred; LIFTED once an analyst lifted it

            * `ACTIVE` - Active
            * `LIFTED` - Lifted
        reason:
          type: string
          readOnly: true
          description: Why the party was suspended
        ruleId:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        ruleName:
          type: string
          readOnly: true
        transactionId:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        suspendedAt:
          type: string
          format: date-time
          readOnly: true
          description: When the suspension took effect
        origin:
          allOf:
            - $ref: '#/components/schemas/PartySuspensionOriginEnum'
          readOnly: true
          description: >-
            What suspended the party: a rule outcome, an analyst, or a workflow
            step


            * `RULE` - Rule

            * `MANUAL` - Analyst

            * `WORKFLOW` - Workflow
        createdById:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        createdByName:
          type: string
          nullable: true
          readOnly: true
          description: Name of the assigned user, or null when nobody is assigned
        workflowExecutionId:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        workflowName:
          type: string
          readOnly: true
          description: >-
            The workflow whose step suspended the party; null for any other
            origin
        liftedAt:
          type: string
          format: date-time
          readOnly: true
          nullable: true
          description: When the suspension was lifted
        liftedById:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        liftedByName:
          type: string
          nullable: true
          readOnly: true
          description: Name of the assigned user, or null when nobody is assigned
        liftReason:
          type: string
          readOnly: true
          nullable: true
          description: Why the suspension was lifted
        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
        createdAt:
          type: string
          format: date-time
          readOnly: true
        refusedAttemptCount:
          type: integer
          readOnly: true
          default: 0
          description: Transactions rejected at ingest because of this suspension
        lastAttemptAt:
          type: string
          format: date-time
          readOnly: true
          description: When the latest of those transactions was rejected
      required:
        - createdAt
        - createdById
        - createdByName
        - id
        - isTest
        - lastAttemptAt
        - liftReason
        - liftedAt
        - liftedById
        - liftedByName
        - origin
        - partnerId
        - party
        - reason
        - refusedAttemptCount
        - ruleId
        - ruleName
        - status
        - suspendedAt
        - transactionId
        - workflowExecutionId
        - workflowName
    PartyRefInput:
      type: object
      properties:
        ref:
          type: string
          description: The party id or account the suspension matches on
          maxLength: 255
        refType:
          allOf:
            - $ref: '#/components/schemas/RefTypeEnum'
          description: |-
            Whether `ref` is a party id or an account

            * `PARTY_ID` - Party id
            * `ACCOUNT` - Account
      required:
        - ref
        - refType
    SuspendedParty:
      type: object
      properties:
        ref:
          type: string
          description: The party id or account the suspension matches on
          maxLength: 255
        refType:
          allOf:
            - $ref: '#/components/schemas/RefTypeEnum'
          description: |-
            Whether `ref` is a party id or an account

            * `PARTY_ID` - Party id
            * `ACCOUNT` - Account
        name:
          type: string
          nullable: true
          description: >-
            The party's display name, from the triggering transaction or the
            latest one naming it
        country:
          type: string
          nullable: true
          description: The party's ISO country code, read off the same transactions
        type:
          type: string
          nullable: true
          description: PERSON or COMPANY, read off the same transactions
      required:
        - country
        - name
        - ref
        - refType
        - type
    PartySuspensionStatusEnum:
      enum:
        - ACTIVE
        - LIFTED
      type: string
      description: |-
        * `ACTIVE` - Active
        * `LIFTED` - Lifted
    PartySuspensionOriginEnum:
      enum:
        - RULE
        - MANUAL
        - WORKFLOW
      type: string
      description: |-
        * `RULE` - Rule
        * `MANUAL` - Analyst
        * `WORKFLOW` - Workflow
    RefTypeEnum:
      enum:
        - PARTY_ID
        - ACCOUNT
      type: string
      description: |-
        * `PARTY_ID` - Party id
        * `ACCOUNT` - Account
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [Transaction Monitoring Dashboard: Workflows, Suspensions and Reference Lists](https://documentation.idenfy.com/guides/dashboard/transaction-monitoring/workflows-and-lists.md)
- [Transaction Monitoring API: Sending Transactions](https://documentation.idenfy.com/transaction-monitoring/ingest.md)
- [Transaction Monitoring API: Alerts, Investigations and SARs](https://documentation.idenfy.com/transaction-monitoring/case-management.md)
- [List party suspensions](https://documentation.idenfy.com/api-reference/transaction-monitoring/party-suspensions/list-party-suspensions.md)
- [Retrieve a monitored party](https://documentation.idenfy.com/api-reference/transaction-monitoring/aml-monitoring/retrieve-a-monitored-party.md)


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