curl --location 'https://api.qa.ordermesh.io/catalog/v1/merchantCatalog' \
--header 'Content-Type: application/json' \
--data '{
"ownerMerchantId": "merchant123",
"name": "Subaccount Catalogs",
"description": "This is a sample merchant catalog for subaccounts.",
"isEnabled": false,
"assignedToSubAccountIds": [
"subAccount1",
"subAccount2"
],
"variants": [
{
"sku": "sku123",
"merchantSku": "merchantSku123",
"merchantPrice": {
"currencies": null,
"amount": 7.9,
"currency": "USD"
},
"skipImageManipulation": null,
"productId": null,
"decorations": [
{
"area": "Front",
"width": 200,
"height": 300,
"dpi": 300,
"method": "Embroidery",
"price": {
"currencies": [
{
"amount": 10.99,
"currency": "USD"
}
],
"amount": 0,
"currency": null
},
"printImage": {
"sourcePrintFileUrl": "https://example.com/images/print-image.png",
"imageUploadStatus": null,
"imageUploadStatusDesc": null,
"ourPrintFileId": null,
"ourPrintFileUrl": null
}
}
],
"attributes": [
{
"name": "Color",
"value": "Red"
},
{
"name": "Size",
"value": "Large"
}
]
}
]
}'{
"id": "63f5f1f77dabc3305f462344",
"errors": [
{
"errorMessage": "Catalog created with error",
"propertyName": "Variants",
"attemptedValue": [
"invalid-sku-1",
"invalid-sku-2"
]
}
]
}