- Product catalogs
Ad-hoc products
OrderCloud provides a complete set of features for creating, organizing, and presenting product catalogs. This system supports both traditional catalog management and a flexible ad-hoc product integration approach to meet diverse business needs.
Integration scenarios
For most implementations, OrderCloud serves as a synchronized product catalog system, requiring ongoing data maintenance. However, some organizations maintain their product data and search capabilities in external systems. These scenarios benefit from OrderCloud's Ad-Hoc Products feature, which enables:
- On-demand product data retrieval
- Elimination of catalog synchronization overhead
- Integration with existing product management systems
- Simplified order management workflows
The system supports hybrid catalog management, combining OrderCloud Products with Ad-hoc products from external systems. When processing requests, OrderCloud:
- Checks for product existence in OrderCloud
- Verifies user visibility permissions
- Calls configured middleware if needed
The AddToCart integration event
The AddToCart integration event enables seamless external product catalog integration with OrderCloud orders. This feature requires:
- HTTP service implementation
- RESTful API endpoint configuration
- Integration event setup
Implementation steps
- Create the integration event
- Connect it to an
ApiClientusingAddToCartIntegrationEventID - Configure endpoint handling
When a Buyer User adds items to an unsubmitted order, OrderCloud sends a POST request to your endpoint with this payload:
Payload field usage
ProductIDandQuantity: Core fields for product lookup and pricing- Authentication fields: Enable secure system integration
BuyerUser: Contains complete buyer user data for context
Response requirements
Your endpoint must return an HTTP 200 response with this structure:
Response handling rules
-
Product fields:
- Most fields are optional
- Follow standard product creation validation rules
- Required fields and length restrictions apply
-
Product not found:
- Return HTTP 200 with
Product: null - OrderCloud returns 404 with product not found message
- Endpoint errors (4xx/5xx) indicate configuration issues
- OrderCloud returns 400 for endpoint problems
- Return HTTP 200 with
-
Pricing:
UnitPricerequired when returning product- Must be valid numerical value
Keeping products up to date in unsubmitted orders
Ad-hoc product management requires special consideration for unsubmitted orders. While submitted orders maintain static product snapshots, unsubmitted orders need synchronization with external system changes.
Synchronization mechanism
The enhanced Order Checkout integration event provides synchronization capabilities through the Order Calculate step:
-
Product updates:
- Return
Productobject inLineItemOverrides - Supports partial updates (PATCH-like operation)
- Maintains data consistency
- Return
-
Product removal:
- Use
Remove: truein response - Silently removes unavailable items
- Matches standard OrderCloud behavior
- Use
Example Order Calculate response with all available fields:
Note: Only LineItemID is required in practice. Include other fields as needed for your implementation.
Additional capabilities
Ad-Hoc products support includes:
- Full subscription integration
- Automated order processing
- Recurring order management