ProcessGoodsOperationOrder

Used to create or update a goods operation order.

Tags: ProcessGoodsOperationOrder, GoodsOperationOrder, GoodsOperationOrderLine, GoodsOperationOrderLineArticleItemStatus, ProcessGoodsOperationOrderResponse, GoodsOperationOrderResult, ProcessGoodsOperationOrderError

Request XML

POST /xxx/Service.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/WSI/ProcessGoodsOperationOrder"

<?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>
    <ProcessGoodsOperationOrder xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <go>
        <GoodsOperationOrderIdentification>GoodsOperationOrderNumber</GoodsOperationOrderIdentification>
        <GoodsOperationOrderNumber>string</GoodsOperationOrderNumber>
        <GoodsOperationOrderComment>string</GoodsOperationOrderComment>
        <GoodsOperationOrderReferenceNumber>string</GoodsOperationOrderReferenceNumber>
        <GoodsOperationOrderLines>
          <GoodsOperationOrderLine>
            <GoodsOperationOrderLineIdentification>GoodsOperationOrderLineNumber</GoodsOperationOrderLineIdentification>
            <GoodsOperationOrderLineOperation>CreateOrUpdate</GoodsOperationOrderLineOperation>
            <GoodsOperationOrderLineArticleIdentification>ArticleNumber</GoodsOperationOrderLineArticleIdentification>
            <GoodsOperationOrderLineArticleOperation>Find or CreateOrUpdate</GoodsOperationOrderLineArticleOperation>
            <ArticleNumber>string</ArticleNumber>
            <NumberOfItems>decimal</NumberOfItems>
            <GoodsOperationOrderLineNumber>string</GoodsOperationOrderLineNumber>
            <GoodsOperationOrderLineComment>string</GoodsOperationOrderLineComment>
            <GoodsOperationOrderLineBatchNumber>string</GoodsOperationOrderLineBatchNumber>
            <FromArticleItemStatus>
              <Identification>ArticleItemStatusCode</Identification>
              <Operation>Find or CreateOrUpdate</Operation>
              <ArticleItemStatusCode>string</ArticleItemStatusCode>
            </FromArticleItemStatus>
            <ToArticleItemStatus>
              <Identification>ArticleItemStatusCode</Identification>
              <Operation>Find or CreateOrUpdate</Operation>
              <ArticleItemStatusCode>string</ArticleItemStatusCode>
            </ToArticleItemStatus>
          </GoodsOperationOrderLine>
          <GoodsOperationOrderLine>
            <GoodsOperationOrderLineIdentification>GoodsOperationOrderLineNumber</GoodsOperationOrderLineIdentification>
            <GoodsOperationOrderLineOperation>CreateOrUpdate</GoodsOperationOrderLineOperation>
            <GoodsOperationOrderLineArticleIdentification>ArticleNumber</GoodsOperationOrderLineArticleIdentification>
            <GoodsOperationOrderLineArticleOperation>Find or CreateOrUpdate</GoodsOperationOrderLineArticleOperation>
            <ArticleNumber>string</ArticleNumber>
            <NumberOfItems>decimal</NumberOfItems>
            <GoodsOperationOrderLineNumber>string</GoodsOperationOrderLineNumber>
            <GoodsOperationOrderLineComment>string</GoodsOperationOrderLineComment>
            <GoodsOperationOrderLineBatchNumber>string</GoodsOperationOrderLineBatchNumber>
            <FromArticleItemStatus>
              <Identification>ArticleItemStatusCode</Identification>
              <Operation>Find or CreateOrUpdate</Operation>
              <ArticleItemStatusCode>string</ArticleItemStatusCode>
            </FromArticleItemStatus>
            <ToArticleItemStatus>
              <Identification>ArticleItemStatusCode</Identification>
              <Operation>Find or CreateOrUpdate</Operation>
              <ArticleItemStatusCode>string</ArticleItemStatusCode>
            </ToArticleItemStatus>
          </GoodsOperationOrderLine>
        </GoodsOperationOrderLines>
      </go>
    </ProcessGoodsOperationOrder>
  </soap:Body>
</soap:Envelope>

Request specification

ProcessGoodsOperationOrder
GoodsOwnerCode string(400) Req. The name/code of your client
UserName string(50) Req. Your username
Password string(50) Req. Your password
go GoodsOperationOrder Req. The GoodsOperation object
GoodsOperationOrder
GoodsOperationOrderIdentification enum Req. Defines the operation:
 - GoodsOperationOrderNumber
GoodsOperationOrderNumber string Req. A public ordernumber for the operation, Used to identifie orders to update or create order.
GoodsOperationOrderComment string(500) Used to add comment to the warehouse
GoodsOperationOrderReferenceNumber string(50) Reference number
GoodsOperationOrderLines GoodsOperationOrderLine[] Req. Containing elements of GoodsOperationOrderLine. Defines articles information and goodsstatus change to and from
GoodsOperationOrderLine
GoodsOperationOrderLineIdentification enum Req. Defines what you want to identify the Goodsoperationline by
 - GoodsOperationOrderLineNumber
GoodsOperationOrderLineOperation enum Req. Defines the operation:
 - CreateOrUpdate
GoodsOperationOrderLineArticleIdentification enum Req. Defines the identification:
 - ArticleNumber
GoodsOperationOrderLineArticleOperation enum Req. Defines the identification:
 - Find
 - CreateOrUpdate
ArticleNumber string(100) Req. Article number, Used to identify the article
NumberOfItems decimal Req. The number of items to change
GoodsOperationOrderLineNumber string(100) Req. Line number
GoodsOperationOrderLineComment string(500) Comment
GoodsOperationOrderLineBatchNumber string(50) Batch number
FromArticleItemStatus GoodsOperationOrderLineArticleItemStatus An GoodsOperationOrderLineArticleItemStatus object
ToArticleItemStatus GoodsOperationOrderLineArticleItemStatus An GoodsOperationOrderLineArticleItemStatus object
GoodsOperationOrderLineArticleItemStatus
Identification enum Req. Defines the operation
 - ArticleItemStatusCode
Operation enum Req. Defines what you want to identify the customer group by
 - Find
 - CreateOrUpdate
ArticleItemStatusCode string(50) Req. GoodsStatus code

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>
    <ProcessGoodsOperationOrderResponse xmlns="http://ongoingsystems.se/WSI">
      <ProcessGoodsOperationOrderResult>
        <GoodsOperationOrderId>int</GoodsOperationOrderId>
        <Success>boolean</Success>
        <ProcessGoodsOperationOrderErrors>
          <ProcessGoodsOperationOrderError>
            <Message>string</Message>
            <ErrorType>LogonError or GoodsOperationOrderNumberNotSupplied or ArticleNumberNotFound or LineNumberMayNotBeEmptyOrWhitespace or NotAllowedToUpdateOrderBecauseOfOrderStatus or NotAllowedToUpdateOrderBecauseOfArticleItems or UnableToFindOldArticleItemStatus or UnableToFindNewArticleItemStatus or ErrorUpdatingOrderLine or UnknownError</ErrorType>
          </ProcessGoodsOperationOrderError>
          <ProcessGoodsOperationOrderError>
            <Message>string</Message>
            <ErrorType>LogonError or GoodsOperationOrderNumberNotSupplied or ArticleNumberNotFound or LineNumberMayNotBeEmptyOrWhitespace or NotAllowedToUpdateOrderBecauseOfOrderStatus or NotAllowedToUpdateOrderBecauseOfArticleItems or UnableToFindOldArticleItemStatus or UnableToFindNewArticleItemStatus or ErrorUpdatingOrderLine or UnknownError</ErrorType>
          </ProcessGoodsOperationOrderError>
        </ProcessGoodsOperationOrderErrors>
      </ProcessGoodsOperationOrderResult>
    </ProcessGoodsOperationOrderResponse>
  </soap:Body>
</soap:Envelope>

Response specification

ProcessGoodsOperationOrderResponse
ProcessGoodsOperationOrderResult GoodsOperationOrderResult
GoodsOperationOrderResult
GoodsOperationOrderId int Not used
Success boolean True if success
ProcessGoodsOperationOrderErrors ProcessGoodsOperationOrderError[]
ProcessGoodsOperationOrderError
Message string Process message
ErrorType enum Error type code