PRINT api/v1/Documents/{id}?token={token}&documentNumber={documentNumber}&trxTypeId={trxTypeId}&lan={lan}&createSignedPdf={createSignedPdf}
Emulate the printing of a document to paper.
If the document in status חדש then Caspit will change the status to הודפס and will run all the logic relevant
to printing a document, e.g. decreasing the number of items in the inventory.
If the document is in status הודפס or מבוטל then Caspit will skip the printing logic.
Will return the URL for fetching the PDF in the location header of the response similar to
http://casp.it/MvBmPgljEb
Request Information
URI Parameters
Name | Description | Type/Additional information |
---|---|---|
token |
The login token. You can pass the token in the query string or in a header called Caspit-Token |
string |
documentNumber |
The document's number. E.g.: "02/200130" |
string |
trxTypeId |
Optional. The document TrxTypeId.
|
|
id |
The document's id. If specified then it takes precedence over the document number and over the document's type |
string |
lan |
The langauage. 0 = Hebrew, 1 = English. Default is Hebrew. |
Default value is Hebrew |
createSignedPdf |
if 0 then create a "paper" PDF, else create a digitally signed PDF file. Default is 1 |
int32
Default value is 1 |
Body Parameters
None.
Response Description
Http Code 201 (Created) and a PDF file stream