Payouts
Payouts
Send funds from your Morph-hosted wallet in three write steps, then poll the read endpoints:
- Preview Payout — quote gas; no order is created.
- Create Payout — create the order and receive
param_json(TRX also returnsraw_txs). - Authorize Payout — stamp
param_json(Ed25519). TRX must also echoraw_txs. Morph submits on-chain. There is no publicsubmitAPI.
Read endpoints:
- List Payouts — page through history.
- Get Payout — full detail by
payout_order_id. - Get Balance — on-chain balance of the default receiving wallet.
scene:
payout— pay a third party (default).withdraw— move funds to your own address. Exactly one recipient.
EVM, SOL, and TRX are supported. You stamp one param_json string on every
chain — see Merchant stamp.
All requests must be authenticated with your
API Key. Do not send merchant_id.
Base URL
https://pay-openapi.morph.network/pro/merchant/payout/v1
Endpoint paths in this page are relative to that base URL.
Response envelope
{
"error_code": 0,
"msg": "success",
"data": {},
"trace": "..."
}
Business success or failure is determined by error_code (error_code == 0
means success), not by the HTTP status code alone. See
Error Codes.
Preview Payout
POST /payouts/preview
Quotes gas tokens for a transfer intent. No order is created; you may call this repeatedly.
Copy support_networks / support_tokens from
Support tokens. source_wallet.address must be a hosted
wallet under your account (List wallets).
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
scene | string | No | payout (default) or withdraw (exactly one recipient). |
tx_intent.chain | string | Yes | Single chain, for example morph. |
tx_intent.source_wallet.address | string | Yes | Hosted wallet: EVM 0x, SOL base58, or TRX T…. |
tx_intent.recipients[] | object[] | Yes | index, address, token.contract, amount. Optional note (max 30 characters). |
tx_intent.recipient_count | integer | Yes | Must equal recipients.length. |
support_networks | string[] | Yes | From Support tokens; every entry must equal tx_intent.chain. |
support_tokens | object[] | Yes | {network, address, symbol} subset of the support-tokens catalog. |
dryrun | boolean | No | Omit. When true, SOL/TRX do not persist a preview_id and cannot be used to create. |
Request example
{
"scene": "payout",
"tx_intent": {
"chain": "morph",
"source_wallet": { "address": "0xabc1...def0" },
"recipients": [
{
"index": 0,
"address": "0xdef2...7890",
"token": { "contract": "0xToken..." },
"amount": "10.50"
}
],
"recipient_count": 1
},
"support_networks": ["morph"],
"support_tokens": [
{
"network": "morph",
"address": "0xToken...",
"symbol": "USDT"
}
]
}
Success response
data includes preview_id (pvp_*), intent_hash (display only — do not
stamp), expires_at, gas_tokens[]. Pick gas_tokens[].contract and a
max_gas_fee (typically suggested_max_gas_fee) for create.
preview_id expires and is consumed on a successful create. An expired or
already-used id fails create, not authorize. After create, watch
sign_deadline instead.
Create Payout
POST /payouts
Creates the payout order and returns param_json to stamp. Requires header
X-Idempotency-Key (≤128 characters). Do not send sign_mode on this step.
If source_wallet.address is not yours, the call returns 90112 and does not
create an order.