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

# Void

> `VOID` an unsettled transaction.



## OpenAPI

````yaml https://cdn.ecrypt.dev/swagger/gateway-swagger-v31.json post /v1/transactions/void
openapi: 3.0.4
info:
  title: Ecrypt.Gateway.Api
  description: Ecrypt API
  contact:
    name: Ecrypt
    url: https://www.ecrypt.com/
    email: Engineering@Ecrypt.com
  version: 1.0.0.0
servers:
  - url: https://api.ecrypt.com
    description: Production
security:
  - X-Api-Key: []
tags:
  - name: Customers
  - name: Customers Subscription
  - name: Customers Wallet
  - name: Dynamic Checkout
  - name: Subscriptions
  - name: Terminals
  - name: Tokens
  - name: Transactions
paths:
  /v1/transactions/void:
    post:
      tags:
        - Transactions
      summary: Void
      description: '`VOID` an unsettled transaction.'
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/Ecrypt.Gateway.Api.Core.Model.Transactions.TransactionVoidRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/Ecrypt.Gateway.Api.Core.Model.Transactions.TransactionVoidRequest
          application/*+json:
            schema:
              $ref: >-
                #/components/schemas/Ecrypt.Gateway.Api.Core.Model.Transactions.TransactionVoidRequest
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.IActionResult'
        '204':
          description: No Content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.IActionResult'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '429':
          description: Too Many Requests
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
components:
  schemas:
    Ecrypt.Gateway.Api.Core.Model.Transactions.TransactionVoidRequest:
      required:
        - transactionId
      type: object
      properties:
        transaction_id:
          minLength: 1
          pattern: ^[0-9]*$
          type: string
          description: Transaction Id to void
      additionalProperties: false
      nullable: true
    Microsoft.AspNetCore.Mvc.IActionResult:
      type: object
      additionalProperties: false
      nullable: true
    Microsoft.AspNetCore.Mvc.ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
      nullable: true
  securitySchemes:
    X-Api-Key:
      type: apiKey
      description: Use this
      name: X-Api-Key
      in: header

````

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