ShopEazydevelopers
API reference

Storefront API

Every Storefront API operation, with its scopes, parameters, responses and request samples.

Act as one store towards its shoppers, from any site built outside ShopEazy.

Base URL
https://api.shopeazy.co
Version
1.7.0
Authentication
  • Store key: A per-store key from the console.
  • Shopper session: A 14-day shopper session from POST /v1/store/shopper/session.
  • Shopper ID token: A one-hour Firebase ID token from the store's sign-in tenant.
  • Order access token: The accessToken from POST /v1/store/orders.
Operations
25

The Storefront API lets a site built outside ShopEazy's own apps act as one store towards its shoppers. It reads the catalogue, quotes and places orders, takes payment, runs the membership flow and files enquiries.

A request carries a per-store key from the console. The key decides which store it acts for and which scopes it has. Each operation page lists the scopes it needs.

Use the typed client, @shopeazy/storefront-client, or call the API over plain HTTPS. Every operation shows a cURL sample. It also shows a client sample where the client has a method for the operation, and a fetch sample where it does not.

Money is an { amount, currency } pair in integer minor units. Lists page with limit and cursor. Errors share one envelope and one code catalogue, which Errors explains.

All operations

Store

Catalogue

Policies

Checkout

Enquiries

Shopper

Membership

Member review

On this page