ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiMarketplace orders

Reserve at the provider + return the invoice (minted on the provider domain wallet). First-party rows claim free + instantly. Returns { requote } instead when the price drifted >5% from the search quote.

POST
/api/v1/marketplace/orders

Authorization

bearer

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Request Body

application/json
  1. body
providerId*string

AddressProvider id

domainCatalogId*string

MarketplaceDomain catalog row id

localPart*string
years?number
expectedPriceSats?number

Sats quote shown at search time — re-quote guard (§2.2): reservation drift >5% requires re-confirmation

acceptRequote?boolean

Set true to accept the re-quoted price after a drift warning

pubkey?string

Nostr pubkey (hex) for the address; defaults to the wallet pubkey

promoCode?string

Promo code (provider-side)

Response Body

Example Request
curl -X POST 'http://localhost:3001/api/v1/marketplace/orders' \  -H 'Content-Type: application/json' \  -d '{  "providerId": "string",  "domainCatalogId": "string",  "localPart": "alice"}'
Example Response201
Empty