Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
Body
Required
-
Entity ID. If negative value, a new entity will be created
-
Article type
Values are
PRODUCT,SERVICE, orBUNDLE. -
Article code / external identifier
-
Multilingual name of the article.
-
Multilingual description of the article.
-
Image document ID
-
Article category ID
-
Unit of measurement. Not applicable for BUNDLE type
Values are
UNIT,ML,DL,L,HL,G,KG,T,H,M,M_2,M_3,KM, orDAY. -
Unit cost as string. Not applicable for BUNDLE type
-
Unit price as string
-
VAT rate ID
-
Chart of accounts sale account ID
-
Currency. Only id is required when sending. Null for BUNDLE type
-
EAN barcode
-
Whether the article is manufactured. Only relevant for PRODUCT type
-
Whether the article is archived
-
Quantity in stock (informational, managed by stock movements)
-
Validity start date (ISO 8601)
-
Validity end date (ISO 8601)
-
Margin value
-
Weight in kg, up to 3 decimal places
-
Bundle items. Only applicable for BUNDLE type
curl \
--request POST 'https://wyzio.app/api-v1/article/batch' \
--header "Content-Type: application/json" \
--data '[{"id":12345678,"type":"PRODUCT","articleId":"ART-001","name":{"id":12345678,"en":"English translation","fr":"Traduction française","de":"Deutsche Übersetzung","it":"Traduzione in italiano"},"description":{"id":12345678,"en":"English translation","fr":"Traduction française","de":"Deutsche Übersetzung","it":"Traduzione in italiano"},"imageId":12345678,"categoryId":12345678,"measurement":"UNIT","unitCost":100.0,"unitPrice":150.0,"vatRateId":12345678,"saleAccountId":12345678,"currency":{"id":12345678},"ean":4006381333931,"isManufactured":true,"archived":false,"quantity":10.0,"startDate":"2024-01-01","endDate":"2024-12-31","margin":25.0,"weightKg":1.255,"items":[{"id":12345678,"articleId":12345678,"price":50.0,"amount":2,"discount":10.0,"totalPrice":90.0}]}]'
# Headers
# Payload
[
{
"id": 12345678,
"type": "PRODUCT",
"articleId": "ART-001",
"name": {
"id": 12345678,
"en": "English translation",
"fr": "Traduction française",
"de": "Deutsche Übersetzung",
"it": "Traduzione in italiano"
},
"description": {
"id": 12345678,
"en": "English translation",
"fr": "Traduction française",
"de": "Deutsche Übersetzung",
"it": "Traduzione in italiano"
},
"imageId": 12345678,
"categoryId": 12345678,
"measurement": "UNIT",
"unitCost": 100.0,
"unitPrice": 150.0,
"vatRateId": 12345678,
"saleAccountId": 12345678,
"currency": {
"id": 12345678
},
"ean": 4006381333931,
"isManufactured": true,
"archived": false,
"quantity": 10.0,
"startDate": "2024-01-01",
"endDate": "2024-12-31",
"margin": 25.0,
"weightKg": 1.255,
"items": [
{
"id": 12345678,
"articleId": 12345678,
"price": 50.0,
"amount": 2,
"discount": 10.0,
"totalPrice": 90.0
}
]
}
]
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}