Modify batch of articles
Headers
-
TARGET-ORGANIZATION-ID integer(int32)
ID of organization, for which the operation must be performed
-
API token (can be retrieved from account settings)
Body Required
articles
-
archived boolean
-
articleId string
-
categoryId integer
-
categoryName string
-
currency object
Additional properties are allowed.
-
description object
Additional properties are allowed.
-
ean string
-
endDate string
-
id integer
-
imageId integer
-
isLinkedToShipments boolean
-
isManufactured boolean
-
items array[object]
-
localizations object
Additional properties are allowed.
-
margin number
-
measurement string
Values are
UNIT
,ML
,DL
,L
,HL
,G
,KG
,T
,H
,M
,M_2
,M_3
,KM
, orDAY
. -
name object
Additional properties are allowed.
-
quantity number
-
saleAccountId integer
-
saleAccountName object
Additional properties are allowed.
-
startDate string
-
type string
Values are
PRODUCT
,SERVICE
, orBUNDLE
. -
unitCost string
-
unitPrice string
-
vatRateId integer
-
weightKg number
POST /api-v1/article/batch
curl \
-X POST http://10.10.10.132/api-v1/article/batch \
-H "TARGET-ORGANIZATION-ID: 42" \
-H "WEAL-TOKEN: string" \
-d '[{"archived":true,"articleId":"string","categoryId":42,"categoryName":"string","currency":{"code":"string","id":42,"name":"string"},"description":{"de":"string","en":"string","fr":"string","id":42,"it":"string"},"ean":"string","endDate":"string","id":42,"imageId":42,"isLinkedToShipments":true,"isManufactured":true,"items":[{"amount":"string","articleId":42,"articleName":{"de":"string","en":"string","fr":"string","it":"string"},"discount":"string","id":42,"price":"string","totalPrice":"string"}],"localizations":{"de":"string","en":"string","fr":"string","id":42,"it":"string"},"margin":42.0,"measurement":"UNIT","name":{"de":"string","en":"string","fr":"string","id":42,"it":"string"},"quantity":42.0,"saleAccountId":42,"saleAccountName":{"de":"string","en":"string","fr":"string","it":"string"},"startDate":"string","type":"PRODUCT","unitCost":"string","unitPrice":"string","vatRateId":42,"weightKg":42.0}]'
Request examples
# Headers
TARGET-ORGANIZATION-ID: 42
WEAL-TOKEN: string
# Payload
[
{
"archived": true,
"articleId": "string",
"categoryId": 42,
"categoryName": "string",
"currency": {
"code": "string",
"id": 42,
"name": "string"
},
"description": {
"de": "string",
"en": "string",
"fr": "string",
"id": 42,
"it": "string"
},
"ean": "string",
"endDate": "string",
"id": 42,
"imageId": 42,
"isLinkedToShipments": true,
"isManufactured": true,
"items": [
{
"amount": "string",
"articleId": 42,
"articleName": {
"de": "string",
"en": "string",
"fr": "string",
"it": "string"
},
"discount": "string",
"id": 42,
"price": "string",
"totalPrice": "string"
}
],
"localizations": {
"de": "string",
"en": "string",
"fr": "string",
"id": 42,
"it": "string"
},
"margin": 42.0,
"measurement": "UNIT",
"name": {
"de": "string",
"en": "string",
"fr": "string",
"id": 42,
"it": "string"
},
"quantity": 42.0,
"saleAccountId": 42,
"saleAccountName": {
"de": "string",
"en": "string",
"fr": "string",
"it": "string"
},
"startDate": "string",
"type": "PRODUCT",
"unitCost": "string",
"unitPrice": "string",
"vatRateId": 42,
"weightKg": 42.0
}
]
Response examples (200)
{
"items": [
{
"error": true,
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"data": "string",
"errorCode": "string",
"fieldName": "string",
"isSevere": true
}
]
},
"freshData": {},
"freshRow": {},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"severeError": true
}
]
}