Products
A product is one article, keyed by your SKU within its collection. You deliver
it in an import; only sku and front_image_url are
required.
A view is one side of the article: front, back, left or right.
| Image | What to send | What it is for |
|---|---|---|
| Front photo | The article on its own, from the front. | Required. Every photo we make of the article starts from it. |
| Back, left or right photo | The same article from that side. | Photos taken from behind or from the side. |
| Reference | The article worn or in use, one per side. | Size, fit and placement, e.g. where the hem falls. |
| Details | Up to five close-ups per side. | Small parts that must come out exactly: a zipper, a logo, lettering. |
| Neck label | The label inside the neck. | Keeps the brand on the label legible. |
A reference, a detail and the neck label each come with a prompt: a short
note saying what to take from the image. The front photo and the neck label sit
on the product. Everything else goes into one views entry per side:
back,leftandrightcarry their photo inimage_url, and can add their own reference and close-ups.frontholds only the front’s reference and close-ups, because its photo is alreadyfront_image_url.
{ "sku": "1234567-890", "front_image_url": "https://cdn.partner.example/assets/1234567-890/front.jpg", "views": [ { "view_type": "front", "reference": { "image_url": "https://cdn.partner.example/assets/1234567-890/front-worn.jpg", "prompt": "The hem sits just below the hip." }, "details": [ { "position": 1, "image_url": "https://cdn.partner.example/assets/1234567-890/pocket.jpg", "prompt": "Contrast stitching along the pocket edge." } ] }, { "view_type": "back", "image_url": "https://cdn.partner.example/assets/1234567-890/back.jpg" }, { "view_type": "left", "image_url": "https://cdn.partner.example/assets/1234567-890/left.jpg" }, { "view_type": "right", "image_url": "https://cdn.partner.example/assets/1234567-890/right.jpg" } ], "neck_label": { "image_url": "https://cdn.partner.example/assets/1234567-890/label.jpg", "prompt": "Keep the woven label text legible." }}- An
image_urlin thefrontentry rejects the product. - A reference or detail for a side without a photo is ignored.
- Sending a detail’s
positionagain replaces that close-up. - A
promptwithout itsimage_urlupdates the note and keeps the image.
Product details
Section titled “Product details”All optional. We read category, colour, material and description from the front photo; whatever you send wins.
| Field | What it takes |
|---|---|
category |
A name from GET /product-categories. An unknown name is a 422. |
material |
One of the values in the API Reference, e.g. cotton. Keep the full composition in metadata. |
gender |
female, male or unisex. Blank styles it onto every model. |
age_group |
kids, teens or adults. |
color, description, style_prompt |
Free text. |
fashion_label |
The label the article is sold under. Never derived. |
ean, related_eans |
Barcodes, as strings: a number loses its leading zero. |
metadata |
Your own flat key–value data. Keys like product_style or product_fabric feed the shoot. |
add_on_style |
true for an accessory styled into a look. See add-on style products. |
third_party |
true for an article the brand does not own. See third-party products. |
List the category names:
curl -sS -H "Authorization: Bearer $TOKEN" "$BASE/product-categories?limit=100" | jq '.data'Send a product again
Section titled “Send a product again”Send the same sku in a later import to update the product:
| You send | What happens |
|---|---|
| A field left out | Keeps its stored value. |
metadata |
Replaces every stored key, so send all of them. |
| A new image URL | Replaces the image. |
| The same image URL | Nothing; after failed, it is fetched again. |
Products and their images cannot be removed through the API.
Add-on style products
Section titled “Add-on style products”Add-on styles are accessories, such as shoes or bags, styled into a look. They
belong to the brand, so every collection can use them, and the same sku from
any collection updates the one add-on style. List a brand’s add-on styles:
curl -sS -H "Authorization: Bearer $TOKEN" "$BASE/products?brand_id=$BRAND_ID&add_on_style=true" | jq '.data'Third-party products
Section titled “Third-party products”Send "third_party": true for an article the brand does not own, such as
another label’s jeans worn for styling. It appears in the photos, but not in
exports:
| Where | What happens |
|---|---|
| Export files | None is named after it; shots focused on it are left out. |
| Metadata embedded in each image | Its SKU, EANs and attributes are left out. |
An add-on style is never exported as its own file, but its SKU is still
embedded in every image it appears in: mark a borrowed one third-party too.
Send false to export the article again.
Image status
Section titled “Image status”We download every image you send from its URL. Look a product up by its SKU to
see whether each download worked. A SKU in several collections returns once per
collection, newest first, so pass collection_id to get the one you delivered:
curl -sS -H "Authorization: Bearer $TOKEN" \ "$BASE/products?collection_id=$COLLECTION_ID&sku=1234567-890" | jq '.data[0].views'The response, shortened to the front and back:
[ { "id": "a1d7...", "view_type": "front", "image": { "status": "ready", "source_url": "https://cdn.partner.example/assets/1234567-890/front.jpg", "error": null }, "reference": { "status": "none", "source_url": null, "error": null }, "details": [] }, { "id": "1d05...", "view_type": "back", "image": { "status": "failed", "source_url": "https://cdn.partner.example/assets/1234567-890/back.jpg", "error": { "code": "unreachable", "message": "We could not retrieve the image." } }, "reference": { "status": "none", "source_url": null, "error": null }, "details": [] }]views always lists front, back, left and right, in that order. The neck label
has its own neck_label on the product.
status |
Meaning |
|---|---|
none |
Nothing was sent for this image. |
pending, processing |
We are downloading it. |
ready |
Downloaded. |
failed |
The download failed; error.code says why. Fix it and send the same URL again. |
error.code |
Cause |
|---|---|
url_rejected |
Not a public https:// address on the standard port, or it contains a username or password. |
unreachable |
The server did not answer, or answered with an error. |
unsupported_content_type |
Not a PNG, JPEG, WebP, TIFF, AVIF or HEIC file. |
too_large |
The file or the image is too big. |
invalid_image |
The file is broken. |
We retry a few times, so keep signed URLs valid well after the import.
Check a whole collection
Section titled “Check a whole collection”List a collection’s products to check all their images at once. For more than one page, see pagination.
curl -sS -H "Authorization: Bearer $TOKEN" "$BASE/products?collection_id=$COLLECTION_ID" | jq '.data'