Test modeDucat runs on Stripe's test mode for now, so no real card is charged.

Features

Sellers and payouts Beta

When other people sell through your product, Ducat makes each seller a connected account, sends them to Stripe's hosted onboarding, takes the buyer's payment as a destination charge with your fee kept, and pays the seller out on their schedule.

What it does

Hosted onboarding

A connected account per seller and a link to Stripe's onboarding form; read what Stripe still needs from them.

Your fee on each sale

A destination charge, from a checkout or a charge with seller, keeps your fee (a percentage and/or a fixed amount per currency).

Payout schedules

manual, daily, weekly or monthly with their anchors, and delay_days.

Balances and payouts

A seller's balance and payouts, and a payout made now.

Refunds take it back

A refund of a seller's sale takes it back from the seller, and the fee in proportion.

A nod for the unusual

A payout past the day's limit for one seller waits for a person's approval.

In code

Make a seller and send them to onboarding

TypeScript

// ducat(): the small fetch helper from the quickstart (/docs/quickstart)
const seller = await ducat("POST", "/v1/sellers", {
  email: "maker@example.com",
  country: "de",
  metadata: { user: "u_42" },
});
const link = await ducat("POST", `/v1/sellers/${seller.id}/links`, {
  refresh_url: "https://your.app/sell",
  return_url: "https://your.app/sell/done",
});
return Response.redirect(link.url, 303);

Python

# ducat(): the small helper from the quickstart (/docs/quickstart)
seller = ducat("POST", "/v1/sellers", {
    "email": "maker@example.com",
    "country": "de",
    "metadata": {"user": "u_42"},
})
link = ducat("POST", f"/v1/sellers/{seller['id']}/links", {
    "refresh_url": "https://your.app/sell",
    "return_url": "https://your.app/sell/done",
})
return redirect(link["url"], code=303)

curl

curl -s https://api.ducatpay.dev/v1/sellers \
  -H "authorization: Bearer $DUCAT_TOKEN" \
  -H "content-type: application/json" \
  -d '{"email": "maker@example.com", "country": "de", "metadata": {"user": "u_42"}}'

curl -s https://api.ducatpay.dev/v1/sellers/acct_…/links \
  -H "authorization: Bearer $DUCAT_TOKEN" \
  -H "content-type: application/json" \
  -d '{"refresh_url": "https://your.app/sell", "return_url": "https://your.app/sell/done"}'
Sellers and payouts endpoints
EndpointWhat
POST /v1/sellers, GET /v1/sellers/{acct}{email, country, metadata}; its status
POST /v1/sellers/{acct}/links{refresh_url, return_url}: Stripe's onboarding
PUT /v1/sellers/{acct}/payout-schedulemanual | daily | weekly | monthly
GET /v1/sellers/{acct}/balance, /payoutsbalance and payout history
POST /v1/sellers/{acct}/payoutspay out now (past the limit: a nod)
POST /v1/checkout-sessions with sellera destination charge, your fee kept

Good to know

Beta Built and tested against a simulated Stripe; not yet run on Stripe's test mode.

Related: Marketplaces, Agents guide, story 6, Pricing

More features

Start building in test mode

Sign up, make a key, and take a test payment in a few minutes. No card needed.