Skip to main content
A sub-account group lets one payment pay several partners at once. You put existing sub-accounts in a group, give each one a percentage, and attach the group to a payment. Good for: a marketplace paying a seller and a delivery rider, a school sharing fees between departments, an agency paying several collaborators.

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:
Response (201):
A member’s percentage belongs to the group, not the sub-account. The same sub-account can have 30% in one group and 50% in another, and changing the sub-account’s own percentage won’t affect either group.

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
Response: { "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.
members replaces the whole list. To add one partner, send all the existing members plus the new one. The new list is checked again against the 100% limit.
Changes apply to payments completed after the update. Completed payments keep the split they were made with.

Deactivate a group

DELETE /v1/sub-account-groups/:id
This deactivates the group rather than deleting it, so past payments still show which group they used. Returns the group with "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.

Errors

Rules at a glance