Skip to content

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:

  1. Onboarding & KYC — register the recipient and complete the mandatory facematch.
  2. Order split — divide the order's net value between the marketplace and the recipients.
  3. Withdrawal — check balances and request a payout (with or without anticipation).

Rules ​

  • Split cannot be created or modified on orders with approved status. 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 the amount sent. Example:
ComponentAmount
Order (gross)R$ 100.00
Net amount (after fees)R$ 90.00
Split to recipientsR$ 40.00
Marketplace balanceR$ 50.00
  • The sum of amount is validated against the order's total amount, not the net amount. If it exceeds partner_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 at GET /v1/orders/total-liquid/{order_id} — details in What happens if the sum exceeds partner_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 ​

  1. Create a recipient — POST /recipient
  2. Create facematch link (KYC) — POST /recipient/{recipient_hash}/facematch-link
  3. Get recipient status — GET /recipient/{recipient_hash}/status

Order split ​

  1. Create order split — POST /orders/{orderId}/split-order

Withdrawal ​

  1. Get recipient balances — GET /recipient/{recipient_hash}/balances
  2. Simulate withdrawal anticipation — GET /recipient/{recipient_hash}/withdraw-request/anticipation/simulate
  3. Request withdrawal anticipation — POST /recipient/{recipient_hash}/withdraw-request/anticipation
  4. Request withdrawal with available balance — POST /recipient/{recipient_hash}/withdraw-request/available
  5. Get withdrawal request — GET /withdraw-request/{withdrawRequestId}

Withdrawal vs anticipation ​

There are two balance types and two distinct endpoints to withdraw them:

Balance typeEndpointUse
availablePOST /recipient/{recipient_hash}/withdraw-request/availableAlready released balance. Direct withdrawal, no anticipation fee.
to_releasePOST /recipient/{recipient_hash}/withdraw-request/anticipationNot-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.