How it works
1
Create the sub-accounts
Each partner needs a
sub-account
first.
2
Create a group
List the sub-accounts and the percentage each one gets. The percentages must
add up to 100% or less.
3
Attach the group to a payment
Pass the group’s
id as sub_account_group when you create a payment
intent.4
Customer pays
Every member’s share goes to its balance. Whatever is left goes to your
balance.
Example
A customer pays 1,000 GMD. Your business pays a 20 GMD fee, so you receive 980 GMD. Your group has two members:
Shares are worked out the same way as for a single sub-account: on what you receive after the fee if your business pays it (the full amount if the customer pays), rounded to the nearest whole GMD, at least 1 GMD each.
On very small payments, the 1 GMD minimum and rounding could add up to more
than the payment. When that happens, the largest shares are reduced so the
members never get more than the payment itself.
Create a group
POST /v1/sub-account-groups
Each item in
members:
201):
Retrieve a group
GET /v1/sub-account-groups/:id
Returns the group with its members and their sub-account details.
List groups
GET /v1/sub-account-groups
{ "data": [ ...groups ], "meta": { "total": 3 } }
Update a group
PUT /v1/sub-account-groups/:id
Send only what you want to change: name, description, active or members.
Deactivate a group
DELETE /v1/sub-account-groups/:id
"active": false. To use it again, update it with "active": true.
What happens when something changes mid-payment
A payment intent is checked when it is created, but the split happens when the customer actually pays. If things change in between:
The customer’s payment never fails because of a group change.
