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

# Void a payment



## OpenAPI

````yaml /products/commerce/v1/openapi.yaml post /payments/{payment_id}/void
openapi: 3.1.0
info:
  license:
    name: Hellgate® API License
    url: https://starfish.team
  title: Commerce
  version: '0.1'
servers:
  - url: https://commerce1.on-hellgate.dev
    variables: {}
security:
  - mtls: []
  - api_key: []
tags: []
paths:
  /payments/{payment_id}/void:
    post:
      tags:
        - payments
      summary: Void a payment
      operationId: CommerceWeb.Payments.PaymentController.void
      parameters:
        - description: >-
            Identifies the account. Required when authenticating via mTLS — omit
            when using an API key (account is inferred from the key).
          in: header
          name: X-Account-ID
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
        - description: Payment ID
          in: path
          name: payment_id
          required: true
          schema:
            type: string
            x-struct: null
            x-validate: null
        - description: Idempotency key
          in: header
          name: X-Idempotency-Key
          required: false
          schema:
            type: string
            x-struct: null
            x-validate: null
      responses:
        '200':
          description: No content
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Error
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Error
      callbacks: {}
components:
  schemas:
    ErrorResponse:
      properties:
        classifier:
          type: string
          x-struct: null
          x-validate: null
        code:
          type: integer
          x-struct: null
          x-validate: null
        message:
          type: string
          x-struct: null
          x-validate: null
      required:
        - code
        - classifier
        - message
      title: ErrorResponse
      type: object
      x-struct: Elixir.CommerceWeb.Schemas.ErrorsSchema.ErrorResponse
      x-validate: null
  securitySchemes:
    mtls:
      description: >-
        Client certificate authentication via mTLS. Account-scoped routes
        additionally require the X-Account-ID header to identify the account.
      type: mutualTLS
    api_key:
      in: header
      name: X-API-Key
      type: apiKey

````