Product API FAQ

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:

  1. Check for the IMAGE-DOMAIN header in the API response headers
  2. If the IMAGE-DOMAIN header 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.