Manifest
Generate Postal CN Documents
URL
PROD https://api.skypostal.com
TEST https://api-test.skypostal.com
Endpoint
POST /wcf-services/service-manifest.svc/manifest/generate-postal-cn-documents
Request Parameters
Parameters | |
---|---|
| Object - Required User Info Definition. |
| Integer - Required Manifest identificator provided by Skypostal. |
| String PDF or PNG if image required. |
User Info Definition
Parameters | |
---|---|
| Integer - Required This is the user code provided by Skypostal. |
| String - Required This is the app key provided by Skypostal. |
| String - Required This is the app key provided by Skypostal. |
Remember
user_code
, user_key
and app_key
are generic credentials, make sure to request your own for TEST
and PROD
environments.
The command should be run as in the following example:
{
"user_info": {
"user_code": "1",
"user_key": "ok",
"app_key": "ok"
},
"manifest_id" :12453746,
"cn35_image_format":null // PDF or PNG if image required
}
The command will return the following format:
{
"_verify": true,
"data_bags": [
{
"bag_id": 1333884,
"bag_tag_pdf": null,
"bag_tag_url": null,
"bag_tag_zpl": "XlhBDQpeTU1UDQpeUFc4MTINCl5MTDEyMTgNCl5MUzANCl5GTzE2LDk...",
"bag_tag_zpl_large": "XlhBflRBMDAwfkpTTl5MVDBeTU5XXk1URF5QT05eUE1OXkxIM...",
"barcode": "USPDQZECUIOAAUZ55001001000038",
"client_bag_id": "TSTCN001",
"error_description": null,
"is_error": false,
"provider_bag_id": "12453746001",
"service_type": null
},
{
"bag_id": 1333885,
"bag_tag_pdf": null,
"bag_tag_url": null,
"bag_tag_zpl": "XlhBDQpeTU1UDQpeUFc4MTINCl5MTDEyMTgNCl5MUzAN...",
"bag_tag_zpl_large": "XlhBflRBMDAwfkpTTl5MVDBeTU5XXk1URF5Q...",
"barcode": "USPDQZECUIOAAUZ55001002100076",
"client_bag_id": "TSTCN002",
"error_description": null,
"is_error": false,
"provider_bag_id": "12453746002",
"service_type": null
}
],
"data_master": {
"manifest_cn_list": [
{
"document_base64": "",
"document_id": "CN31-12453746",
"document_name": "",
"document_pdf_url": "https://testlabels.skypostal.com/pdf/?label=https%3A%2F%2Freceipt.skypostal.com%2Fcn-31%3Fmanifest_id%3D12453746",
"document_type": "CN31",
"document_url": "https://receipt.skypostal.com/cn-31?manifest_id=12453746"
},
{
"document_base64": "",
"document_id": "CN38-12453746",
"document_name": "",
"document_pdf_url": "https://testlabels.skypostal.com/pdf/?label=https%3A%2F%2Freceipt.skypostal.com%2Fcn-38%3Fmanifest_id%3D12453746",
"document_type": "CN38",
"document_url": "https://receipt.skypostal.com/cn-38?manifest_id=12453746"
},
{
"document_base64": "",
"document_id": "CN33-12453746",
"document_name": "",
"document_pdf_url": "https://testlabels.skypostal.com/pdf/?label=https%3A%2F%2Freceipt.skypostal.com%2Fcn-33%3Fmanifest_id%3D12453746",
"document_type": "CN33",
"document_url": "https://receipt.skypostal.com/cn-33?manifest_id=12453746"
}
],
"manifest_id": 12453746,
"master_awb": "BQCN-TST-001",
"provider_consignment_id": "USPDQZ840185",
"provider_manifest_id": "USPDQZECUIOAAUZ55001"
},
"error": {
"error_code": null,
"error_description": null,
"error_location": null,
"system_error": false
}
}