Uncategorized

Managing Storefront Products via API

The Checklick API allows you to create or update Storefront products programmatically. Here's how: 1. Ensure you have a valid API key (see "Managing API Keys"). 2. To create a product, use POST /v2/products with a JSON payload including name, description, and price. Example: curl -X POST https://api.checklick.com/v2/products -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/vnd.api+json" -H "Organization-Id: YOUR_ORG_ID" -d '{"data": {"type": "products", "attributes": {"name": "Yoga Class", "description": "Beginner yoga", "price": 100}}}'. 3. To update, use PATCH /v2/products/{id}. Example: curl -X PATCH https://api.checklick.com/v2/products/123 -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/vnd.api+json" -H "Organization-Id: YOUR_ORG_ID" -d '{"data": {"type": "products", "id": "123", "attributes": {"price": 120}}}'. Quick tips: * Check https://api.checklick.com/docs for required fields. * Use GET /v2/products to list all products. * Handle 429 errors by respecting the 100 requests/min limit.