GetInvoiceHistory

Description

Using this method we want to receive the outstanding invoices of the given customer.

Note that the invoices should be returned in reversed order. The invoice history is shown on the shop in a paged manner. The first page contains the most recent invoices with the latest invoice on top of the list.

Action

http://shoxl.com/ShoxlService/GetInvoiceHistory

Please note: this is not a working url, but a combination of namespace and method. Do not expect the url to return a result.

Style

Document

Input (Literal)

The input of this method is the document element tns:GetInvoiceHistory having the structure defined by the following table.

Complex Type: tns:GetInvoiceHistoryRequest

Description

The GetInvoiceHistoryRequest contains all the information to get the outstanding

invoices of the customer.

Output (Literal)

The output of this method is the document element tns:GetInvoiceHistoryResponse having the structure defined by the following table.

Complex Type: tns:GetInvoiceHistoryResult

Description

The GetInvoiceHistoryResult contains all the outstanding invoices of the given

customer.

Complex Type: tns:ArrayfInvoiceHistoryItem

Complex Type: tns:InvoiceHistoryItem

A InvoiceHistoryItem contains the main information of an invoice from the ERP system.

REST API:

URL: /Shoxl/v1/GetInvoiceHistory Method: POST

Request body:

GetInvoiceHistoryRequest{

}

Example:

{
  "accountNumber": "string",
  "pageNumber": 0
}

Response body:

GetInvoiceHistoryResult{

}

InvoiceHistoryItem{

}

Example:

{
  "errorCode": "string",
  "errorDescription": "string",
  "orders": [
    {
      "customerNumber": "string",
      "downloadablePdfUri": "string",
      "invoiceDate": "2021-07-21",
      "invoiceNumber": "string",
      "totalOutstanding": 0,
      "totalPrice": 0
    }
  ],
  "request": {
    "accountNumber": "string",
    "pageNumber": 0
  },
  "totalPages": 0
}

Last updated