Download Collection POD PDF File

15. DOWNLOAD COLLECTION POD PDF FILE

URL: https://app.detrack.com/api/v1/collections/export.pdf
HTTP POST REQUEST

Note: the request structure below is for Method #1: Name/Value Pair (NVP) + JSON String . For Method #2: Custom Header + JSON Body , please refer to the json parameter only.

Parameter Description
key Your API key. You can obtain this from your dashboard.
json The JSON string containing the date and D.O. # for which you wish to download POD image file. It should contain the following:

Field Description
date The collection date. Format: YYYY-MM-DD e.g. 2014-02-28. Required field.
do The D.O. #. The D.O. # of the collection to download POD image file for. Required field.
HTTP POST RESPONSE (FILE DOWNLOAD OR HTTP 404 ERROR)

If a POD PDF file is available for the delivery, the file will be returned for binary transfer. If no POD PDF file is available, then a HTTP 404 error will be returned.

SAMPLE REQUEST JSON
{
"date":"2014-02-13",
"do":"DO140213001"
}