docs
Get startedTroubleshootingPaymentsWebhooksAgent paymentsSwop MCPOviIdentity (swop.id)SwivyRPC (preview)API reference

Webhooks overview

Swop calls your server when a buyer pays and when you get paid, so you don't have to poll.

A webhook is an HTTP request Swop sends to a URL on your server when something happens. Instead of asking Swop "is it paid yet?" over and over, you register an endpoint once and Swop tells you.

The two events

EventFires whenWhat to do
checkout.paidThe buyer's money arrived and the order existsFulfil the order: ship it, send the download, grant access
payout.releasedSwop released your money (escrow released, or transfer sent)Book the revenue

checkout.paid doesn't mean you've been paid

For physical goods sold online, your payout is held in escrow until the buyer confirms delivery. For card sales that can be days later. Ship on checkout.paid; count the money on payout.released.

There's also a ping event, sent only when you press Send test in the Developer page.

How a delivery works

  1. A sale crosses a milestone (paid, or payout released).
  2. Within about a minute, Swop queues one delivery per webhook that subscribed to that event.
  3. Swop POSTs JSON to your URL with a Swop-Signature header.
  4. Your server verifies the signature, does its work, and returns any 2xx.
  5. Anything else (or no answer within 10 seconds) is retried with backoff.

Set one up

On this page