Developer reference

Integrate in one signed surface.

Your storefront owns checkout. BitUnlock owns payment verification and private delivery. Every protected call is a NIP-98 signed request \u2014 no API keys.

Authorization

SchemeNIP-98 (kind 27235)
Bindsmethod + URL + body hash
HeaderAuthorization: Nostr <base64>
Signerseller or buyer pubkey

Get started

SDK@bitunlock/sdk
Sandboxfake sats, deterministic settlement
Discoverypin the service pubkey
CIrun the conformance probe

Endpoints

Full request/response shapes live in the OpenAPI contract.

MethodPathActorPurpose
GET/healthpublicLiveness + signed-policy status.
GET/.well-known/bitunlock.jsonpublicSigned service policy for discovery.
GET/openapi.jsonpublicOpenAPI 3.1 contract.
POST/v1/tenantssellerCreate or update the store account; accept policy + fee cap.
POST/v1/wallet-connectionssellerRegister a receive-only NWC connection (encrypted at rest).
POST/v1/productssellerRegister an encrypted delivery payload against a signed product.
POST/v1/products/:coord/revokesellerDisable or rotate a delivery payload.
POST/v1/quotesbuyerCreate an immutable 2-leg payment plan (seller, BitUnlock).
GET/v1/orders/:idbuyerAuthorized order + settlement status.
POST/v1/orders/:id/refreshbuyerReplace only expired, unpaid legs.
POST/v1/orders/:id/unlockbuyerAfter all legs settle, return the idempotent NIP-44 envelope.