Skip to Content
Pymstr

Payouts API

A payout pays 1 to 100 payees at once through a shareable link, and whoever funds it, the payer, pays them all in one transaction.

To pay marketplace sellers in batches, see Pay Sellers Later in the Marketplaces guide.

EndpointDescription
POST /v1/payoutsCreate a payout
GET /v1/payouts/:idRetrieve payout details
DELETE /v1/payouts/:idCancel an active payout

Fee Model

Pymstr's fee is added on top of the payees' total. Every payee receives their exact amount, and the payer pays disbursedAmount + pymstrFee. The payer also pays the network fee. The request has no amount. The totals are computed from the payees.

disbursedAmount=sum⁡(payees)the payees’ total (no fee)pymstrFee=max⁡(disbursedAmount×0.005, minFee)0.5%, at least minFeeamount=disbursedAmount+pymstrFeethe all-in total the payer funds\begin{aligned} \texttt{disbursedAmount} &= \operatorname{sum}(\texttt{payees}) && \text{the payees' total (no fee)} \\ \texttt{pymstrFee} &= \max(\texttt{disbursedAmount} \times 0.005,\ \texttt{minFee}) && \text{0.5\%, at least } \texttt{minFee} \\ \texttt{amount} &= \texttt{disbursedAmount} + \texttt{pymstrFee} && \text{the all-in total the payer funds} \end{aligned}

disbursedAmount × 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 USD payout to payees at $60 and $40Amount
Payee 1, 0x1111...$60.00
Payee 2, 0x3333...$40.00
disbursedAmount, the payees' total$100.00
pymstrFee, added on top$0.50
amount, what the payer pays$100.50

Constraints

ConstraintValue
Payees per payout1–100
Min amount per payeePer-currency Min split, see Currencies & Chains
Min total (sum of payees)Per-currency Min payment, see Currencies & Chains
Max all-in total1,000,000,000,000
ChainA payee is paid on the chain the payer picks, so each address must be able to receive on every chain you accept (acceptedChains).

Create PayoutPOST /v1/payouts

Create a payout to 1–100 payees. Share the payoutUrl in the response with whoever will fund the payout.

curl -X POST https://api.pymstr.com/v1/payouts \
  -H "Authorization: Bearer pk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "currency": "USD",
    "payees": [
      {
        "address": "0x1111111111111111111111111111111111111111",
        "amount": "60.00"
      },
      {
        "address": "0x3333333333333333333333333333333333333333",
        "amount": "40.00"
      }
    ],
    "title": "October affiliate payouts",
    "externalId": "batch-2026-10",
    "acceptedChains": [
      42161,
      8453
    ],
    "acceptedTokens": [
      "USDC"
    ]
  }'

Request Body

Parameter

Type

Response201 Created

{
  "id": "01234567-89ab-cdef-0123-456789abcdef",
  "status": "ACTIVE",
  "amount": "100.50",
  "disbursedAmount": "100.00",
  "currency": "USD",
  "title": "October affiliate payouts",
  "externalId": "batch-2026-10",
  "acceptedChains": [
    42161,
    8453
  ],
  "acceptedTokens": [
    "USDC"
  ],
  "pymstrFee": "0.50",
  "payees": [
    {
      "address": "0x1111111111111111111111111111111111111111",
      "amount": "60.00"
    },
    {
      "address": "0x3333333333333333333333333333333333333333",
      "amount": "40.00"
    }
  ],
  "payoutUrl": "https://pay.pymstr.com/po/01234567-89ab-cdef-0123-456789abcdef",
  "expiresAt": "2026-03-01T00:00:00.000Z",
  "createdAt": "2026-02-24T10:00:00.000Z"
}

Parameter

Type

Error Responses

StatusCodeMeaning
400bad_requestThe request broke a rule in the field tables
400recipient_refusedA payee address cannot receive funds: Pymstr's fee wallet or a paymaster address, or an account that is suspended
401unauthorizedMissing or invalid API key
409conflictThe externalId is already in use by an ACTIVE, PROCESSING or SUCCESSFUL payout, and the body carries its id (see Lost Response)
429too_many_requestsRate limit exceeded

Get PayoutGET /v1/payouts/:id

Retrieve payout details. Returns the full view when the request carries the owning merchant's own API key.

curl -X GET https://api.pymstr.com/v1/payouts/01234567-89ab-cdef-0123-456789abcdef \
  -H "Authorization: Bearer pk_your_api_key"

Path Parameters

Parameter

Type

Response200 OK

{
  "id": "01234567-89ab-cdef-0123-456789abcdef",
  "status": "SUCCESSFUL",
  "amount": "100.50",
  "disbursedAmount": "100.00",
  "currency": "USD",
  "title": "October affiliate payouts",
  "externalId": "batch-2026-10",
  "acceptedChains": [
    42161,
    8453
  ],
  "acceptedTokens": [
    "USDC"
  ],
  "pymstrFee": "0.50",
  "payees": [
    {
      "address": "0x1111111111111111111111111111111111111111",
      "amount": "60.00",
      "amountToken": "60.090000"
    },
    {
      "address": "0x3333333333333333333333333333333333333333",
      "amount": "40.00",
      "amountToken": "40.060000"
    }
  ],
  "payoutUrl": "https://pay.pymstr.com/po/01234567-89ab-cdef-0123-456789abcdef",
  "chainId": 42161,
  "token": "USDC",
  "exchangeRate": "1.001500",
  "amountToken": "100.650750",
  "disbursedAmountToken": "100.150000",
  "pymstrFeeToken": "0.500750",
  "gasActual": "0.001200",
  "txHash": "0x...",
  "payer": {
    "smartAddress": "0x..."
  },
  "error": null,
  "expiresAt": "2026-03-01T00:00:00.000Z",
  "paidAt": "2026-02-24T10:05:00.000Z",
  "createdAt": "2026-02-24T10:00:00.000Z",
  "updatedAt": "2026-02-24T10:05:00.000Z"
}

Parameter

Type

Error Responses

StatusCodeMeaning
404not_foundNot found
429too_many_requestsRate limit exceeded

Cancel PayoutDELETE /v1/payouts/:id

Cancel a payout with status ACTIVE. A payout in any other status answers 400 with record_not_active.

curl -X DELETE https://api.pymstr.com/v1/payouts/01234567-89ab-cdef-0123-456789abcdef \
  -H "Authorization: Bearer pk_your_api_key"

Path Parameters

Parameter

Type

Response204 No Content

The response has no body.

Error Responses

StatusCodeMeaning
400record_not_activeThe payout is no longer ACTIVE
400bad_requestAn id that does not exist and an id on another account answer the same
401unauthorizedMissing or invalid API key
429too_many_requestsRate limit exceeded

Events & States

A payout moves through the statuses on Payment States and fires these webhook events:

EventDescription
payout.createdPayout was created (dashboard only, see Webhooks)
payout.processingThe network accepted the payer's transaction
payout.completedPayout confirmed on-chain
payout.failedThe transaction reverted or was never confirmed
payout.expiredPayout expired before completion
payout.cancelledPayout was cancelled