RemoveOrderFile

This call allows you to delete a file which has been attached to an order.

Tags: RemoveOrderFile, AutomationRemoveOrderFileOperation, AutomationRemoveOrderFileOperationFileInfo, RemoveOrderFileResponse, AutomationRemoveOrderFileResult

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

<?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>
    <RemoveOrderFile xmlns="http://ongoingsystems.se/Automation">
      <UserName>string</UserName>
      <Password>string</Password>
      <Operation>
        <OrderId>int</OrderId>
        <File>
          <FileId>int</FileId>
          <FileName>string</FileName>
        </File>
      </Operation>
    </RemoveOrderFile>
  </soap:Body>
</soap:Envelope>

Request specification

RemoveOrderFile
UserName string(50) Req. Your username
Password string(50) Req. Your password
Operation AutomationRemoveOrderFileOperation Req. The operation object
AutomationRemoveOrderFileOperation
OrderId int Req. The order ID of the order which contains the file that you want to remove.
File AutomationRemoveOrderFileOperationFileInfo Req. Information about the file that you want to remove.
AutomationRemoveOrderFileOperationFileInfo
FileId int Ongoing WMS' public internal id for the file.
FileName string(300) The filename.

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>
    <RemoveOrderFileResponse xmlns="http://ongoingsystems.se/Automation">
      <RemoveOrderFileResult>
        <Success>boolean</Success>
        <Message>string</Message>
        <OrderId>int</OrderId>
        <FileId>int</FileId>
      </RemoveOrderFileResult>
    </RemoveOrderFileResponse>
  </soap:Body>
</soap:Envelope>

Response specification

RemoveOrderFileResponse
RemoveOrderFileResult AutomationRemoveOrderFileResult
AutomationRemoveOrderFileResult
Success boolean True if successful, false otherwise.
Message string Error message, if the call was unsuccessful.
OrderId int Ongoing WMS internal ID of the order that the removed file belonged to.
FileId int Ongoing WMS internal ID of the file that was removed.