Skip to Content
Pymstr

Split Payments

Split one payment between your wallet and up to 5 sellers.

How It Works

Pass sellers on Create Payment, each with a wallet address and its cut as amount. The customer's one transaction pays every recipient, or none. A seller needs no Pymstr account.

curl -X POST https://api.pymstr.com/v1/payments \
  -H "Authorization: Bearer pk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "100.00",
    "currency": "USD",
    "title": "Marketplace Order",
    "externalId": "order-789",
    "sellers": [
      { "address": "0x1234567890123456789012345678901234567890", "amount": "60.00" },
      { "address": "0x5678901234567890123456789012345678901234", "amount": "10.00" }
    ]
  }'

Fee Model

Each seller gets the cut you name, and you keep the rest: amount − sum(sellers). Pymstr's fee is then deducted proportionally from all participants.

pymstrFee=max⁡(amount×0.005, minFee)0.5%, at least minFeesellers[].amount=grossAmount×amount−pymstrFeeamountrounded downmerchantFee=amount−pymstrFee−sum⁡(sellers[].amount)what you receive\begin{aligned} \texttt{pymstrFee} &= \max(\texttt{amount} \times 0.005,\ \texttt{minFee}) && \text{0.5\%, at least } \texttt{minFee} \\ \texttt{sellers[].amount} &= \texttt{grossAmount} \times \frac{\texttt{amount} - \texttt{pymstrFee}}{\texttt{amount}} && \text{rounded down} \\ \texttt{merchantFee} &= \texttt{amount} - \texttt{pymstrFee} - \operatorname{sum}(\texttt{sellers[].amount}) && \text{what you receive} \end{aligned}

amount × 0.005 is rounded down to the currency's Decimals, and minFee, the currency's Min fee, applies when the result is lower (Currencies & Chains).

Example

A $100 payment with sellers at $60 and $10Amount
pymstrFee, to Pymstr$0.50
merchantFee, to your wallet$29.85
Seller 1, 0x1234...7890$59.70
Seller 2, 0x5678...1234$9.95

Constraints

ConstraintValue
Max sellers per payment5
Min amount per recipientPer-currency Min split, see Currencies & Chains. Your cut and each seller's cut must meet it after the fee.
Seller addressEach address once, and never your own wallet.
ChainA seller is paid on the chain the customer picks, so each address must be able to receive on every chain you accept (acceptedChains).

Response

Each seller comes back with amount, the cut after the fee that their wallet receives, and grossAmount, the cut you sent.

{
  "sellers": [
    {
      "address": "0x1234567890123456789012345678901234567890",
      "amount": "59.70",
      "grossAmount": "60.00"
    },
    {
      "address": "0x5678901234567890123456789012345678901234",
      "amount": "9.95",
      "grossAmount": "10.00"
    }
  ],
  "pymstrFee": "0.50",
  "merchantFee": "29.85"
}

Building a marketplace or serving many merchants? See the Marketplaces and Payment Providers guides.