Airwallex logo
Airwallex logoAirwallex logo

Funds reversed from platform account

Copy for LLMView as Markdown

With this model, payments belong to a connected account so it will bear all the Payments fees, refunds, and chargebacks. A portion of the captured funds has been split to the platform account as a service fee or commission.

To help the connected account cover its deficit of funds, the platform can initiate a FundsSplitReversal on behalf of the connected account with the x-on-behalf-of header.

The below chart illustrates how a standard one-off 100 GBP payment is split and reversed between the Platform and connected account in this model.

Split Reversal Model 1

Note:

If the original FundsSplit is in manual-release mode, you need to release the funds first so that they could be reversed back.

  1. The platform creates payment_intent with 100 GBP on behalf of connected account with id "acct_ad1KMcnQM2Wmo2PFSuvR2g"

    Shell
    1curl -X POST https://api-demo.airwallex.com/api/v1/pa/payment_intents/create \
    2 -H 'Content-Type: application/json' \
    3 -H 'Authorization: Bearer {{ACCESS_TOKEN}}' \
    4 -H 'x-on-behalf-of: acct_ad1KMcnQM2Wmo2PFSuvR2g' \
    5 -d '{
    6 "request_id": "ee939540-3203-4a2c-9172-89a566485dd9",
    7 "merchant_order_id": "cc9bfc13-ba30-483b-a62c-ee925fc9bfea",
    8 "amount": 100,
    9 "currency": "GBP"
    10 }'
  2. After payment has been successfully captured, Platform creates FundsSplit with 10 GBP on behalf of the connected account, where the destination is filled with the platform’s account_id. With the scheduled settlement cycle, platform receives 10 GBP as commission and the connected account receives the remaining 85 GBP (5 GBP Airwallex fees been netted).

    Shell
    1curl -X POST https://api-demo.airwallex.com/api/v1/pa/funds_splits/create \
    2 -H 'Content-Type: application/json' \
    3 -H 'Authorization: Bearer {{ACCESS_TOKEN}}' \
    4 -H 'x-on-behalf-of: acct_ad1KMcnQM2Wmo2PFSuvR2g' \
    5 -d '{
    6 "request_id": "ee939540-3203-4a2c-9172-89a566485dd9",
    7 "source_id": "int_e65tkXCSzJrsMpTrzoFrjaau53",
    8 "source_type": "PAYMENT_INTENT",
    9 "amount": 10,
    10 "destination": "acct_ITNg64dHNgihu9rPpWeiMg",
    11 "metadata": {
    12 "reason": "commission agreed with seller A"
    13 }
    14 }'
  3. The platform creates FundsSplitReversal on behalf of the connected account and attaches it with the id of the original FundsSplit. Similar to FundsSplit, Platform can use metadata to record the purpose of conducting the FundsSplitReversal. The platform will be deducted with 10 GBP after the settlement cycle whilst the connected account’s settlement batch will be added with 10 GBP.

    Shell
    1curl -X POST https://api-demo.airwallex.com/api/v1/pa/funds_split_reversals/create \
    2 -H 'Content-Type: application/json' \
    3 -H 'Authorization: Bearer {{ACCESS_TOKEN}}' \
    4 -H 'x-on-behalf-of: acct_ad1KMcnQM2Wmo2PFSuvR2g' \
    5 -d '{
    6 "request_id": "ee939540-3203-4a2c-9172-89a566485dd9",
    7 "amount": 10,
    8 "funds_split_id": "spt_hkstskz7vg1xc7uscdj",
    9 "metadata": {
    10 "reason": "return the commission to seller A due to refund"
    11 }
    12 }'
Was this page helpful?