GLS - Click&Collect
Click&Collect works in the same way as Service Points, meaning that you have to provide the ID of the desired Click&Collect point.
Click&Collect points are not registered as normal service points, meaning that you also need to send information on the address of the specific point, in addition to the ID.
In the service_point party please fill in fields:'
- type = "service_point"
- name
- address1
- postal_code
- city
- country_code
- attributes
- name = "service_point_id"
- value = ID of the Click&Collect point
A valid shipment object would look as follows:
{
"own_agreement": true,
"product_code": "GLSDK_CC",
"service_codes": "EMAIL_NT",
"automatic_select_service_point": false,
"parties": [
{
"type": "sender",
"name": "My Company ApS",
"address1": "Strandvejen 6B",
"postal_code": "5240",
"city": "Odense NØ",
"country_code": "DK",
"email": "info@mycompany.com"
},
{
"type": "receiver",
"name": "Lene Jensen",
"address1": "Vindegade 112",
"postal_code": "5000",
"city": "Odense C",
"country_code": "DK",
"email": "lene@email.dk",
"phone": "50607080"
},
{
"type": "service_point",
"name": "Demo Company",
"address1": "Strandvejen 6",
"zipcode": "5240",
"city": "Odense NØ",
"country_code": "DK",
"attributes": [
{
"name": "service_point_id",
"value": "4132"
}
]
}
],
"parcels": [
{
"weight": 2000
}
],
"print": true,
"print_at": {
"host_name": "LAPTOP-PKL",
"printer_name": "GK420D",
"label_format": "zpl"
},
"reference": "Order 42"
}