Product
The Product API provides comprehensive endpoints for managing products and their variants in the Onlive system. These endpoints enable full lifecycle management of products, including creation, retrieval, updates, and deletion, along with variant and option management.
π Authenticationβ
All endpoints require authentication using the ONLIVESITE authentication scheme. Include the Authorization header in your requests:
Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature
π Base URLβ
https://openapi.onlive.site/api/v1/products
π Product Typesβ
The system supports various product provider types:
onlive
- Native Onlive productsshopify-private
- Private Shopify integration productsshopify-public
- Public Shopify integration productsmoddo
- Moddo integration productsprestashop
- PrestaShop integration productswoocommerce
- WooCommerce integration products
π¦ Product Structureβ
Products in the system are structured hierarchically:
- Product: The main entity containing general information
- Options: Configurable attributes (e.g., size, color)
- Variants: Specific combinations of options with unique:
- SKU
- Price
- Stock level
- Images
- Option combinations
π οΈ Available Operationsβ
Product Managementβ
- Create new products with variants and options
- Retrieve product details and list products
- Update existing products and their properties
- Delete products and associated data
Variant Operationsβ
- Create and update product variants
- Manage variant-specific properties
- Update stock levels and prices
- Handle variant media assets
Common Operationsβ
- Manage product categories
- Configure product options
- Handle product media
- Update inventory levels
- Set pricing and currency
π Common Use Casesβ
- π¦ Product Catalog: Create and manage your product catalog
- π¨ Variants: Set up products with different options (size, color, etc.)
- π° Pricing: Update product prices and apply discounts
- π Inventory: Manage stock levels across variants
- πΌοΈ Media: Upload and manage product images
- π Integrations: Sync with external e-commerce platforms
- π·οΈ Categories: Organize products into categories
β‘ Best Practicesβ
-
Product Structure
- Define clear, unique product names
- Use descriptive categories
- Maintain consistent option naming
-
Variants
- Use meaningful SKUs
- Keep option combinations unique
- Maintain accurate stock levels
- Provide variant-specific images
-
Media
- Use high-quality WebP images
- Include multiple product angles
- Optimize image sizes
- Follow naming conventions
-
Data Quality
- Keep descriptions detailed
- Use proper HTML formatting
- Maintain accurate metadata
- Update prices consistently
-
Performance
- Batch variant updates
- Use efficient option structures
- Optimize image delivery
- Cache product data
π Related Resourcesβ
- Product Properties: Detailed property definitions
- Authentication: Authentication details
- Asset Overview: General asset management
- Media Management: Handle product media
β Common Errorsβ
Code | Description | Resolution |
---|---|---|
INVALID_REQUEST | Invalid request body | Check request format and required fields |
DUPLICATE_SKU | SKU already exists | Use a unique SKU for the variant |
OPTION_IN_USE | Cannot remove used option | Remove variant using option first |
VALIDATION_ERROR | Field validation failed | Check field requirements and formats |
For detailed information about specific operations, please refer to the individual endpoint documentation sections.