Base URL
All API requests are made to:Authentication
All endpoints require authentication via thex-firmly-authorization header:
Request Format
- Content-Type:
application/jsonfor all POST/PUT requests - Accept:
application/json - Domain Parameter: Most endpoints require a merchant domain (e.g.,
staging.luma.gift)
Response Format
All responses return JSON with consistent structure:Success Response
Error Response
HTTP Status Codes
| Status | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing token |
| 404 | Not Found - Resource doesn’t exist |
| 409 | Conflict - Business logic error |
| 422 | Unprocessable Entity - Validation failed |
| 500 | Internal Server Error |
API Versioning
Firmly provides two API versions:- v1 - Simple Cart API endpoints
- v2 - Full Cart API endpoints
/api/v1/ or /api/v2/
Available APIs
Authentication
Token generation and session management
Catalog
Browse products and retrieve variant information
Session
Manage device sessions and preferences
Cart Management
Core cart operations for Full Cart API
Simple Cart
Streamlined cart operations for standard shipping
Promotions
Apply and manage promotional codes
Shipment Configuration
Configure fulfillment and shipping methods
Addon Management
Manage warranties and protection plans
Checkout
Complete the purchase flow
Payment
Secure payment processing
Common Headers
Required Headers
| Header | Description | Example |
|---|---|---|
x-firmly-authorization | Access token from authentication | Bearer eyJhbGc... |
Optional Headers
| Header | Description | Example |
|---|---|---|
x-firmly-request-id | Unique request identifier for tracking | req_123abc |
Rate Limits
Contact support for current rate limit information.Support
- API Status: status.firmly.work
- Support: [email protected]
Need Implementation Help?
Implementation Guides
Step-by-step guides for building with Firmly APIs