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

# Get a payment method document



## OpenAPI

````yaml /products/commerce/v1/openapi.yaml get /payment-methods/{payment_method_token}/document
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:
  /payment-methods/{payment_method_token}/document:
    get:
      tags:
        - payment_methods
      summary: Get a payment method document
      operationId: CommerceWeb.Customers.PaymentMethodController.document
      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 method token
          in: path
          name: payment_method_token
          required: true
          schema:
            type: string
            x-struct: null
            x-validate: null
      responses:
        '200':
          content:
            application/pdf: {}
          description: PDF document
        '404':
          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

````