The second step in processing payout transactions is to capture transactions using the referenceId from the authorization. Captured authorized payouts are batched, and are processed when the batch is run.

This guide explains how to capture a single payout transactions with the Payabli API.

You can only capture authorized payout transactions. See Authorize a Payout Transaction for help.

Build the request

First, choose an endpoint. If you’re testing, use the Sandbox endpoint..

Authenticate

Authenticate by sending your API token in the request header with the key requestToken:
--header 'requestToken: API TOKEN'

Path parameters

There is one required path parameter.

referenceId
string
required

The authorized payout transaction’s ID. This is available in the authorization response.

Example request

This example captures the authorized payout transaction with ID 129-219.

Capture an authorized transaction for payout
curl --request GET \
     --url https://api-sandbox.payabli.com/api/MoneyOut/capture/129-219 \
     --header 'accept: application/json' \
     --header 'requestToken: <insert API token>'

Example response

A successful request returns a JSON response.

Capture an authorized payout transaction
{
  "responseText": "Success",
  "isSuccess": true,
  "responseData": {
    "authCode": null,
    "referenceId": "129-219",
    "resultCode": 1,
    "resultText": "Captured",
    "avsResponseText": null,
    "cvvResponseText": null,
    "customerId": 53
  }
}