Capture Pre-Auth Transaction
Capture the funds from a previously authorized pre-auth transaction.
Endpoint Information
Name: Capture Transaction (Pre Auth)
Method: POST
URL: {{BASE_URL}}/api/v1/payment/capture-pre-auth-transaction
Description
After a pre-authorization holds funds on a customer's card, you must use this endpoint to finalize the transaction and capture payment.
Authentication
Type: Basic Auth
- Username: App Key
- Password: Secret Key
Request Body
Content-Type: application/json
{
"merchantAccountId": "{{your_account_no}}",
"reference": "DuqXNBv0Q-sk-151s2"
}
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
merchantAccountId | string | Yes | Your merchant account ID |
reference | string | Yes | The reference ID of the pre-authorized transaction |
Response
Success Response
{
"success": true,
"message": "Capture success",
"data": []
}
Response Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Capture success status |
message | string | Response message |
Usage
Use this endpoint only after a successful pre-authorization payment. This completes the payment flow.
Related Endpoints
- Pre-Auth Payment Request - Initiate the pre-authorization