Hallo zusammen,
beim Anlegen eines Artikels über die API kommt folgende Fehlermeldung:
{
"success": false,
"message": "Validation error",
"errors": [
"tax: This value should not be blank.",
"mainDetail.number: This value should not be blank.",
"name: This value should not be blank."
]
}
Der gesendete Testartikel lautet:
{
"data": {
"name": "nicotest",
"id": 0,
"description": null,
"links": null,
"active": true,
"mainDetailId": 0,
"supplierId": 0,
"taxId": 0,
"priceGroupId": null,
"filterGroupId": null,
"configuratorSetId": null,
"descriptionLong": null,
"added": null,
"pseudoSales": 0,
"highlight": null,
"keywords": null,
"priceGroupActive": null,
"lastStock": null,
"crossBundleLook": 0,
"notification": null,
"template": null,
"availableFrom": null,
"availableTo": null,
"mainDetail": {
"id": 0,
"number": "SKU101001",
"position": 0,
"attribute": null,
"unitId": null,
"supplierNumber": null,
"kind": 0,
"additionalText": null,
"active": null,
"inStock": 0,
"stockMin": 0,
"weight": null,
"width": null,
"len": null,
"height": null,
"ean": null,
"purchasePrice": null,
"minPurchase": 0,
"purchaseSteps": null,
"maxPurchase": null,
"purchaseUnit": null,
"referenceUnit": null,
"packUnit": null,
"shippingFree": null,
"releaseDate": null,
"shippingTime": null,
"prices": [
{
"id": 0,
"from": 0,
"articleId": 0,
"articleDetailsId": 0,
"customerGroupKey": "EK",
"to": null,
"price": 22.9,
"pseudoPrice": 0,
"customerGroup": null,
"percent": 0
}
],
"configuratorOptions": null,
"articleId": 0
},
"propertyValues": null,
"supplier": {
"name": "Nico Hersteller",
"id": null,
"description": null,
"link": null,
"metaDescription": null,
"image": null,
"metaTitle": null,
"metaKeywords": null,
"changed": null
},
"propertyGroup": null,
"customerGroups": null,
"images": null,
"configuratorSet": null,
"downloads": null,
"categories": [
"NicoKategorie"
],
"similar": null,
"related": null,
"details": null,
"seoCategories": null,
"tax": {
"name": "19",
"id": 0,
"tax": "19"
},
"metaTitle": null,
"changed": null,
"mode": 0
}
}
Hat jemand selbiges schon mal gehabt? Was kann da das Problem sein?