Product Integration (API)

This page explains how to create and update product data using the AI Image Service API by Sizebay. You can also explore and test the endpoints in the Swagger documentation.

1. Create Product

POST https://ai-image-service-dev.internalsizebay.com/products Description: Submits a product for asynchronous processing. A callback will notify success or failure after processing.

Headers

Header
Type
Required
Description

x-api-key

string

โœ…

API key for authentication

Body Parameters

Field
Type
Required
Description

tenantId

number

โœ…

Tenant (client) ID

collectionName

string

โœ…

Product collection name

processType

string

โœ…

Type: SIMILAR, COMPLEMENTARY, ALL

brandName

string

โœ…

Brand name

specialtyFromPersona

string

โœ…

Product style (e.g., "casual fashion")

productItem.id

string

โœ…

Unique ID of the variant (e.g. color + size)

productItem.itemGroupId

string

โœ…

Common ID for all variants of a product

localizations

object

โœ…

Language-specific title, link, availability

pricing

object

โœ…

Prices by currency (price, salePrice, date)

productType

string

โœ…

Category hierarchy

imageLink

string

โœ…

Main image of the variant

additionalImageLinks

array

Optional

Additional images for the variant

gender

string

โœ…

male, female, unisex

ageGroup

string

โœ…

adult, kids

size

string

โœ…

Sizes, comma-separated (e.g., S,M,L)

sizeSystem

string

โœ…

Size system (BR, US, etc.)

color

string

โœ…

Product color

gtin

string

Optional

Barcode (Global Trade Item Number)

Callback Notification

After processing, a POST request is sent to your callback URL:

Header Authorization will be included in the request.

Payload Example

Responses

Status
Meaning

202

Product accepted for processing

400

Invalid or missing fields

500

Internal server error

2. Update Product

PATCH https://ai-image-service-dev.internalsizebay.com/products

Description: Updates an existing productโ€™s title, availability and pricing.

Headers

Header
Type
Required
Description

x-api-key

string

โœ…

API key for authentication

Body Parameters

Field
Type
Required
Description

tenantId

number

โœ…

Tenant ID

collectionName

string

โœ…

Collection name

productId

string

โœ…

ID of the product to update

localizations

object

โœ…

Updated title & availability per locale

pricing

object

โœ…

Updated prices per currency

Payload Example

Responses

Status
Meaning

200

Product updated successfully

400

Invalid or missing fields

404

Product not found

500

Internal server error

3. Swagger โ€“ Interactive API Explorer

To simplify integration and testing, you can access the official Swagger API Referencearrow-up-right.

What you can do there:

Feature
Description

Explore endpoints

View all available endpoints with descriptions and example payloads

Test requests

Use the โ€œTry it outโ€ button to send test requests directly from the browser

Validate payloads

Ensure your request structure matches the APIโ€™s expected schema

Check responses

See example success and error responses

Use your API key

Authenticate and test using your tenantโ€™s x-api-key

This tool is ideal for developers and integrators during setup, debugging, and ongoing maintenance.

Last updated