# Split a payment

Set a split rule on a platform so each confirmed agent payment is shared between the platform and its merchants in fixed proportions, with one ledger entry and a payout receipt.

<ShortProductTruth>**One payment, several payees, one record.** A platform sets once how each payment is shared. After the payment is confirmed, Abazi pays every share, posts one balanced ledger transaction and issues a payout receipt linked to the payment's receipt.</ShortProductTruth>

## What you end up with [#what-you-end-up-with]

A marketplace where an agent buys a merchant's service once, and the money ends up in two or more places: for example 90 percent to the merchant and 10 percent to the platform. Each recipient sees its payout; finance sees one balanced entry; the payer's receipt links to the payout receipt.

## Steps [#steps]

<Steps>
<Step>

### Write the split rule [#write-the-split-rule]

In the platform console, open Splits and add a rule for a service, or for all of the platform's services. Each recipient is a merchant, the platform itself, or a payout address, with a share in basis points (1 to 10000). The shares must add up to exactly 10000, and a rule has at most 20 recipients. There are no fixed-amount shares.

<Screenshot id="platform-splits" />

</Step>
<Step>

### An agent pays [#an-agent-pays]

The agent buys the service as usual. Nothing about the split reaches the agent or the policy: the owner's mandate applies to the full price, and the payment is decided, reserved, signed and settled like any other.

</Step>
<Step>

### Abazi splits after confirmation [#abazi-splits-after-confirmation]

Once the payment is confirmed and its receipt issued, Abazi computes each share from the rule. Rounding is absorbed by the last recipient, so the shares always add up to the payment. Each recipient is paid with its own transfer.

| Recipient | Share | Of a 0.30 USDC payment |
| --- | --- | --- |
| Merchant | 9000 basis points | 0.27 USDC |
| Platform | 1000 basis points | 0.03 USDC |

</Step>
<Step>

### See the record [#see-the-record]

The split is one balanced ledger transaction and one payout receipt, linked to the payment receipt. Each recipient's transfer emits its own event, so a failed share is visible on its own.

<Screenshot id="merchant-payouts" />

</Step>
</Steps>

## Boundaries [#boundaries]

- Splits apply to confirmed stablecoin payments. Card payments are not split.
- Payout transfers are sent on chain for payments settled on Solana. For payments on other networks, the split is computed and recorded in the ledger and the payout receipt; the share transfers are not sent on chain.
- Splits happen after confirmation, never before: a payment that fails or is denied is never split.

## Failure cases [#failure-cases]

| Situation | Result |
| --- | --- |
| Shares do not add up to 10000 | The rule is refused when it is saved. |
| A recipient's transfer fails | That share is reported as failed with its own event; the other shares are unaffected. |
| The payment is refunded later | The refund has its own receipt, linked to the payment's. |

## Next steps [#next-steps]

<Cards>
  <Card title="Connect" href="/docs/products/connect" description="Read how platforms add accounts, consent and splits." />
  <Card title="Accept agent payments" href="/docs/guides/accept-agent-payments" description="Put a price on the service the split applies to." />
  <Card title="Ledger" href="/docs/products/ledger" description="See how payments, refunds and payouts are posted in double entry." />
</Cards>

