WebApi

<back to all web services

InvoiceUploadRequest

The following routes are available for this service:
PUT/enterprise/invoice/uploadBegins upload of a new invoice.Use returned StatusToken to upload line items and close request to complete invoice.
OPTIONS/enterprise/invoice/upload

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/InvoiceUploadRequest HTTP/1.1 
Host: api.homenetiol.com 
Content-Type: application/xml
Content-Length: length

<InvoicingMessageHandler.InvoiceUploadRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.MessageHandlers.Mobile">
  <BillToVirtualRooftopID xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.Common.Messages.Mobile">0</BillToVirtualRooftopID>
  <ClientInvoiceID xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.Common.Messages.Mobile">00000000-0000-0000-0000-000000000000</ClientInvoiceID>
  <DateClosed xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.Common.Messages.Mobile">0001-01-01T00:00:00</DateClosed>
  <DateInvoiced xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.Common.Messages.Mobile">0001-01-01T00:00:00</DateInvoiced>
  <InvoiceNumber xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.Common.Messages.Mobile">String</InvoiceNumber>
  <Notes xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.Common.Messages.Mobile">String</Notes>
  <PONumber xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.Common.Messages.Mobile">String</PONumber>
  <RepresentativeID xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.Common.Messages.Mobile">0</RepresentativeID>
</InvoicingMessageHandler.InvoiceUploadRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<InvoiceUploadResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.Common.Messages.Mobile">
  <MessageDetails i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.Common.Messages" />
  <ResponseMessageKind xmlns="http://schemas.datacontract.org/2004/07/HNI.InventoryOnline.WebIOL.WebApi.Common.Messages">None</ResponseMessageKind>
  <InvoiceNumber>String</InvoiceNumber>
  <StatusTokenID>00000000-0000-0000-0000-000000000000</StatusTokenID>
</InvoiceUploadResponse>