Xendit Split Payments
If your platform charges a fee or commission when facilitating payments for your partners, or if you need to split payments between multiple parties, this feature enables you to do so automatically. Xendit via Hyperswitch offers multiple ways to route your payments based on your specific use cases.
Partner to Platform
Partner to Partner
Platform to Partner
Accepting Payments for Sub-Accounts
For more information on these types, refer here
Split Xendit payments via Hyperswitch
Split payments between multiple sub-merchants, partners, or platforms by including the Xendit split rules in the payment creation API request.
Parameters
name Name to identify split rule. Not required to be unique. Typically based on transaction and/or sub-merchant types
description Description to identify fee rule
for_user_id [Optional] The sub-account user-id
routes: Array of objects that define how the platform wants to route the fees and to which accounts. Each Route object is equivalent to a single payment split from the end user to a destination account| a) flat_amount [Optional] Amount of payments to be split, using flat rate as a unit. This will be null if not applicable. This will be required if percent_amount is null. b) percent_amount Number Amount of payments to be split, using a percent rate as unit. This will be null if not applicable. This will be required if flat_amount is null. Percent amounts are rounded off to the nearest monetary unit. c) destination_account_id string ID of the destination account where the amount will be routed to. This could be the ID of your platform or sub account. d) reference_id Reference ID which acts as an identifier of the route itself. This is used to distinguish in case one split rule has multiple routes of the same destinations. Its value must be unique and case sensitive for every route object under the same Split Rule.
Response of Payment Create will Include
Accept Payments for Sub-Accounts
Include this following request in the payments create
Refunds for Xendit Split Payments
If you have made a split payment using for_user_id
, whether for multiple split payments or a single split payment, you will need to include the associated for_user_id
in the refund request.
Last updated
Was this helpful?