跳转到内容

Download Label

此内容尚不支持你的语言。

Sometimes the result of PurchaseLabel, PackingList, or SSCCLabel API call will return a DownloadLabel link. You can call GET DownloadLabel link the same way as you call any other API endpoint to obtain the actual pdf document.

Notice this API call also requires you pass Teapplix API APIToken header to authenticate yourself. If the returned DownloadLabel link has a sign=xxx parameter, you can call this URL without APIToken header. But typically this link is good only for 30 minutes before it expires.

GET
https://api.teapplix.com/api2/DownloadLabel/{path} Explorer

GET Request

No body.

GET Response - 200

File Content

Binary file streamed directly in the response body. Inspect the Content-Type header to determine the format and Content-Disposition for the suggested filename.

PropertyTypeDescriptionConstraints
Content-Type string MIME type of the downloaded file One of: application/pdf, image/png, image/gif, image/tiff, application/octet-stream

GET Response - 400

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description

GET Response - 404

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description
Test Request