Skip to main content

Pickup

Some products, such as most Danske Fragtmænd products, allow for specifying a different pickup address from sender address.

Setting the address

Usually a shipment request without a separate pickup address would just contain the sender and receiver parties. Specifying a separate pickup address is very simple; you can add a pickup party which contains the most of the same values as a sender and receiver parties. You can also add an instruction to the pickup_details object to specify a pickup instruction or date to specify a pick-up date.

{
"parties": [
{
"type": "pickup",
"name": "Test Virksomhed ApS",
"address1": "Strandvejen 6C",
"postal_code": "5240",
"city": "Odense NØ",
"country_code": "DK",
"phone": "50607080"
}
],
"pickup_details": {
"instruction": "Outside",
"date": "2018-05-21"
}
}

The pickup party is added alongside the sender party, so that the sender information still can be identified in the request.

{
"own_agreement": true,
"product_code": "DFM_E",
"service_codes": "",
"parties": [
{
"type": "sender",
"name": "Shipmondo",
"address1": "Hvilehøjvej 25",
"postal_code": "5220",
"city": "Odense SØ",
"country_code": "DK",
"email": "firma@email.dk",
"phone": "70400407"
},
{
"type": "receiver",
"name": "Lene Jensen",
"address1": "Vindegade 112",
"postal_code": "5000",
"city": "Odense C",
"country_code": "DK",
"email": "lene@email.dk",
"phone": "50607080"
},
{
"type": "pickup",
"name": "Test Virksomhed ApS",
"address1": "Strandvejen 6C",
"postal_code": "5240",
"city": "Odense NØ",
"country_code": "DK",
"phone": "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"
}