Products
Product management endpoints
Creates a new product in the system
Product name
Premium Cotton T-ShirtProduct description (HTML allowed)
<p>High quality cotton t-shirt perfect for everyday wear.</p>Brand/vendor name
Your Brand NameProduct category
ApparelComma-separated tags
cotton,premium,t-shirt,comfortableURL slug (auto-generated if not provided)
premium-cotton-t-shirtPattern: ^[a-z0-9-]+$Template suffix
Published scope
webProduct created successfully
Validation errors or duplicate SKUs
Unauthorized - Invalid or missing API key
Forbidden - Access denied
Rate limit exceeded
Internal server error
POST /api/v1/products HTTP/1.1
Host: api.maisonsafqa.com
X-MaisonSafqa-Api-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 613
{
"title": "Premium Cotton T-Shirt",
"body_html": "<p>High quality cotton t-shirt perfect for everyday wear.</p>",
"vendor": "Your Brand Name",
"product_type": "Apparel",
"tags": "cotton,premium,t-shirt,comfortable",
"handle": "premium-cotton-t-shirt",
"template_suffix": "text",
"published_scope": "web",
"variants": [
{
"title": "Medium",
"sku": "COTTON-TEE-001-M",
"price": 99.99,
"compare_at_price": 149.99,
"inventory_quantity": 25,
"weight": 0.2,
"weight_unit": "kg",
"barcode": "1234567890123",
"requires_shipping": true,
"taxable": true
}
],
"images": [
{
"src": "https://example.com/images/tshirt-front.jpg",
"alt": "T-shirt front view",
"position": 1
}
]
}{
"error": null,
"product": {
"id": "product_1234567890123456",
"title": "Premium Cotton T-Shirt",
"description": "<p>High quality cotton t-shirt perfect for everyday wear.</p>",
"handle": "premium-cotton-t-shirt",
"status": "draft",
"variants": [
{
"id": "text",
"title": "text",
"sku": "text",
"price": 1,
"compare_at_price": 1,
"inventory_quantity": 1,
"weight": 1,
"weight_unit": "text",
"requires_shipping": true,
"taxable": true,
"barcode": "text",
"option1": "text",
"option2": "text",
"option3": "text"
}
],
"images": [
{
"id": "text",
"src": "text",
"alt": "text",
"position": 1
}
],
"product_type": "text",
"vendor": "text",
"tags": "text",
"created_at": "2025-10-27T21:19:59.383Z",
"updated_at": "2025-10-27T21:19:59.383Z",
"synced": true,
"last_synced_at": "2025-10-27T21:19:59.383Z"
},
"message": "Product created successfully. It will be synced to Shopify when activated."
}Retrieves a specific product by ID. Use external_id for synced products or product_id for unsynced products.
Product identifier - external_id (Shopify ID) for synced products, or product_id for unsynced products
Product retrieved successfully
Unauthorized
Access denied
Product not found
GET /api/v1/products/{id} HTTP/1.1
Host: api.maisonsafqa.com
X-MaisonSafqa-Api-Key: YOUR_API_KEY
Accept: */*
{
"error": null,
"product": {
"id": "product_1234567890123456",
"title": "Premium Cotton T-Shirt",
"description": "<p>High quality cotton t-shirt perfect for everyday wear.</p>",
"handle": "premium-cotton-t-shirt",
"status": "draft",
"variants": [
{
"id": "text",
"title": "text",
"sku": "text",
"price": 1,
"compare_at_price": 1,
"inventory_quantity": 1,
"weight": 1,
"weight_unit": "text",
"requires_shipping": true,
"taxable": true,
"barcode": "text",
"option1": "text",
"option2": "text",
"option3": "text"
}
],
"images": [
{
"id": "text",
"src": "text",
"alt": "text",
"position": 1
}
],
"product_type": "text",
"vendor": "text",
"tags": "text",
"created_at": "2025-10-27T21:19:59.383Z",
"updated_at": "2025-10-27T21:19:59.383Z",
"synced": true,
"last_synced_at": "2025-10-27T21:19:59.383Z"
},
"message": "Product created successfully. It will be synced to Shopify when activated."
}Updates an existing product. Use external_id for synced products or product_id for unsynced products.
Product identifier - external_id (Shopify ID) for synced products, or product_id for unsynced products
All fields are optional for updates
Product name
Product description (HTML allowed)
Brand/vendor name
Product category
Comma-separated tags
URL slug
^[a-z0-9-]+$Template suffix
Published scope
Product updated successfully
Validation errors
Unauthorized
Access denied
Product not found
PUT /api/v1/products/{id} HTTP/1.1
Host: api.maisonsafqa.com
X-MaisonSafqa-Api-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 477
{
"title": "text",
"body_html": "text",
"vendor": "text",
"product_type": "text",
"tags": "text",
"handle": "text",
"template_suffix": "text",
"published_scope": "text",
"variants": [
{
"title": "Medium",
"sku": "COTTON-TEE-001-M",
"price": 99.99,
"compare_at_price": 149.99,
"inventory_quantity": 25,
"weight": 0.2,
"weight_unit": "kg",
"barcode": "1234567890123",
"requires_shipping": true,
"taxable": true
}
],
"images": [
{
"src": "https://example.com/images/tshirt-front.jpg",
"alt": "T-shirt front view",
"position": 1
}
]
}{
"error": null,
"product": {
"id": "product_1234567890123456",
"title": "Premium Cotton T-Shirt",
"description": "<p>High quality cotton t-shirt perfect for everyday wear.</p>",
"handle": "premium-cotton-t-shirt",
"status": "draft",
"variants": [
{
"id": "text",
"title": "text",
"sku": "text",
"price": 1,
"compare_at_price": 1,
"inventory_quantity": 1,
"weight": 1,
"weight_unit": "text",
"requires_shipping": true,
"taxable": true,
"barcode": "text",
"option1": "text",
"option2": "text",
"option3": "text"
}
],
"images": [
{
"id": "text",
"src": "text",
"alt": "text",
"position": 1
}
],
"product_type": "text",
"vendor": "text",
"tags": "text",
"created_at": "2025-10-27T21:19:59.383Z",
"updated_at": "2025-10-27T21:19:59.383Z",
"synced": true,
"last_synced_at": "2025-10-27T21:19:59.383Z"
},
"message": "Product created successfully. It will be synced to Shopify when activated."
}