commerce

Upload a product image

Upload a photo and get back a hosted URL to set as a product's image_url.

Send multipart/form-data with a single file part, not JSON.

PNG, JPEG, WebP and GIF only, up to 10MB. The file's actual bytes are checked against its declared type, so a renamed file is rejected.

The returned url is public and permanent. Add it to a product's images with its path (or set it as image_url) in a create or update call. Uploading alone does not attach it to anything.

Images belong to the business, not to one site, so the same upload can be used on every site, in WhatsApp and on a payment link.

Up to 500 images per business.

post/api/v1/commerce/products/media

Request

  • Base URL: https://app.blueticked.com
  • URL: https://app.blueticked.com/api/v1/commerce/products/media
  • Auth: HTTP bearer

Response

Success

okboolean required

Example response

{
  "ok": true,
  "media": {
    "url": "https://cdn.blueticked.com/product-media/org_1/9f2c.jpg",
    "path": "org_1/9f2c.jpg",
    "size": 284119,
    "mime": "image/jpeg"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.