Hosted onboarding
A connected account per seller and a link to Stripe's onboarding form; read what Stripe still needs from them.
Test modeDucat runs on Stripe's test mode for now, so no real card is charged.
Features
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.
A connected account per seller and a link to Stripe's onboarding form; read what Stripe still needs from them.
A destination charge, from a checkout or a charge with seller, keeps your fee (a percentage and/or a fixed amount per currency).
manual, daily, weekly or monthly with their anchors, and delay_days.
A seller's balance and payouts, and a payout made now.
A refund of a seller's sale takes it back from the seller, and the fee in proportion.
A payout past the day's limit for one seller waits for a person's approval.
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"}'| Endpoint | What |
|---|---|
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-schedule | manual | daily | weekly | monthly |
GET /v1/sellers/{acct}/balance, /payouts | balance and payout history |
POST /v1/sellers/{acct}/payouts | pay out now (past the limit: a nod) |
POST /v1/checkout-sessions with seller | a destination charge, your fee kept |
Beta Built and tested against a simulated Stripe; not yet run on Stripe's test mode.
Related: Marketplaces, Agents guide, story 6, Pricing
Sign up, make a key, and take a test payment in a few minutes. No card needed.