Skip to main content
POST
/
preauth
/
capture
Capture Pre-Authorization
curl --request POST \
  --url https://testapi.fractalpay.com/api/v1/preauth/capture \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "merchant_key": "{{merchant_key}}",
  "transaction_id": "txn_f84144f73a"
}
'
{
  "result": true,
  "message": "Payment captured successfully.",
  "data": {
    "Status": "Approved",
    "Account": "0043",
    "Brand": "Visa",
    "AuthCode": "",
    "amount": "11.00",
    "Authorized": 11,
    "orderid": "5467",
    "transaction_id": "txn_77c9a625a3",
    "net_amount": 10.64
  }
}

Authorizations

Authorization
string
header
required

Use your Fractal API credentials.

Username = Client ID Password = Secret Key

Sandbox credentials can be generated from the Test Portal.

Body

application/json
merchant_key
string
required

The merchant's unique API key.

Example:

"{{merchant_key}}"

transaction_id
string
required

The guid of the preauthorization to capture. Always use the original preauthorization transaction ID — not the ID returned by a previous update.

Example:

"txn_f84144f73a"

Response

Capture successful

result
boolean
Example:

true

message
string
Example:

"Payment captured successfully."

data
object