Skip to content

Marketplace API example

The bundled samples/marketplace/ project models a two-sided marketplace:

  • 3 actors: admin (email + password), vendor (email + password + refresh), customer (phone + OTP chain)
  • 5 resources: products, cart, orders, refunds, reviews
  • 27 operations covering the full e-commerce flow

Try it:

Terminal window
chainapi lint --project samples/marketplace
chainapi run refund.approve --project samples/marketplace

The repository structure: see samples/marketplace/ in the source tree.

Full annotated walkthrough is part of Phase 2 documentation.