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

# Drop Transaction

> Drop a transaction that you sent or received, for example a transaction that is blocked by an error. A dropped transaction gets the status `DROPPED` and Procuros does not process it further.

Use the `procurosTransactionId` from `GET /v2/transactions`, from `GET /v2/all-transactions` or from the response of `POST /v2/transactions`. Send the `reason` for the drop. The Procuros Portal shows the reason on the transaction.

If a transaction failed before Procuros accepted it for delivery, only the sender can drop it.

The endpoint returns `404` when the transaction does not exist or is not yours. It returns `409` when the transaction cannot be dropped in its current state, for example because it is already delivered, already dropped or replaced by a newer transaction.



## OpenAPI

````yaml /en/api/v2/openapi-v2.yaml post /v2/transactions/{procurosTransactionId}/drop
openapi: 3.0.3
info:
  title: Procuros API
  description: Manage Procuros Transactions.
  version: 2.0.0
servers:
  - url: https://api.procuros.io/
  - url: https://api.procuros-staging.io/
security:
  - api_token: []
paths:
  /v2/transactions/{procurosTransactionId}/drop:
    post:
      tags:
        - All Transactions
      summary: Drop Transaction
      description: >-
        Drop a transaction that you sent or received, for example a transaction
        that is blocked by an error. A dropped transaction gets the status
        `DROPPED` and Procuros does not process it further.


        Use the `procurosTransactionId` from `GET /v2/transactions`, from `GET
        /v2/all-transactions` or from the response of `POST /v2/transactions`.
        Send the `reason` for the drop. The Procuros Portal shows the reason on
        the transaction.


        If a transaction failed before Procuros accepted it for delivery, only
        the sender can drop it.


        The endpoint returns `404` when the transaction does not exist or is not
        yours. It returns `409` when the transaction cannot be dropped in its
        current state, for example because it is already delivered, already
        dropped or replaced by a newer transaction.
      operationId: v2_drop_transaction
      parameters:
        - name: procurosTransactionId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - reason
              properties:
                reason:
                  type: string
                  maxLength: 1000
                  description: Why you drop the transaction.
            examples:
              Drop Transaction:
                value:
                  reason: Rejected by our ERP
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                    nullable: true
                  data:
                    type: object
                    required:
                      - procurosTransactionId
                      - status
                    properties:
                      procurosTransactionId:
                        allOf:
                          - $ref: '#/components/schemas/ProcurosTransactionId'
                        description: >-
                          ID of the dropped transaction. It can differ from the
                          ID in the path.
                      status:
                        $ref: '#/components/schemas/TransactionStatus'
              examples:
                Dropped:
                  value:
                    success: true
                    message: null
                    data:
                      procurosTransactionId: 949b2f25-fd9d-4c58-8899-b4dc277f8cf9
                      status: DROPPED
        '404':
          description: Transaction not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalErrorResponse'
              examples:
                Not Found:
                  value:
                    success: false
                    message: Transaction not found
                    errors: []
        '409':
          description: The transaction cannot be dropped in its current state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalErrorResponse'
              examples:
                Not Droppable:
                  value:
                    success: false
                    message: Transaction is not in a droppable state
                    errors: []
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneralValidationErrorResponse'
        4XX:
          description: Client Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalErrorResponse'
        5XX:
          description: Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalErrorResponse'
              examples:
                Drop Failed:
                  value:
                    success: false
                    message: Transaction could not be dropped
                    errors: []
components:
  schemas:
    ProcurosTransactionId:
      type: string
      description: Unique ID assigned to every transaction on the Procuros Network.
      format: uuid
      example: 949b2f25-fd9d-4c58-8899-b4dc277f8cf9
    TransactionStatus:
      type: string
      description: Current status of the transaction.
      enum:
        - PENDING
        - SUCCESS
        - FAILED
        - DROPPED
        - UNKNOWN
    InternalErrorResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    GeneralValidationErrorResponse:
      type: object
      required:
        - message
        - errors
      properties:
        message:
          type: string
        errors:
          $ref: '#/components/schemas/ValidationError'
    ValidationError:
      type: object
      additionalProperties:
        type: array
        description: List of validation errors.
        minItems: 1
        items:
          type: string
  securitySchemes:
    api_token:
      type: http
      scheme: bearer
      description: The API Token of your ERP Connection.

````

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