# Capture Pre-Authorised Payment

> For the complete documentation index, see [llms.txt](https://docs.fondy.io/llms.txt).

This endpoint allows a merchant to capture a previously pre-authorised amount on a card. The capture operation is the second stage in a two-stage payment scheme, where the initial amount was held during a pre-authorisation request (`preauth = Y`). This capture can be a full or partial capture of the amount.

> 📘 Note
> This operation applies only to card payments. If capture is not completed, only a reversal of the full held amount is available.

**POST** `/capture/order_id`

Base URL: `https://pay.fondy.eu/api`

This endpoint allows a merchant to capture a previously pre-authorised amount on a card. The capture operation is the second stage in a two-stage payment scheme, where the initial amount was held during a pre-authorisation request (`preauth = Y`). This capture can be a full or partial capture of the amount.

> 📘 Note
> This operation applies only to card payments. If capture is not completed, only a reversal of the full held amount is available.

## Header parameters

- `Content-Type` (string, required)
  Specifies the format for the request. Response will be in the same format.

## Body

Content type: `application/json`

- `request` (object)
  - `order_id` (string, required)
    A unique identifier for the order. This can be any value defined by the merchant, allowing you to use any internal order identification system your business employs.
  - `merchant_id` (integer, required)
    A unique identifier assigned to the merchant by Fondy upon account registration. This ID is required for authenticating requests and associating transactions with the merchant's account.
  - `signature` (string, required)
    Signature for request verification, generated according to Fondy’s algorithm. Required to verify merchant request consistency and authenticity.
    Learn how to use Fondy’s algorithm at the [Signature Generation for Request and Response](doc:signatures) page.
  - `version` (string)
    Specifies the protocol version for the request. Defaults to '1.0'.
  - `amount` (integer, required)
    The amount to capture for the transaction, specified in the smallest unit of the currency (e.g., cents for USD). For example, `1020` represents $10.20.
  - `currency` ("AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LTL" | "LVL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "STD" | "SVC" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XOF" | "XPF" | "YER" | "ZAR" | "ZMW" | "ZWD", required)
    Currency for the transaction (e.g., GBP, EUR, USD). Refer to the [Currencies](doc:supported-currencies) page for a full list of available currencies.

Example:

```json
{
  "request": {
    "order_id": "ORDER_12345678",
    "merchant_id": 1,
    "signature": "1773cf135bd89656131134b98637894dad42f808",
    "version": "1.0",
    "amount": 1020,
    "currency": "AED"
  }
}
```

## Responses

### 200

Successful Captured Payment

- `response` (object)
  - `order_id` (string)
    A unique identifier for the order. This can be any value defined by the merchant, allowing you to use any internal order identification system your business employs.
  - `response_status` (string)
    The processing status of the capture request. Returns `success` if all request parameters pass validation, or other values if issues occur.
  - `response_code` (string)
    A code indicating the status of the response. Empty if no issues occur, or contains a specific code for declined or failed captures.
  - `capture_status` (string)
    The processing status of the capture. Indicates whether the capture was successfully completed (`captured`) or declined (`declined`).
  - `response_description` (string)
    A message providing additional details about the response. Useful for explaining the reason for declines or other issues, if applicable.
  - `merchant_id` (integer)
    A unique identifier assigned to the merchant by Fondy upon account registration. This ID is required for authenticating requests and associating transactions with the merchant's account.

Example:

```json
{
  "response": {
    "order_id": "ORDER_12345678",
    "response_status": "success",
    "response_code": "",
    "capture_status": "captured",
    "response_description": "",
    "merchant_id": 1
  }
}
```