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

Docs

Quick start

  1. Sign up. Ducat makes your team, with you as its owner.
  2. In the console, open API keys and make a key. You get a client ID and a secret, and the secret is shown once. Keys are for test mode.
  3. Swap the key for a short-lived access token (client credentials, for Ducat's API):
    curl -s https://auth.ducat.lunaor.com/token -u "$DUCAT_CLIENT_ID:$DUCAT_CLIENT_SECRET" \
      -d grant_type=client_credentials -d resource=urn:payments:api
  4. Call the API with it:
    curl -s https://ducat.lunaor.com/v1/customers -H "authorization: Bearer $TOKEN" \
      -H "content-type: application/json" -d '{"email": "buyer@example.com"}'
  5. Send the customer to pay: POST /v1/checkout-sessions with the customer, mode, line_items, success_url and cancel_url. Read it back with GET /v1/checkout-sessions/{id} until its payment_status is paid.

A key reads and writes your team's own customers, sessions, subscriptions, invoices, sellers and events, and nothing else. Every key of your team sees the same data, and no other team sees it. Charges, refunds and payouts past your standing limits answer 403 with a Nod challenge, which a person on your side approves.

Guides

The API

Base URL https://ducat.lunaor.com, JSON in and out, Authorization: Bearer <token> on every call. The endpoints are listed in Agents on Ducat, story by story.