REST API basics
We built a complete REST e-commerce API that lets you manage your data the way you need. It uses standard HTTP features — authentication, verbs, and response codes — to stay predictable and easy to use.
Essentials
| Base URL | https://app.snipcart.com/api |
| Format | JSON only — always send the Accept: application/json header on every request. |
| Authentication | HTTP Basic with a secret API key (key as username, empty password). See Authentication. |
| Errors | Standard HTTP status codes, with a JSON error body on 4xx. See Errors. |
| Evolving payloads | Snipcart may add new fields to API responses at any time, without notice or a new version. Existing fields are not renamed or removed, so ignore fields you don't recognize rather than failing on them (e.g., avoid strict schema validation that rejects unknown properties). |
A first request
curl -H "Accept: application/json" \
https://app.snipcart.com/api/orders \
-u {YOUR_SECRET_API_KEY}:If you're new to APIs, consider reading this introduction to integrating APIs.