POST v2/publishmanifest
This function accepts as input all pending consignments that are ready for manifesting. These consignmnets are manifested to their respective carriers and a summary manifest report is returned as a PDF.
This method will accept consignment numbers as an array.
- A valid access Key must be provided in access_key request header.
The body of the message should be sent as an JSON array.
A JSON list of consignment numbers.
JSON object array per manifest generated. This is in a key/value pair collection, with the manifest number being the key and value is the base64 encoded byte stream of the PDF.
HTTP 400.Bad request - when no consignment numbers supplied or when invalid consignment numbers supplied.
Request
http://api.gosweetspot.com/v2/publishmanifest
Headers
access_key: [access_key_for_site_account]
Content-Type: application/json; charset=utf-8
Body
[
"4WD0002186",
"4WD0002187",
"4WD0002188"
]
Response A JSON object array of order and save status.
{
"CZA0001": "JVBERi0xLjcgCiXi48/TIAoxIDAgb2JqIAo8PCAKL1R5cGUgL0NhdGFsb2cgCi9QYWdlcyAyIDAgUiAKL1BhZ2VNb2RlIC9Vc2VOb25lIAovVmlld2VyUHJlZmVyZW5jZXMgPDwgCi9GaXRXaW5kb3cgdHJ1ZSAKL1BhZ2VMYXlvdXQgL1NpbmdsZVBhZ2UgCi9Ob25GdWxsU2NyZWVuUGFnZU1vZGUgL1VzZU5vbmUgCj4+IAo+PiAKZW5kb2JqIAo1IDAgb2JqIAo8PCAKL0xlbmd0aCAxMjAzIAovRmlsdGVyIFsgL0ZsYXRlRGVjb2RlIF0gCj4+IApzdHJlYW0KeJylV9ly4kYUfddX9MM8kIqRu1u9SH6TgbEJZolghkpSedCA7CFl0AzGmcrf5/aiDQmJSAKMDAwMDAzNTk3NSAwMDAwMCBuIAowMDAwMDE2Njc3IDAwMDAwIG4gCjAwMDAwMzYzNzUgMDAwMDAgbiAKMDAwMDAzNjY1MSAwMDAwMCBuIAowMDAwMDE3MzYyIDAwMDAwIG4gCjAwMDAwMzY2OTQgMDAwMDAgbiAKMDAwMDAzNjczNCAwMDAwMCBuIAowMDAwMDM2NzcxIDAwMDAwIG4gCnRyYWlsZXIgCjw8IAovU2l6ZSAyNCAKL1Jvb3QgMSAwIFIgCi9Jb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