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.
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 $10 | Amount |
|---|---|
pymstrFee, to Pymstr | $0.50 |
merchantFee, to your wallet | $29.85 |
Seller 1, 0x1234...7890 | $59.70 |
Seller 2, 0x5678...1234 | $9.95 |
Constraints
| Constraint | Value |
|---|---|
| Max sellers per payment | 5 |
| Min amount per recipient | Per-currency Min split, see Currencies & Chains. Your cut and each seller's cut must meet it after the fee. |
| Seller address | Each address once, and never your own wallet. |
| Chain | A 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.