Capture Pre-Authorised Payment

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

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-Typestringrequired

Specifies the format for the request. Response will be in the same format.

Body application/json

requestobject
Show request properties
order_idstringrequired

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_idintegerrequired

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.

signaturestringrequired

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

versionstring

Specifies the protocol version for the request. Defaults to ‘1.0’.

amountintegerrequired

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 page for a full list of available currencies.

Response

Successful Captured Payment

responseobject
Show response properties
order_idstring

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_statusstring

The processing status of the capture request. Returns success if all request parameters pass validation, or other values if issues occur.

response_codestring

A code indicating the status of the response. Empty if no issues occur, or contains a specific code for declined or failed captures.

capture_statusstring

The processing status of the capture. Indicates whether the capture was successfully completed (captured) or declined (declined).

response_descriptionstring

A message providing additional details about the response. Useful for explaining the reason for declines or other issues, if applicable.

merchant_idinteger

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.

Request
curl -X POST "https://pay.fondy.eu/api/capture/order_id" \
  -H "Content-Type: application/json" \
  -H "Content-Type: <Content-Type>" \
  -d '{
  "request": {
    "order_id": "ORDER_12345678",
    "merchant_id": 1,
    "signature": "1773cf135bd89656131134b98637894dad42f808",
    "version": "1.0",
    "amount": 1020,
    "currency": "AED"
  }
}'
Response
{
  "response": {
    "order_id": "ORDER_12345678",
    "response_status": "success",
    "response_code": "",
    "capture_status": "captured",
    "response_description": "",
    "merchant_id": 1
  }
}