/api/v1/products/catalogue/{sku}PRODUCTS_WRITEAdd or update a product
The first call with a product code adds the product (201); later calls update it (200). Photo links are copied into Mira, so customers only ever load photos from Mira.
curl -X PUT https://api.motorsync.co.uk/api/v1/products/catalogue/MAT-001 \
-H "Authorization: Bearer ms_test_..." \
-H "Content-Type: application/json" \
-d '{
"title": "Rubber floor mats for BMW 3 Series",
"subCategory": "FLOOR_MATS", "condition": "NEW",
"price": "24.99", "stockQuantity": 10,
"buyOptions": ["SELLER_WEBSITE"], "buyUrl": "https://yourshop.co.uk/mats",
"imageUrls": ["https://yourshop.co.uk/mats-1.jpg"],
"fitmentMode": "EXACT",
"fitments": [{ "make": "BMW", "model": "3 Series", "yearFrom": 2015, "yearTo": 2022 }],
"fulfilment": [
{ "type": "COLLECT" },
{ "type": "FITTED", "price": "15.00", "durationMinutes": 20, "fittingLocation": "AT_SHOP" }
]
}'{
"success": true,
"data": {
"sku": "MAT-001",
"outcome": "WOULD_ADD",
"product": null,
"problems": []
},
"message": "WOULD_ADD"
}