Products

Product management endpoints

Create Product

post

Creates a new product in the system

Authorizations
X-MaisonSafqa-Api-KeystringRequired

API key authentication. Pass your API key directly in the X-MaisonSafqa-Api-Key header (e.g., 'ms_test_your_api_key_here' for test environment or 'ms_live_your_api_key_here' for production environment)

Body
titlestring · min: 1 · max: 255Required

Product name

Example: Premium Cotton T-Shirt
body_htmlstring · max: 65535Optional

Product description (HTML allowed)

Example: <p>High quality cotton t-shirt perfect for everyday wear.</p>
vendorstring · max: 255Optional

Brand/vendor name

Example: Your Brand Name
product_typestring · max: 255Optional

Product category

Example: Apparel
tagsstring · max: 1000Optional

Comma-separated tags

Example: cotton,premium,t-shirt,comfortable
handlestringOptional

URL slug (auto-generated if not provided)

Example: premium-cotton-t-shirtPattern: ^[a-z0-9-]+$
template_suffixstring · max: 255Optional

Template suffix

published_scopestringOptional

Published scope

Default: web
Responses
post
/products

Get Product

get

Retrieves a specific product by ID. Use external_id for synced products or product_id for unsynced products.

Authorizations
X-MaisonSafqa-Api-KeystringRequired

API key authentication. Pass your API key directly in the X-MaisonSafqa-Api-Key header (e.g., 'ms_test_your_api_key_here' for test environment or 'ms_live_your_api_key_here' for production environment)

Path parameters
idstringRequired

Product identifier - external_id (Shopify ID) for synced products, or product_id for unsynced products

Responses
200

Product retrieved successfully

application/json
get
/products/{id}

Update Product

put

Updates an existing product. Use external_id for synced products or product_id for unsynced products.

Authorizations
X-MaisonSafqa-Api-KeystringRequired

API key authentication. Pass your API key directly in the X-MaisonSafqa-Api-Key header (e.g., 'ms_test_your_api_key_here' for test environment or 'ms_live_your_api_key_here' for production environment)

Path parameters
idstringRequired

Product identifier - external_id (Shopify ID) for synced products, or product_id for unsynced products

Body

All fields are optional for updates

titlestring · min: 1 · max: 255Optional

Product name

body_htmlstring · max: 65535Optional

Product description (HTML allowed)

vendorstring · max: 255Optional

Brand/vendor name

product_typestring · max: 255Optional

Product category

tagsstring · max: 1000Optional

Comma-separated tags

handlestringOptional

URL slug

Pattern: ^[a-z0-9-]+$
template_suffixstring · max: 255Optional

Template suffix

published_scopestringOptional

Published scope

Responses
200

Product updated successfully

application/json
put
/products/{id}

Last updated