Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/article/batch
curl \
--request POST 'https://wyzio.app/api-v1/article/batch' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '[{"id":42,"type":"PRODUCT","articleId":"string","name":{"id":42,"en":"string","fr":"string","de":"string","it":"string"},"description":{"id":42,"en":"string","fr":"string","de":"string","it":"string"},"imageId":42,"categoryId":42,"measurement":"UNIT","unitCost":"string","unitPrice":"string","vatRateId":42,"saleAccountId":42,"saleAccountName":{"en":"string","fr":"string","de":"string","it":"string"},"categoryName":"string","currency":{"id":42,"code":"string","name":"string"},"ean":"string","items":[{"id":42,"articleId":42,"price":"string","amount":"string","discount":"string","totalPrice":"string","articleName":{"en":"string","fr":"string","de":"string","it":"string"}}],"isManufactured":true,"isLinkedToShipments":true,"archived":true,"quantity":42.0,"startDate":"string","endDate":"string","margin":42.0,"weightKg":42.0,"localizations":{"id":42,"en":"string","fr":"string","de":"string","it":"string"}}]'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
[
{
"id": 42,
"type": "PRODUCT",
"articleId": "string",
"name": {
"id": 42,
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"description": {
"id": 42,
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"imageId": 42,
"categoryId": 42,
"measurement": "UNIT",
"unitCost": "string",
"unitPrice": "string",
"vatRateId": 42,
"saleAccountId": 42,
"saleAccountName": {
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"categoryName": "string",
"currency": {
"id": 42,
"code": "string",
"name": "string"
},
"ean": "string",
"items": [
{
"id": 42,
"articleId": 42,
"price": "string",
"amount": "string",
"discount": "string",
"totalPrice": "string",
"articleName": {
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
}
}
],
"isManufactured": true,
"isLinkedToShipments": true,
"archived": true,
"quantity": 42.0,
"startDate": "string",
"endDate": "string",
"margin": 42.0,
"weightKg": 42.0,
"localizations": {
"id": 42,
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
}
}
]
Response examples (200)
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"freshRow": {},
"freshData": {},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}