Key | Purpose | Sample | Description |
---|---|---|---|
formcode | The printer form code (optional) | http://localhost:1024/documents/13123123123?formcode=INVOICE2 |
Gets the printed version of the invoice using the printer form layout with code INVOICE2 |
mode | The method used to return the document (optional - default is JSON) | http://localhost:1024/documents/13123123123?mode=file |
This can be either JSON, FILE or COMPRESSED. JSON returns the document as GZipped Base64Encoded string in a JSON object, FILE returns the raw document and COMPRESSED returns a GZIipped version of the file. |
Name | Type | Description |
---|---|---|
DocumentMimeType | String | The type of the document when uncompressed e.g. application/pdf |
MimeType | String | The type of the compressed document string usually application/gzip |
Document | String | A base64 encoded representation of the document |