Pickup
Some products, such as most Danske Fragtmænd products, allow for specifying a different pick up address from sender address.
Setting the address
Usually a shipment request without a separate pick up address would just contain the sender and receiver objects. Specifying a separate pick up address is very simple; you can add a pick_up object which contains the most of the same values as a sender and receiver object. You can also add an instruction to the object to specify a pick-up instruction or date to specify a pick-up date.
"pick_up": {
"name": "Test Virksomhed ApS",
"address1": "Strandvejen 6C",
"zipcode": "5240",
"city": "Odense NØ",
"country_code": "DK",
"mobile": "50607080",
"instruction": "Outside",
"date": "2018-05-21"
}
The object is added alongside the sender, so that the sender information still can be identified in the request.
{
"test_mode": false,
"own_agreement": true,
"product_code": "DFM_E",
"service_codes": "",
"sender": {
"name": "Pakkelabels.dk ApS",
"address1": "Strandvejen 6",
"zipcode": "5240",
"city": "Odense NØ",
"country_code": "DK",
"email": "firma@email.dk",
"mobile": "70400407"
},
"receiver": {
"name": "Lene Jensen",
"address1": "Vindegade 112",
"zipcode": "5000",
"city": "Odense C",
"country_code": "DK",
"email": "lene@email.dk",
"mobile": "50607080"
},
"pick_up": {
"name": "Test Virksomhed ApS",
"address1": "Strandvejen 6C",
"zipcode": "5240",
"city": "Odense NØ",
"country_code": "DK",
"email": "lene@email.dk",
"mobile": "50607080"
},
"parcels": [
{
"weight": 80000,
"packaging": "PL1",
"description": "Jern"
}
],
"print": true,
"print_at": {
"host_name": "LAPTOP-PKL",
"printer_name": "GK420D",
"label_format": "zpl"
},
"reference": "Order 41"
}