Accounts
The connect_split_preview object
How a payment of amount would split with an account under the terms you pass, before anything is saved. Amounts are in the currency's smallest unit (for example 49900 = 499.00 THB).
Attributes
objectstringRequiredString naming the object's type: always
connect_split_preview.accountstringRequiredThe account ID from the path, as you passed it.
account_namestringRequiredThe connected account's display name; empty when
connectedisfalse.connectedbooleanRequiredtruewhen the account is one of your connected accounts.falsefor your own account or one you cannot see; nothing splits then and you keep the wholeamount.modestringRequiredHow the split is set.
application_feeYou keep the application fee and the rest reaches the account. Also the mode when
connectedisfalse.transfer_amounttransfer_amountreaches the account and you keep the rest. Used when you passtransfer_amount.
amountintegerRequiredThe
amountyou passed; a missing or negative one reads as0.application_feeintegerRequiredThe application fee you keep:
application_fee_percentofamount(the percent kept to two decimals, the result rounded half up) when you pass it, elseapplication_fee_amount.0intransfer_amountmode and whenconnectedisfalse.to_accountintegerRequiredWhat reaches the account:
amount−application_fee, ortransfer_amountintransfer_amountmode. Negative when the application fee is more thanamount;0whenconnectedisfalse.you_keepintegerRequiredWhat you keep:
application_fee, oramount−transfer_amountintransfer_amountmode; the wholeamountwhenconnectedisfalse.exceedsbooleanRequiredtruewhen the application fee or the transfer amount is more thanamount.no_feebooleanRequiredtruewhen you keep nothing from the payment.