Skip to content

API Documentation

The RewardOS B2B API lets your server discover tenant-priced offers, inspect wallet funds, create idempotent purchases, and use hosted streak embeds. It uses a tenant-scoped API key and must only be called from your backend.

  1. Configure environments — use isolated staging and production keys.
  2. Authenticate — verify the key and tenant binding.
  3. Read catalog offers — show only offers priced for your tenant.
  4. Read wallet — confirm available funds.
  5. Create purchases — use durable idempotency keys and retrieve status.
  6. Add streak embeds — mint WebView or iframe URLs from your server.
Method Path Purpose
GET /b2b/whoami Verify API-key tenant binding
GET /b2b/catalog/offers List purchasable tenant offers
GET /b2b/wallet/balance Read available wallet funds
GET /b2b/wallet/ledger Read immutable ledger entries
POST /b2b/purchases Create an idempotent purchase
GET /b2b/purchases/{orderId} Retrieve purchase status
POST /b2b/embeds/streak Mint a 60-minute hosted streak URL

See error handling and versions for compatibility guidance.