Log inGet started
Airwallex logo
Home
Online Payments
Treasury
Transactional FX
Payouts
Issuing
Scale
Open Banking
Developer Tools
API Reference
Home
Online Payments
Overview
Starting with paymentsAirwallex platform overviewOnline payments modelPricing model
Platforms
IntroductionProcess payments and manage fundsManage split funds flowReverse split funds
Payments owned by connected account, funds reversed from platform account
Payments owned by platform account, funds reversed from connected account(s)

Payments owned by connected account, funds reversed from platform account

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"
$ curl --request POST \
> 'https://pci-api-demo.airwallex.com/api/v1/pa/payment_intents/create' \
> -H 'Content-Type: application/json' \
> -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0b20iLCJyb2xlcyI6WyJ1c2VyIl0sImlhdCI6MTQ4ODQxNT I1NywiZXhwIjoxNDg4NDE1MjY3fQ.UHqau03y5kEk5lFbTp7J4a-U6LXsfxIVNEsux85hj-Q' \
> -H 'x-on-behalf-of: acct_ad1KMcnQM2Wmo2PFSuvR2g \
> -d'{
  "request_id": "ee939540-3203-4a2c-9172-89a566485dd9",
  "merchant_order_id": "cc9bfc13-ba30-483b-a62c-ee925fc9bfea",
  "amount": 100,
  "currency": "GBP"
}'
  1. 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).
$ curl --request POST \
> 'https://pci-api-demo.airwallex.com/api/v1/pa/funds_splits/create' \
> -H 'Content-Type: application/json' \
> -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0b20iLCJyb2xlcyI6WyJ1c2VyIl0sImlhdCI6MTQ4ODQxNT I1NywiZXhwIjoxNDg4NDE1MjY3fQ.UHqau03y5kEk5lFbTp7J4a-U6LXsfxIVNEsux85hj-Q' \
> -H 'x-on-behalf-of: acct_ad1KMcnQM2Wmo2PFSuvR2g \
> -d'{
   "request_id": "ee939540-3203-4a2c-9172-89a566485dd9",
   "source_id":  "int_e65tkXCSzJrsMpTrzoFrjaau53",
   "source_type":"PAYMENT_INTENT",
   "amount": 10, 
   "destination":"acct_ITNg64dHNgihu9rPpWeiMg",
   "metadata": { 
       "reason": "commission agreed with seller A"
   }
}'
  1. 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.
$ curl --request POST \
> 'https://pci-api-demo.airwallex.com/api/v1/pa/funds_split_reversals/create' \
> -H 'Content-Type: application/json' \
> -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0b20iLCJyb2xlcyI6WyJ1c2VyIl0sImlhdCI6MTQ4ODQxNT I1NywiZXhwIjoxNDg4NDE1MjY3fQ.UHqau03y5kEk5lFbTp7J4a-U6LXsfxIVNEsux85hj-Q' \
> -H 'x-on-behalf-of: acct_ad1KMcnQM2Wmo2PFSuvR2g \
> -d'{
   "request_id": "ee939540-3203-4a2c-9172-89a566485dd9",
   "amount": 10, 
   "funds_split_id": "spt_hkstskz7vg1xc7uscdj", 
   "metadata": { 
       "reason": "return the commission to seller A due to refund"
   }
}'