prepare_x402_payment.
Agent
You are an agent host, or you are embedding SohoPay so an agent can buy APIs, data, or compute.- Connect hosted MCP. Agent setup.
- Finish borrower onboarding, including the wallet proof, the agent grant, and a handle. Borrower onboarding.
- On each HTTP 402, prepare, sign, and retry. Payment flow.
- When the borrower wants to pay the facility down, open the repay consent URL. Repayment.
https://agents.sohopay.xyz/skills/v1/. These docs describe the same flow without replacing those skills.
Merchant
You run a resource server that should charge agents.- Get a merchant account. Merchant onboarding.
- Return 402, then verify and capture the voucher. Merchant integration.
- Poll until
CONFIRMEDbefore you fulfill. Settlements.
ACTIVE in SohoMerchantRegistry. The fee on a captured payment is deducted from your payout. See Fees.
What we do not offer as an integration path
- A REST SDK (
@sohopay/sdk,sohopayon PyPI) that creates agents and orders. - An operator API that deposits vault collateral and then provisions MPC wallets.
- A local stdio MCP server you clone and run.
- Merchant settlement webhooks. You poll.
Next steps
Quickstart
The shortest version of each path.
Protocol: x402
What the 402 body and the voucher mean.

