Session
Get Active Carts
Retrieves all active cart sessions across multiple merchant domains
GET
Get Active Carts
Overview
This endpoint retrieves all active cart sessions across multiple merchant domains for the current device. It enables cross-domain cart access, allowing customers to view and manage carts from different merchants in a unified experience.This is a global session endpoint that works across all merchant domains, not specific to a single domain.
Authentication
Requires Device Authentication.Request
Comma-separated list of domain names to exclude from the resultsExample:
store1.com,store2.comResponse
List of domain names that have active carts
Array of ShoppingCart objects for each active domainEach cart includes:
- Full V2 cart schema
- Domain information
- All shipments and addons
- Current totals
Session Behavior
Cross-Domain Management
- Aggregates carts from all domains associated with the device session
- Each cart maintains its own domain-specific state
- Failed retrievals for individual domains don’t fail the entire request
Active Cart Criteria
- Cart must have at least one line item
- Cart session must not be expired
- Empty carts are excluded from results
Performance Considerations
- Carts are retrieved in parallel for efficiency
- Large numbers of active carts may increase response time
- Use the
excludesparameter to filter unwanted domains
Errors
MissingAuthHeader
Status Code: 401Description: x-firmly-authorization header is missing or invalid
InvalidJWTToken
Status Code: 401Description: The JWT token is invalid
InvalidToken
Status Code: 401Description: JWT token is invalid
Examples
Response Example
Use Cases
Multi-Store Checkout
- Display all active carts in a unified checkout flow
- Allow customers to manage multiple merchant carts
- Calculate combined totals across stores
Cart Recovery
- Retrieve abandoned carts across domains
- Implement cross-domain cart recovery flows
- Track shopping behavior across merchants
Analytics
- Monitor active sessions across merchant network
- Track cross-domain shopping patterns
- Analyze cart abandonment by domain
Get Active Carts