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

# Get payment details by ID



## OpenAPI

````yaml /swagger.yml get /api/v0/test-payment/{id}
openapi: 3.0.0
info:
  title: Devdraft AI Payment & Business Management API
  description: >-

    A comprehensive payment processing and business management API that enables
    seamless integration of cryptocurrency and traditional payment methods.
        
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.devdraft.ai
    description: Production Server
security: []
tags: []
paths:
  /api/v0/test-payment/{id}:
    get:
      tags:
        - Test Payments
      summary: Get payment details by ID
      operationId: TestPaymentController_getPayment_v0
      parameters:
        - name: id
          required: true
          in: path
          description: Payment ID
          schema:
            type: string
      responses:
        '200':
          description: Payment details retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentResponseDto'
        '400':
          description: |-
            Bad Request. The idempotency key is missing or invalid.
              
            Sample response:
            ```json
            {
              "statusCode": 400,
              "message": "The idempotency-key header is required for POST requests"
            }
            ```
        '401':
          description: Unauthorized. Client key or secret is invalid or missing.
        '409':
          description: >-
            Idempotency Conflict. The provided idempotency key was already used
            with different parameters.
              
            Sample response:

            ```json

            {
              "statusCode": 409,
              "message": "Conflict: Idempotency key already used with different request data"
            }

            ```
        '429':
          description: Too many requests, rate limit exceeded.
      security:
        - x-client-secret: []
        - x-client-key: []
components:
  schemas:
    PaymentResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Payment ID
          example: pay_12345abcdef
        amount:
          type: number
          description: The amount charged
          example: 100.5
        currency:
          type: string
          description: The currency code
          example: USD
        status:
          type: string
          description: Payment status
          example: succeeded
        timestamp:
          type: string
          description: Timestamp of the payment
          example: '2023-07-01T12:00:00.000Z'
      required:
        - id
        - amount
        - currency
        - status
        - timestamp
  securitySchemes:
    x-client-secret:
      type: apiKey
      in: header
      name: x-client-secret
      description: >-
        Your secret API key. Keep this secure and never expose it in client-side
        code.
    x-client-key:
      type: apiKey
      in: header
      name: x-client-key
      description: Your unique client API key. Obtain this from your Devdraft AI dashboard.

````