Skip to main content
Paste this prompt into your coding agent to build the payout side of a marketplace, with the platform fee taken on every sale. The agent sets up the platform fee, onboards each seller as its own customer, takes buyer payments in, pays sellers out, and reconciles all three sides of every sale.

Before you start

Prompt

Prompt

How to use

  1. Answer the nesting question with whoever owns compliance before building. It decides the product, and no amount of code fixes a pooled design.
  2. Set the platform rate with whoever owns pricing; it lands in every buyer-facing quote.
  3. Onboard two sandbox sellers in different countries. One seller hides every problem this flow has.

What the prompt builds

Errors to expect

These codes come from the errors catalog, for the resources this prompt uses. Match on code, not on message.

Marketplaces

Collect from buyers and pay sellers.

Nested payments

Whose funds can move, and for whom.

Set up partner fees and revenue share

Earn a fee on every transaction you route.

Build global contractor payouts

Pay contractors in several countries from one funded balance.