Why do product images show a loading state after creation via the Product Image API?
The loading state appears when images aren't hosted on Shoplazza's native storage. The system initiates a transfer process for external images, during which the loading indicator is displayed. This is temporary and resolves automatically once the transfer completes.
How to obtain the CDN domain for image resources?
To retrieve the image CDN domain:
- Check for the
IMAGE-DOMAINheader in the API response headers - If the
IMAGE-DOMAINheader value is not available or empty, the system will automatically fall back to the default domain:img.staticdj.com
Note: The IMAGE-DOMAIN header provides the current active CDN endpoint for image assets. When implementing, always include fallback logic to handle cases where the header might be absent.
How can I update a single product variant without affecting other variants under the same product?
Use the dedicated Update Variant API. Important: If you use the "Update Product" API, it will replace the entire variant list of the product with the variants provided in the request body. Any existing variants not included in the request will be deleted. To avoid this, use the variant-specific endpoint or ensure your "Update Product" request includes all variants you wish to keep.
