UpdateArticle
This function lets you update an article (an SKU).
Tags: UpdateArticle, AutomationUpdateArticle, UpdateArticleName, UpdateArticleBarcode, UpdateArticleLength, UpdateArticleWidth, UpdateArticleHeight, UpdateArticleVolume, UpdateArticleWeight, UpdateDefaultLocation, UpdateDefaultLocationMaxNumberOfItems, UpdateDefaultLocationStockLimit, UpdateArticleResponse, AutomationUpdateArticleResult, AutomationUpdateArticleError
Request XML
POST /xxx/Automation.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/Automation/UpdateArticle"
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateArticle xmlns="http://ongoingsystems.se/Automation">
<UserName>string</UserName>
<Password>string</Password>
<UpdateArticle>
<ArticleDefId>int</ArticleDefId>
<UpdateArticleName>
<ArticleName>string</ArticleName>
</UpdateArticleName>
<UpdateArticleBarcode>
<Barcode>string</Barcode>
</UpdateArticleBarcode>
<UpdateArticleLength>
<Length>decimal</Length>
</UpdateArticleLength>
<UpdateArticleWidth>
<Width>decimal</Width>
</UpdateArticleWidth>
<UpdateArticleHeight>
<Height>decimal</Height>
</UpdateArticleHeight>
<UpdateArticleVolume>
<Volume>decimal</Volume>
</UpdateArticleVolume>
<UpdateArticleWeight>
<Weight>decimal</Weight>
</UpdateArticleWeight>
<UpdateDefaultLocation>
<Location>string</Location>
</UpdateDefaultLocation>
<UpdateDefaultLocationMaxNumberOfItems>
<DefaultLocationMaxNumberOfItems>decimal</DefaultLocationMaxNumberOfItems>
</UpdateDefaultLocationMaxNumberOfItems>
<UpdateDefaultLocationStockLimit>
<DefaultLocationStockLimit>decimal</DefaultLocationStockLimit>
</UpdateDefaultLocationStockLimit>
</UpdateArticle>
</UpdateArticle>
</soap:Body>
</soap:Envelope>
Request specification
UpdateArticle |
UserName |
string(50) |
Req. |
Your username |
Password |
string(50) |
Req. |
Your password |
UpdateArticle |
AutomationUpdateArticle |
Req. |
An object specifying the fields that you want to update |
AutomationUpdateArticle |
ArticleDefId |
int |
Req. |
Ongoing WMS' internal ID for the article which you want to update. |
UpdateArticleName |
UpdateArticleName |
|
An element of type UpdateArticleName. |
UpdateArticleBarcode |
UpdateArticleBarcode |
|
An element of type UpdateArticleBarcode. |
UpdateArticleLength |
UpdateArticleLength |
|
An element of type UpdateArticleLength. |
UpdateArticleWidth |
UpdateArticleWidth |
|
An element of type UpdateArticleWidth. |
UpdateArticleHeight |
UpdateArticleHeight |
|
An element of type UpdateArticleHeight. |
UpdateArticleVolume |
UpdateArticleVolume |
|
An element of type UpdateArticleVolume. |
UpdateArticleWeight |
UpdateArticleWeight |
|
An element of type UpdateArticleWeight. |
UpdateDefaultLocation |
UpdateDefaultLocation |
|
An element of type UpdateDefaultLocation. |
UpdateDefaultLocationMaxNumberOfItems |
UpdateDefaultLocationMaxNumberOfItems |
|
An element of type UpdateDefaultLocationMaxNumberOfItems. |
UpdateDefaultLocationStockLimit |
UpdateDefaultLocationStockLimit |
|
An element of type UpdateDefaultLocationStockLimit. |
UpdateArticleName |
ArticleName |
string(200) |
|
New article name for the article |
UpdateArticleBarcode |
Barcode |
string(100) |
|
New barcode for the article |
UpdateArticleLength |
Length |
decimal |
|
New length for the article |
UpdateArticleWidth |
Width |
decimal |
|
New width for the article |
UpdateArticleHeight |
Height |
decimal |
|
New height for the article |
UpdateArticleVolume |
Volume |
decimal |
|
New volume for the article |
UpdateArticleWeight |
Weight |
decimal |
|
New weight for the article |
UpdateDefaultLocation |
Location |
string(50) |
|
New default location for the article. If you set it to the empty string, then the article's default location will be cleared. |
UpdateDefaultLocationMaxNumberOfItems |
DefaultLocationMaxNumberOfItems |
decimal |
|
New maximum number of items which should be placed at the article's default location. |
UpdateDefaultLocationStockLimit |
DefaultLocationStockLimit |
decimal |
|
New default location stock limit. If the quantity at the article's default location falls below this limit, the default location is supposed to be refilled. |
Response XML
<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateArticleResponse xmlns="http://ongoingsystems.se/Automation">
<UpdateArticleResult>
<Success>boolean</Success>
<Message>string</Message>
<ArticleDefId>int</ArticleDefId>
<Errors>
<AutomationUpdateArticleError>
<Message>string</Message>
<ErrorType>UnknownError or LogonError or ArticleNotFound or ArticleIsDeleted or InvalidFieldValue or GoodsOwnerIsDeleted</ErrorType>
</AutomationUpdateArticleError>
<AutomationUpdateArticleError>
<Message>string</Message>
<ErrorType>UnknownError or LogonError or ArticleNotFound or ArticleIsDeleted or InvalidFieldValue or GoodsOwnerIsDeleted</ErrorType>
</AutomationUpdateArticleError>
</Errors>
</UpdateArticleResult>
</UpdateArticleResponse>
</soap:Body>
</soap:Envelope>
Response specification
UpdateArticleResponse |
UpdateArticleResult |
AutomationUpdateArticleResult |
|
AutomationUpdateArticleResult |
Success |
boolean |
True if successful, false otherwise. |
Message |
string |
Error message, if the call was unsuccessful. |
ArticleDefId |
int |
Ongoing WMS internal article id of the article. |
Errors |
AutomationUpdateArticleError[] |
List of AutomationUpdateArticleError. |
AutomationUpdateArticleError |
Message |
string |
Error message, if the call was unsuccessful. |
ErrorType |
enum |
The type of error: - UnknownError
- LogonError
- ArticleNotFound
- ArticleIsDeleted
- InvalidFieldValue
- GoodsOwnerIsDeleted
|