Ongoing WMS logo

Ongoing WMS Developer

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>
      </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

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