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

# Capture Payment

> Capture an authorized payment. Supports partial captures.



## OpenAPI

````yaml POST /capture-payment/{payment_id}
openapi: 3.0.3
info:
  title: Atlas API
  description: >
    Processor-agnostic payment orchestration API with Basis Theory for PCI-free
    tokenization.


    ## Authentication


    All API requests require authentication using an API key in the
    `Authorization` header:

    ```

    Authorization: Bearer sk_test_your_api_key

    ```


    ## Payment Methods


    Atlas supports multiple payment methods:

    - **Card**: Credit and debit cards tokenized via Basis Theory

    - **Apple Pay**: Native Apple Pay integration

    - **Google Pay**: Native Google Pay integration

    - **Bank Account (ACH)**: US bank account payments


    ## Environments


    - **Test**: Use `sk_test_` prefixed keys

    - **Live**: Use `sk_live_` prefixed keys
  version: 1.0.0
  contact:
    name: Atlas Support
    url: https://atlas.co/support
servers:
  - url: https://api.atlas.co/functions/v1
    description: Production API
security:
  - ApiKeyAuth: []
tags:
  - name: Sessions
    description: Payment session management
  - name: Payments
    description: Payment confirmation and processing
  - name: Customers
    description: Customer management
  - name: Products
    description: Product catalog management
  - name: Prices
    description: Price configuration
  - name: Subscriptions
    description: Subscription billing
  - name: Invoices
    description: Invoice management
  - name: Coupons
    description: Discount coupons
  - name: Usage Records
    description: Metered billing usage
  - name: Checkout
    description: Hosted checkout pages
  - name: Portal
    description: Customer self-service portal
  - name: Bank Accounts
    description: ACH bank account management
  - name: Identity Vault
    description: PII tokenization and storage
  - name: KYC
    description: Identity verification
  - name: Ledger
    description: Double-entry ledger accounting
  - name: 3D Secure
    description: 3DS authentication
  - name: Network Tokens
    description: Network token management
  - name: Apple Pay
    description: Apple Pay integration
paths:
  /capture-payment/{payment_id}:
    post:
      tags:
        - Payments
      summary: Capture Payment
      description: Capture an authorized payment. Supports partial captures.
      operationId: capturePayment
      parameters:
        - name: payment_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                amount:
                  type: integer
                  description: Partial capture amount in cents
      responses:
        '200':
          description: Payment captured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Payment'
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  schemas:
    Payment:
      type: object
      properties:
        id:
          type: string
          format: uuid
        session_id:
          type: string
          format: uuid
        amount:
          type: integer
        currency:
          type: string
        status:
          $ref: '#/components/schemas/PaymentStatus'
        payment_method_type:
          $ref: '#/components/schemas/PaymentMethodType'
        psp:
          $ref: '#/components/schemas/PSPName'
        psp_transaction_id:
          type: string
        captured_amount:
          type: integer
        refunded_amount:
          type: integer
        card:
          type: object
          properties:
            brand:
              type: string
            last4:
              type: string
            exp_month:
              type: integer
            exp_year:
              type: integer
        created_at:
          type: string
          format: date-time
    PaymentStatus:
      type: string
      enum:
        - pending
        - authorized
        - captured
        - failed
        - canceled
        - refunded
    PaymentMethodType:
      type: string
      enum:
        - card
        - apple_pay
        - google_pay
        - bank_account
        - paypal
    PSPName:
      type: string
      enum:
        - stripe
        - adyen
        - authorizenet
        - chase
        - nuvei
        - dlocal
        - braintree
        - checkoutcom
        - airwallex
        - windcave
        - paypal
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            type:
              type: string
              enum:
                - api_error
                - authentication_error
                - card_error
                - invalid_request_error
                - validation_error
            code:
              type: string
            message:
              type: string
            param:
              type: string
            request_id:
              type: string
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: API key (sk_test_* or sk_live_*)

````