{
  "info": {
    "_postman_id": "4225cb9e-29cd-4509-8f0b-1740f7b45f6a",
    "name": "Ship API - Cloud Print Demo",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "22736309"
  },
  "item": [
    {
      "name": "SHIP V1 - API - SubmitShipment - Normal Shipment",
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "command",
              "value": "SubmitShipment",
              "type": "text"
            },
            {
              "key": "actor",
              "value": "{{ActorID}}",
              "type": "text"
            },
            {
              "key": "key",
              "value": "{{KEY}}",
              "type": "text"
            },
            {
              "key": "data",
              "value": "{\n        \"ProdConceptID\": 1782,\n        \"OrderNo\": \"Test Shipment 10\",\n        \"Addresses\": [\n            {\n                \"Kind\": 1,\n                \"Name1\": \"Test Receiver Name1\",\n                \"Street1\": \"Test Road 1\",\n                \"PostCode\": 7400,\n                \"City\": \"Herning\",\n                \"CountryCode\": \"DK\",\n                \"Phone\": \"12341234\",\n                \"Mobile\": \"12341234\",\n                \"Email\": \"noreply@nshift.com\",\n                \"Attention\": \"Test Attention\"\n            },\n            {\n                \"Kind\": 2,\n                \"Name1\": \"Test Sender Name1\",\n                \"Street1\": \"Test Road 1\",\n                \"PostCode\": 6400,\n                \"City\": \"Sønderborg\",\n                \"CountryCode\": \"DK\",\n                \"Phone\": \"12341234\",\n                \"Mobile\": \"12341234\",\n                \"Email\": \"noreply@nshift.com\",\n                \"Attention\": \"Test Attention\"\n            }\n        ],\n        \"Lines\": [\n            {\n                \"Number\": 1,\n                \"PkgWeight\": 10000,\n                \"Height\": 100,\n                \"Length\": 100,\n                \"Width\": 100,\n                \"GoodsTypeID\": 13,\n                \"References\": [\n                    {\n                        \"Kind\": 23,\n                        \"Value\": \"Test Shipment - Do not process !\"\n                    }\n                ]\n            }\n        ]\n    }",
              "type": "text"
            },
            {
              "key": "options",
              "value": "{\n        \"Labels\": \"ZPLGK\",\n        \"TicketUserName\": \"{{TicketUserName}}\", \n        \"WorkstationID\": \"{{WorkstationID}}\"}",
              "type": "text"
            }
          ]
        },
        "url": {
          "raw": "{{SSAPIBaseURL}}",
          "host": [
            "{{SSAPIBaseURL}}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "SHIP V1 - API - SubmitShipment - Return Shipment",
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "command",
              "value": "SubmitShipment",
              "type": "text"
            },
            {
              "key": "actor",
              "value": "{{ActorID}}",
              "type": "text"
            },
            {
              "key": "key",
              "value": "{{KEY}}",
              "type": "text"
            },
            {
              "key": "data",
              "value": "{\n        \"ProdConceptID\": 6618,\n        \"OrderNo\": \"Test Shipment 10\",\n        \"Addresses\": [\n            {\n                \"Kind\": 2,\n                \"Name1\": \"Test Receiver Name1\",\n                \"Street1\": \"Test Road 1\",\n                \"PostCode\": 7400,\n                \"City\": \"Herning\",\n                \"CountryCode\": \"DK\",\n                \"Phone\": \"12341234\",\n                \"Mobile\": \"12341234\",\n                \"Email\": \"noreply@nshift.com\",\n                \"Attention\": \"Test Attention\"\n            },\n            {\n                \"Kind\": 1,\n                \"Name1\": \"Test Sender Name1\",\n                \"Street1\": \"Test Road 1\",\n                \"PostCode\": 6400,\n                \"City\": \"Sønderborg\",\n                \"CountryCode\": \"DK\",\n                \"Phone\": \"12341234\",\n                \"Mobile\": \"12341234\",\n                \"Email\": \"noreply@nshift.com\",\n                \"Attention\": \"Test Attention\"\n            }\n        ],\n        \"Lines\": [\n            {\n                \"Number\": 1,\n                \"PkgWeight\": 10000,\n                \"Height\": 100,\n                \"Length\": 100,\n                \"Width\": 100,\n                \"GoodsTypeID\": 13,\n                \"References\": [\n                    {\n                        \"Kind\": 23,\n                        \"Value\": \"Test Shipment - Do not process !\"\n                    }\n                ]\n            }\n        ]\n    }",
              "type": "text"
            },
            {
              "key": "options",
              "value": "{\n        \"Labels\": \"PDF\",\n        \"TicketUserName\": \"{{TicketUserName}}\", \n        \"WorkstationID\": \"{{WorkstationID}}\",\n \"DropZoneLabelPrinterKey\": \"{{DropZoneLabelPrinterKey}}\",\n    }",
              "type": "text"
            }
          ]
        },
        "url": {
          "raw": "{{SSAPIBaseURL}}",
          "host": [
            "{{SSAPIBaseURL}}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "SHIP V2 - REST API - SubmitShipment - Normal Shipment",
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "test",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "request": {
        "auth": {
          "type": "basic",
          "basic": [
            {
              "key": "password",
              "value": "{{Password}}",
              "type": "string"
            },
            {
              "key": "username",
              "value": "{{Username}}",
              "type": "string"
            }
          ]
        },
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "{{AUTHORIZATION_HEADER}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n    \"data\": {\r\n        \"ProdConceptID\": 1782,\r\n        \"OrderNo\": \"Test Shipment 1\",\r\n        \"Addresses\": [\r\n            {\r\n                \"Kind\": 1,\r\n                \"Name1\": \"Test Receiver Name1\",\r\n                \"Street1\": \"Test Road 1\",\r\n                \"PostCode\": 7400,\r\n                \"City\": \"Herning\",\r\n                \"CountryCode\": \"DK\",\r\n                \"Phone\": \"12341234\",\r\n                \"Mobile\": \"12341234\",\r\n                \"Email\": \"noreply@nshift.com\",\r\n                \"Attention\": \"Test Attention\"\r\n            },\r\n            {\r\n                \"Kind\": 2,\r\n                \"Name1\": \"Test Sender Name1\",\r\n                \"Street1\": \"Test Road 1\",\r\n                \"PostCode\": 6400,\r\n                \"City\": \"Sønderborg\",\r\n                \"CountryCode\": \"DK\",\r\n                \"Phone\": \"12341234\",\r\n                \"Mobile\": \"12341234\",\r\n                \"Email\": \"noreply@nshift.com\",\r\n                \"Attention\": \"Test Attention\"\r\n            }\r\n        ],\r\n        \"Lines\": [\r\n            {\r\n                \"Number\": 1,\r\n                \"PkgWeight\": 10000,\r\n                \"Height\": 100,\r\n                \"Length\": 100,\r\n                \"Width\": 100,\r\n                \"GoodsTypeID\": 13,\r\n                \"References\": [\r\n                    {\r\n                        \"Kind\": 23,\r\n                        \"Value\": \"Test Shipment - Do not process !\"\r\n                    }\r\n                ]\r\n            }\r\n        ]\r\n    },\r\n    \"options\": {\r\n        \"Labels\": \"ZPLGK\",\r\n        \"TicketUserName\": \"{{TicketUserName}}\", \r\n        \"WorkstationID\": \"{{WorkstationID}}\"\r\n    }\r\n}"
        },
        "url": {
          "raw": "{{SSRESTAPIBaseURL}}/{{ActorID}}/shipments",
          "host": [
            "{{SSRESTAPIBaseURL}}"
          ],
          "path": [
            "{{ActorID}}",
            "shipments"
          ]
        }
      },
      "response": []
    },
    {
      "name": "SHIP V2 - REST API - SubmitShipment - Return Shipment",
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        },
        {
          "listen": "test",
          "script": {
            "exec": [
              ""
            ],
            "type": "text/javascript",
            "packages": {},
            "requests": {}
          }
        }
      ],
      "request": {
        "auth": {
          "type": "basic",
          "basic": [
            {
              "key": "password",
              "value": "{{Password}}",
              "type": "string"
            },
            {
              "key": "username",
              "value": "{{Username}}",
              "type": "string"
            }
          ]
        },
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Authorization",
            "value": "{{AUTHORIZATION_HEADER}}",
            "type": "text"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\r\n    \"data\": {\r\n        \"ProdConceptID\": 1782,\r\n        \"OrderNo\": \"Test Shipment 1\",\r\n        \"Addresses\": [\r\n            {\r\n                \"Kind\": 2,\r\n                \"Name1\": \"Test Receiver Name1\",\r\n                \"Street1\": \"Test Road 1\",\r\n                \"PostCode\": 7400,\r\n                \"City\": \"Herning\",\r\n                \"CountryCode\": \"DK\",\r\n                \"Phone\": \"12341234\",\r\n                \"Mobile\": \"12341234\",\r\n                \"Email\": \"noreply@nshift.com\",\r\n                \"Attention\": \"Test Attention\"\r\n            },\r\n            {\r\n                \"Kind\": 1,\r\n                \"Name1\": \"Test Sender Name1\",\r\n                \"Street1\": \"Test Road 1\",\r\n                \"PostCode\": 6400,\r\n                \"City\": \"Sønderborg\",\r\n                \"CountryCode\": \"DK\",\r\n                \"Phone\": \"12341234\",\r\n                \"Mobile\": \"12341234\",\r\n                \"Email\": \"noreply@nshift.com\",\r\n                \"Attention\": \"Test Attention\"\r\n            }\r\n        ],\r\n        \"Lines\": [\r\n            {\r\n                \"Number\": 1,\r\n                \"PkgWeight\": 10000,\r\n                \"Height\": 100,\r\n                \"Length\": 100,\r\n                \"Width\": 100,\r\n                \"GoodsTypeID\": 13,\r\n                \"References\": [\r\n                    {\r\n                        \"Kind\": 23,\r\n                        \"Value\": \"Test Shipment - Do not process !\"\r\n                    }\r\n                ]\r\n            }\r\n        ]\r\n    },\r\n    \"options\": {\r\n        \"Labels\": \"PDF\",\r\n        \"TicketUserName\": \"{{TicketUserName}}\", \r\n        \"WorkstationID\": \"{{WorkstationID}}\",\r\n        \"DropZoneLabelPrinterKey\": \"{{DropZoneLabelPrinterKey}}\"\r\n\r\n    }\r\n}"
        },
        "url": {
          "raw": "{{SSRESTAPIBaseURL}}/{{ActorID}}/shipments",
          "host": [
            "{{SSRESTAPIBaseURL}}"
          ],
          "path": [
            "{{ActorID}}",
            "shipments"
          ]
        }
      },
      "response": []
    }
  ]
}