Megaventory API v2017a

<back to all web services

PrintDocument

The following routes are available for this service:
GET POST/Printing/PrintDocumentReturns the print form of a document as a PDF (Base64 string) or raw HTML

To override the Content-type in your clients HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/PrintDocument HTTP/1.1 
Host: api.megaventory.com 
Content-Type: text/csv
Content-Length: length

APIKEY,DocumentID,PrintType,OutputFormat
String,0,Default,PdfBase64

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

Response,ResponseStatus,InternalErrorCode
String,"{ErrorCode:String,Message:String,StackTrace:String,Errors:[{ErrorCode:String,FieldName:String,Message:String}]}",String