Batch upload (container swap instructions)

To upload an order with container swap instructions, you need to place an array at the same level as cargo, origin, destination and so on. An example looks like this, but other info can be added if necessary:

{
  "version": "1.0",
  "data": [
    {
      "order": {
        "orderNumber": "ORDER-NUMBER-123",
        "orderType": "distribution",
        "orderReference": "ORDER-REFERENCE-123",
        "origin": {
          "address": "xxxxx",
          "zipCode": "1234",
          "city": "City"
        },
        "destination": {
          "address": "xxxxx",
          "zipCode": "4321",
          "city": "City"
        },
        "cargo": [
          {
            "type": "pallet",
            "amount": 1
          }
        ],
        "customerId": "xxxx",
        "containerSwapInstructions": [
          {
            "containerName": "Pallet",
            "containerSubTypeName": "PL 1",
            "amount": 3
          },
          {
            "containerName": "Pallet",
            "containerSubTypeName": "PL 2",
            "amount": 2
          },
          {
            "containerName": "Pallet",
            "containerSubTypeName": "PL 3",
            "amount": 1
          }
        ]
      }
    }
  ]
}

Possible values are:

KeyDescription
customerIdThe id of the customer. This is required if setting container swap instructions. See below how to find it
containerIdThe id of the container. Is not required if containerName is set
containerNameThe name of the container. Is not required if containerId is set
containerSubTypeIdThe id of the sub container. Is not required if containerSubTypeName is set
containerSubTypeNameThe name of the sub container. Is not required if containerSubTypeId is set
amountThe amount containers that needs to be handled. This is not required

How to find customerId

Log in into the Dropboy platform and go to the customer page. In there, select the customer that you need to put the order on, and in there look for the id. That's the value you should put in the customerId field