fetch — no build tools, no framework, no SDK dependency.
Prerequisites
- A Crave API key from the Dashboard
- At least one live location in your merchant account
- A browser or any environment with
fetch(Node.js 18+, Deno, Bun)
1. API basics
Every Storefront API request requires a Crave API key passed in theX-API-Key header. Requests still target a concrete locationId in the URL, and the key must be allowed to access that location.
locationId from Step 2 - Location IDs on the same page.
Base URL: https://api.craveup.com/api/v1
All storefront endpoints are scoped under /locations/{locationId}.
2. Create an API helper
3. Fetch the merchant
4. Start an ordering session
5. Add items to the cart
6. Get the cart
7. Update customer details
8. Full HTML example
Next steps
REST API Reference
See all available REST endpoints.
Display Menu
Fetch menus, categories, and products.
Checkout Flow
Collect customer details and process payments.
Error Codes
Handle API errors gracefully.
Slack Community
Ask questions and get help from the Crave team and community.
Email Support
Reach out to hello@craveup.com for direct support.