POST api/InvoiceApi/DownloadPdf

Download invoice pdf using either voucher number or order number

Request Information

URI Parameters

None.

Body Parameters

Download request

DownloadPdfRequest
NameDescriptionTypeAdditional information
VoucherNumber

Invoice voucher number

string

None.

OrderNumber

External order number

string

None.

Request Formats

application/json, text/json

Sample:
{
  "VoucherNumber": "sample string 1",
  "OrderNumber": "sample string 2"
}

application/xml, text/xml

Sample:
<DownloadPdfRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/E3k.Web.CustomerPortal.Models.Api">
  <OrderNumber>sample string 2</OrderNumber>
  <VoucherNumber>sample string 1</VoucherNumber>
</DownloadPdfRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DownloadPdfRequest'.

Response Information

Resource Description

PDF stream

Stream
NameDescriptionTypeAdditional information
CanRead

boolean

None.

CanSeek

boolean

None.

CanTimeout

boolean

None.

CanWrite

boolean

None.

Length

integer

None.

Position

integer

None.

ReadTimeout

integer

None.

WriteTimeout

integer

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.