All Collections
API
Creating GLS Click&Collect Shipments - RESTful API
Creating GLS Click&Collect Shipments - RESTful API

How to create Click&Collect shipments through the API.

Jan Petersen avatar
Written by Jan Petersen
Updated over a week ago

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 object please fill in fields id, name, address1, zipcode, city and country_code.

A valid shipment object would look as follows:

{
  "test_mode": false,
  "own_agreement": true,
  "product_code": "GLSDK_CC",
  "service_codes": "EMAIL_NT",
  "automatic_select_service_point": false,
  "sender": {
    "name": "Demo Company",
    "address1": "Strandvejen 6",
    "zipcode": "5240",
    "city": "Odense NØ",
    "country_code": "DK",
    "email": "democompany@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"
  },
  "service_point": {
    "id": "4132",
    "name": "Demo Company",
    "address1": "Strandvejen 6",
    "zipcode": "5240",
    "city": "Odense NØ",
    "country_code": "DK"
  },
  "parcels": [
    {
      "weight": 2000
    }
  ],
  "print": true,
  "print_at": {
    "host_name": "LAPTOP-PKL",
    "printer_name": "GK420D",
    "label_format": "zpl"
  },
  "reference": "Order 42"
}
Did this answer your question?