Payment split
Payment split lets you divide the net amount of an order between a marketplace and one or more pre-registered recipients. This guide walks through the end-to-end flow and product rules. Each individual endpoint is documented on the reference pages linked at the bottom of each section.
Flow overview
The process has three blocks:
- Onboarding & KYC — register the recipient and complete the mandatory facematch.
- Order split — divide the order's net value between the marketplace and the recipients.
- Withdrawal — check balances and request a payout (with or without anticipation).
Rules
- Split cannot be created or modified on orders with
approvedstatus. Create the split before payment approval. - The split distributes the order's net amount (
partner_total: total paid minus Appmax fees). Fees are deducted from the marketplace — each recipient receives exactly theamountsent. Example:
| Component | Amount |
|---|---|
| Order (gross) | R$ 100.00 |
| Net amount (after fees) | R$ 90.00 |
| Split to recipients | R$ 40.00 |
| Marketplace balance | R$ 50.00 |
The sum of
amountis validated against the order's total amount, not the net amount. If it exceedspartner_total, the split is not reduced and no error is returned: the difference comes out of the marketplace, which ends up negative on the order. Keep the sum within the net amount, available atGET /v1/orders/total-liquid/{order_id}— details in What happens if the sum exceedspartner_total?.All amounts in split and withdrawal payloads are always in cents (integers).
Recipient status
Recipient onboarding goes through three statuses (Awaiting face match completion, Onboarding on verification and Onboarding completed), returned by GET /recipient/{recipient_hash}/status. A recipient_hash can only be used in a split after it reaches Onboarding completed.
The meaning of each status, transitions, eligibility per state, and withdraw request (WithdrawRequest) statuses are in Payment split status.
Endpoints per stage
Onboarding & KYC
- Create a recipient —
POST /recipient - Create facematch link (KYC) —
POST /recipient/{recipient_hash}/facematch-link - Get recipient status —
GET /recipient/{recipient_hash}/status
Order split
- Create order split —
POST /orders/{orderId}/split-order
Withdrawal
- Get recipient balances —
GET /recipient/{recipient_hash}/balances - Simulate withdrawal anticipation —
GET /recipient/{recipient_hash}/withdraw-request/anticipation/simulate - Request withdrawal anticipation —
POST /recipient/{recipient_hash}/withdraw-request/anticipation - Request withdrawal with available balance —
POST /recipient/{recipient_hash}/withdraw-request/available - Get withdrawal request —
GET /withdraw-request/{withdrawRequestId}
Withdrawal vs anticipation
There are two balance types and two distinct endpoints to withdraw them:
| Balance type | Endpoint | Use |
|---|---|---|
available | POST /recipient/{recipient_hash}/withdraw-request/available | Already released balance. Direct withdrawal, no anticipation fee. |
to_release | POST /recipient/{recipient_hash}/withdraw-request/anticipation | Not-yet-released balance. Anticipated payout with fee applied. |
Before requesting an anticipation, use the simulation endpoint to show the recipient the net amount and applied fee — the simulation does not create any request.
Authentication
Split routes use the merchant token (Authorization: Bearer <token>); app credentials do not work. See Authentication.
See also
TIP
Common questions about registration, editing, deletion, KYC and SMS are grouped in FAQ — Payment split.