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

# Verify a payment



## OpenAPI

````yaml /products/commerce/v1/openapi.yaml post /payments-verification
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-verification:
    post:
      tags:
        - payments
      summary: Verify a payment
      operationId: CommerceWeb.Payments.PaymentController.verification
      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
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaymentIntentParams'
        description: Body
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentIntentParams'
          description: Success
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Error
      callbacks: {}
components:
  schemas:
    PaymentIntentParams:
      anyOf:
        - required:
            - continuation
          x-struct: null
          x-validate: null
        - required:
            - payment_method
          x-struct: null
          x-validate: null
      properties:
        additional_information:
          type: object
          x-struct: null
          x-validate: null
        amount:
          minimum: 0
          type: integer
          x-struct: null
          x-validate: null
        continuation:
          properties:
            error:
              format: uri
              type: string
              x-struct: null
              x-validate: null
            success:
              format: uri
              type: string
              x-struct: null
              x-validate: null
          required:
            - success
            - error
          type: object
          x-struct: null
          x-validate: null
        currency_code:
          type: string
          x-struct: null
          x-validate: null
        customer_id:
          format: uuid
          type: string
          x-struct: null
          x-validate: null
        distributions:
          items:
            properties:
              amount:
                minimum: 1
                type: integer
                x-struct: null
                x-validate: null
              description:
                type: string
                x-struct: null
                x-validate: null
              seller_account_id:
                format: uuid
                type: string
                x-struct: null
                x-validate: null
            required:
              - amount
              - seller_account_id
            type: object
            x-struct: null
            x-validate: null
          type: array
          x-struct: null
          x-validate: null
        metadata:
          additionalProperties:
            maxLength: 80
            type: string
            x-struct: null
            x-validate: null
          description: >-
            Key-value pairs. Max 20 entries. Keys max 20 characters, values must
            be strings max 80 characters. No nested objects.
          maxProperties: 20
          type: object
          x-struct: null
          x-validate: null
        order_id:
          type: string
          x-struct: null
          x-validate: null
        payment_method:
          description: >-
            Token is required for all types except BANK_TRANSFER. For
            BANK_TRANSFER, token must not be provided.
          properties:
            first_payment_reference:
              format: uuid
              type: string
              x-struct: null
              x-validate: null
            token:
              format: uuid
              type: string
              x-struct: null
              x-validate: null
            type:
              enum:
                - FIRST_PAYMENT
                - RECURRING
                - ONE_OFF
                - CUSTOMER_PRESENT
                - BANK_TRANSFER
              type: string
              x-struct: null
              x-validate: null
          required:
            - type
          type: object
          x-struct: null
          x-validate: null
        vault_payment_method:
          description: When true, customer_id is required.
          type: boolean
          x-struct: null
          x-validate: null
      required:
        - order_id
        - amount
        - currency_code
      title: PaymentIntentParams
      type: object
      x-struct: Elixir.CommerceWeb.Schemas.PaymentsSchema.PaymentIntentParams
      x-validate: null
    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

````