UpdateArticle
This function lets you update an article (an SKU).
Tags: UpdateArticle, UpdateArticle, UpdateArticleResult, 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>decimal</Location>
</UpdateDefaultLocation>
<UpdateDefaultLocationMaxNumberOfItems>
<DefaultLocationMaxNumberOfItems>decimal</DefaultLocationMaxNumberOfItems>
</UpdateDefaultLocationMaxNumberOfItems>
<UpdateDefaultLocationStockLimit>
<DefaultLocationStockLimit>decimal</DefaultLocationStockLimit>
</UpdateDefaultLocationStockLimit>
</UpdateArticle>
</UpdateArticle>
</soap:Body>
</soap:Envelope>
Request specification
UpdateArticle |
UserName |
str(50) |
Req. |
Your username. |
Password |
str(50) |
Req. |
Your password. |
UpdateArticle |
object |
Req. |
An object specifying the fields that you want to update |
UpdateArticle |
UpdateArticleName |
object |
|
|
> ArticleName |
str(200) |
|
New article name for the article |
UpdateArticleBarcode |
object |
|
|
> Barcode |
str(100) |
|
New barcode for the article |
UpdateArticleLength |
object |
|
|
> Length |
dec |
|
New length for the article |
UpdateArticleWidth |
object |
|
|
> Width |
dec |
|
New width for the article |
UpdateArticleHeight |
object |
|
|
> Height |
dec |
|
New height for the article |
UpdateArticleVolume |
object |
|
|
> Volume |
dec |
|
New volume for the article |
UpdateArticleWeight |
object |
|
|
> Weight |
dec |
|
New weight for the article |
UpdateDefaultLocation |
object |
|
|
> Weight |
str(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 |
object |
|
|
> DefaultLocationMaxNumberOfItems |
dec |
|
New maximum number of items which should be placed at the article's default location. |
UpdateDefaultLocationStockLimit |
object |
|
|
> DefaultLocationStockLimit |
dec |
|
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
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?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
UpdateArticleResult |
Success |
bool |
True if successful, false otherwise. |
Message |
str(*) |
Error message, if the call was unsuccessful. |
ArticleDefId |
int |
Ongoing WMS internal article id of the article. |
Errors |
obj[] |
List of AutomationUpdateArticleError. |
AutomationUpdateArticleError |
Message |
str(*) |
Error message, if the call was unsuccessful. |
ErrorType |
string |
The type of error:
- UnknownError
- LogonError
- ArticleNotFound
- ArticleIsDeleted
- InvalidFieldValue
- GoodsOwnerIsDeleted
|