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

Merchant API reference

The REST API your server uses to read your Swop store and create checkouts.

Base URL

https://apps.apiswop.co/api/v5/merchant

All requests use HTTPS and JSON. Every request needs a merchant API key; see Authentication.

Endpoints

MethodPathScopeWhat it does
GET/meanyCheck a key and see what it can do right now
GET/productscommerce.readList your products
GET/orderscommerce.readList your sales
POST/checkout-intentscommerce.checkoutCreate a checkout from a cart
GET/checkout-intents/{intentId}commerce.readRead a checkout and its status
POST/embed-tokencommerce.embedMint a token to frame checkout on a registered site
GET/locationsdrops.readList your physical locations
GET/locations/{id}drops.readRead one location
GET/locations/{id}/terminalsdrops.readList tap-to-pay terminals at a location

Some things can only be done in the Swop app while signed in, never with an API key: creating and revoking keys, registering websites for framed checkout, and managing webhooks. That way a leaked key can never widen its own access.

Conventions

  • Amounts are numbers in USDC (for example 29.85), not cents.
  • IDs: products and locations use 24-character hex IDs; checkouts use co_…; keys use mk_….
  • Timestamps are ISO 8601 in UTC.
  • Success responses wrap the result in data. Errors have success: false and a message; see Errors.

Not available yet

Status
Test mode / sandbox keysComing soon. Every request is live.
Idempotency keysComing soon. A retried POST /checkout-intents creates a second checkout.
Refunds by APIComing soon. Use the Swop app.
Creating or editing products by APIThe commerce.write scope exists, but no product write endpoints are exposed on this API yet.
OpenAPI specComing soon

On this page