GET api/v1/Pdf/{id}?token={token}&documentNumber={documentNumber}&trxTypeId={trxTypeId}&lan={lan}

Stream the PDF file of the given document.
If the document is a Computerized Document then the method returns a digitally-signed "Original" PDF document.
If the document was printed to paper then the method returns a "Copy" non-signed PDF document.

Request Information

URI Parameters

NameDescriptionType/Additional information
token

The access Token for the account/business

string

Required

documentNumber

The document's number. E.g.: "02/200130"

string
trxTypeId

Optional. The document TrxTypeId.
If not specified then Caspit will fetch the documennt based only on its Number.
Send an int. For values see the ApiGlobals.TrxTypes enumeration in the SDK

TrxTypes

id

The document's id. The id is the same id you supplied to CaspitWeb when creating a document.
If you do not know the document's id you can fetch it via a different API call and look it up in the result.

string
lan

The langauage. 0 = Hebrew, 1 = English. Default is Hebrew.

Language

Default value is Hebrew

Body Parameters

None.

Response Description

A PDF document (media type application/pdf)

HttpResponseMessage