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

# Capture

> `CAPTURE` a previous 'AUTHORIZTION'.  Capture for up to the amount authorized.  Specific merchants with
tip at time of sale or tip adjust enabled can capture over the authorization amount.



## OpenAPI

````yaml https://cdn.ecrypt.dev/swagger/gateway-swagger-v31.json post /v1/transactions/capture
openapi: 3.0.4
info:
  title: Ecrypt.Gateway.Api
  description: Ecrypt API
  contact:
    name: Ecrypt
    url: https://www.ecrypt.com/
    email: Engineering@Ecrypt.com
  version: 1.0.0.0
servers:
  - url: https://api.ecrypt.com
    description: Production
security:
  - X-Api-Key: []
tags:
  - name: Customers
  - name: Customers Subscription
  - name: Customers Wallet
  - name: Dynamic Checkout
  - name: Subscriptions
  - name: Terminals
  - name: Tokens
  - name: Transactions
paths:
  /v1/transactions/capture:
    post:
      tags:
        - Transactions
      summary: Capture
      description: "`CAPTURE` a previous 'AUTHORIZTION'.  Capture for up to the amount authorized.  Specific merchants with\r\ntip at time of sale or tip adjust enabled can capture over the authorization amount."
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/Ecrypt.Gateway.Api.Core.Model.Transactions.TransactionCaptureRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/Ecrypt.Gateway.Api.Core.Model.Transactions.TransactionCaptureRequest
          application/*+json:
            schema:
              $ref: >-
                #/components/schemas/Ecrypt.Gateway.Api.Core.Model.Transactions.TransactionCaptureRequest
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.IActionResult'
        '204':
          description: No Content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.IActionResult'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '429':
          description: Too Many Requests
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
components:
  schemas:
    Ecrypt.Gateway.Api.Core.Model.Transactions.TransactionCaptureRequest:
      required:
        - amount
        - transactionId
      type: object
      properties:
        transaction_id:
          minLength: 1
          pattern: ^[0-9]*$
          type: string
          description: "transactionid\r\nOriginal payment gateway transaction id"
        amount:
          maximum: 999999999.99
          minimum: 0.01
          type: number
          description: "amount\r\nTotal amount to be settled. This amount must be equal to or less than the original authorized amount.\r\nFormat: x.xx"
          format: decimal
      additionalProperties: false
      nullable: true
    Microsoft.AspNetCore.Mvc.IActionResult:
      type: object
      additionalProperties: false
      nullable: true
    Microsoft.AspNetCore.Mvc.ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
      nullable: true
  securitySchemes:
    X-Api-Key:
      type: apiKey
      description: Use this
      name: X-Api-Key
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.