Airwallex logo
Airwallex logoAirwallex logo

Funds reversed from connected account(s)

Copy for LLMView as Markdown

With this model, payments belong to the platform account solely. The platform account is responsible for Payments fees, refunds, and chargebacks. Normally the majority of funds will be split into one or many connected accounts. So when the payments finally end up being refunded or chargeback, it is likely that the platform wants to reimburse the deficit by taking back the funds.

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 model2

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. Platform creates payment intent for 100 GBP with connected account 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 -d '{
    5 "request_id": "ee939540-3203-4a2c-9172-89a566485dd9",
    6 "merchant_order_id": "cc9bfc13-ba30-483b-a62c-ee925fc9bfea",
    7 "amount": 100,
    8 "currency": "GBP"
    9 }'
  2. After payment has been successfully captured, Platform creates two FundsSplit with 40 GBP going to one connected account and 30 GBP to the other. Funds are settled in all parties' wallets.

    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 -d '{
    5 "request_id": "ee939540-3203-4a2c-9172-89a566485dd9",
    6 "source_id": "int_e65tkXCSzJrsMpTrzoFrjaau53",
    7 "source_type": "PAYMENT_INTENT",
    8 "amount": 40,
    9 "destination": "acct_ij2YyjhFNv-BGPsjqHuI3w",
    10 "metadata": {
    11 "reason": "disbursement to seller A"
    12 }
    13 }'
    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 -d '{
    5 "request_id": "ee939540-3203-4a2c-9172-89a566485dd9",
    6 "source_id": "int_e65tkXCSzJrsMpTrzoFrjaau53",
    7 "source_type": "PAYMENT_INTENT",
    8 "amount": 35,
    9 "destination": "acct_aD5rChdqMoCkSn3WseuKLw",
    10 "metadata": {
    11 "reason": "disbursement to seller B"
    12 }
    13 }'
  3. The platform creates two FundsSplitReversal mapping with each FundsSplit to take the money back. Both connected accounts will be deducted with the amount after the settlement cycle and the platform will be settled with 70 GBP in total as the result.

    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 -d '{
    5 "request_id": "ee939540-3203-4a2c-9172-89a566485dd9",
    6 "amount": 40,
    7 "funds_split_id": "spt_hkpdlwkjcg6cx3vss1w",
    8 "metadata": {
    9 "reason": "reimburse from seller A as the item has been refunded"
    10 }
    11 }'
    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 -d '{
    5 "request_id": "ee939540-3203-4a2c-9172-89a566485dd9",
    6 "amount": 30,
    7 "funds_split_id": "spt_hkpdp89lhg6cn6p4nhg",
    8 "metadata": {
    9 "reason": "reimburse from seller B as the item has been refunded"
    10 }
    11 }'
Was this page helpful?