Merchants
A merchant represents a restaurant brand. Each merchant has a name, logo, and one or more locations.merchant.getBySlug() to resolve a brand slug into its list of locations. Each location in the response includes an id, display name, address, logo, and a methodsStatus object indicating which fulfillment methods are enabled.
Locations
A location is a single restaurant site. All storefront operations — menus, carts, payments — are scoped to a location.Location identifiers
You can reference a location by either its ObjectId or slug. Both work in every endpoint:Fulfillment methods
Each location enables a subset of these fulfillment methods:
Check
methodsStatus on the merchant location response to determine which options to show:
Order times
Locations define when they accept orders. Fetch the available time slots before showing a schedule picker:Menus, categories, and products
Each location has one or more menus. A menu contains categories, and each category links to products. The active menu depends on the time of day.Products
A product represents a single orderable item:Modifiers
Modifiers let customers customize a product (e.g., size, toppings, extras). Each modifier group has selection rules:Carts
A cart holds the customer’s selections and computes all pricing automatically. You create a cart by starting an ordering session:Cart lifecycle
Automatic pricing
Every time you modify the cart, the API recalculates all totals:
All price fields have a corresponding
*Formatted variant (e.g., subTotalFormatted: "$25.98") for display.
Cart items
Each item in the cart tracks its product, quantity, modifier selections, special instructions, and computed totals:Fulfillment configuration
Before checkout, set the fulfillment method on the cart. Each method requires different data:Payments
Crave processes payments through Stripe Connect. You create aPaymentIntent via the API and confirm it on the client with Stripe.js:
Orders
Orders are created automatically when a payment succeeds — you do not create them via the API. After payment, the order appears in the restaurant’s merchant dashboard for fulfillment. The Storefront API does not expose order management endpoints. To track order completion from the customer’s perspective, poll the cart status until it reachesCOMPLETED.
Analytics events
Track key funnel events to measure storefront performance:Currencies and countries
The API supports these currencies and countries:
Currency is set at the merchant level and applies to all locations under that merchant.
Next steps
Display Menu
Fetch menus, categories, and products for a location.
Manage Cart
Add items, apply modifiers, and manage the cart lifecycle.
Checkout Flow
Collect customer details, set order time, and process payment.
Fulfillment Methods
Configure delivery, table-side, and room service.