Code0 LogoCodeZero
GLS Action

Functions

All functions registered by the GLS Action.

The GLS Action exposes functions grouped into three categories:

  • Builder functions — Construct data objects (no API call)
  • Shipment functions — Create different types of GLS shipments (calls GLS API)
  • API functions — Query or modify shipments (calls GLS API)

Builder functions

createShipmentUnit

ParameterNameTypeRequiredDescription
weightWeight (kg)numberYesThe weight of the shipment unit in kilograms. Must be a positive number and greater than 0.10 and less than 99.
shipmentUnitReferenceShipment unit referencestringNoThe reference for the shipment unit. Max length is 40 characters.
partnerParcelNumberPartner parcel numberstringNoThe partner parcel number for the shipment unit. Max length is 50 characters.
note1Note 1stringNoNote 1 for the shipment unit. Max length is 50 characters.
note2Note 2stringNoNote 2 for the shipment unit. Max length is 50 characters.
shipmentUnitServiceShipment unit serviceGLS_SHIPMENT_UNIT$ServiceYesThe service associated with the shipment unit.

Return Type: GLS_SHIPMENT_UNIT

Creates a GLS shipment unit (an individual parcel within a shipment).

Create shipment unit

Create shipment unit
Weight (kg)

The weight of the shipment unit in kilograms. Must be a positive number and greater than 0.10 and less than 99.

Shipment unit reference

The reference for the shipment unit. Max length is 40 characters.

Partner parcel number

The partner parcel number for the shipment unit. Max length is 50 characters.

Note 1

Note 1 for the shipment unit. Max length is 50 characters.

Note 2

Note 2 for the shipment unit. Max length is 50 characters.

Shipment unit service

The service associated with the shipment unit.


createPrintingOptions

ParameterNameTypeRequiredDescription
returnLabelsReturn labelsRETURN_LABELSYesThe return labels to be included in the shipment.

Return Type: GLS_PRINTING_OPTIONS

Creates GLS printing options that control how labels are generated.

Create printing options

Create printing options
Return labels

The return labels to be included in the shipment.


createCustomContent

ParameterNameTypeRequiredDescription
barcodeContentTypeBarcode content type"TRACK_ID"|"GLS_SHIPMENT_REFERENCE"YesType of content encoded in the barcode (TRACK_ID or GLS_SHIPMENT_REFERENCE).
customerLogoCustomer logostringYesBase64-encoded customer logo to print on the label.
hideShipperAddressHide shipper addressbooleanNoWhether to hide the shipper address on the label.
barcodeTypeBarcode type"EAN_128"|"CODE_39"NoType of barcode to use (EAN_128 or CODE_39).
barcodeBarcodestringNoBarcode value to print on the label.

Return Type: GLS_CUSTOM_CONTENT

Creates custom content settings for GLS labels, including logos and barcodes.

Create custom content

Create custom content
Barcode content type

Type of content encoded in the barcode (TRACK_ID or GLS_SHIPMENT_REFERENCE).

Customer logo

Base64-encoded customer logo to print on the label.

Hide shipper address

Whether to hide the shipper address on the label.

Barcode type

Type of barcode to use (EAN_128 or CODE_39).

Barcode

Barcode value to print on the label.


createConsignee

ParameterNameTypeRequiredDescription
consigneeIdConsignee IDstringYesThe ID of the consignee. Max length is 40 characters.
costCenterCost centerstringYesThe cost center for the consignee. Max length is 80 characters.
AddressAddressGLS_ADDRESSYesThe address of the consignee.
CategoryCategory"BUSINESS"|"PRIVATE"YesThe category of the consignee. Can be either BUSINESS or PRIVATE.

Return Type: GLS_CONSIGNEE

Creates a GLS consignee (recipient) object for use in shipments.

Create consignee

Create consignee
Consignee ID

The ID of the consignee. Max length is 40 characters.

Cost center

The cost center for the consignee. Max length is 80 characters.

Address

The address of the consignee.

Category

The category of the consignee. Can be either BUSINESS or PRIVATE.


createAddress

ParameterNameTypeRequiredDescription
Name1Name 1stringYesThe name of the recipient or company. Max length is 40 characters.
CountryCodeCountry codestringYesThe ISO alpha-2 country code. For example, DE for Germany or FR for France.
CityCitystringYesThe city of the address. Max length is 40 characters.
StreetStreetstringYesThe street name of the address. Min length is 4 characters.
ZIPCodeZIP codestringYesThe ZIP code of the address. Max length is 10 characters.
Name2Name 2stringNoAdditional name information. Max length is 40 characters.
Name3Name 3stringNoAdditional name information. Max length is 40 characters.
ProvinceProvince/StatestringNoThe province or state of the address. Max length is 40 characters.
StreetNumberStreet numberstringNoThe street number of the address. Max length is 40 characters.
ContactPersonContact personstringNoThe contact person for the address. Max length is 40 characters.
FixedLinePhonenumberFixed line phone numberstringNoThe fixed line phone number for the address. Max length is 35 characters.
MobilePhonenumberMobile phone numberstringNoThe mobile phone number for the address. Max length is 35 characters.
EmailEmailstringNoThe email address for the address. Max length is 80 characters.

Return Type: GLS_ADDRESS

Creates a GLS address object (GLS_ADDRESS) for use in shipments as consignee, shipper, or return address.

Create address

Create address
Name 1

The name of the recipient or company. Max length is 40 characters.

Country code

The ISO alpha-2 country code. For example, DE for Germany or FR for France.

City

The city of the address. Max length is 40 characters.

Street

The street name of the address. Min length is 4 characters.

ZIP code

The ZIP code of the address. Max length is 10 characters.

Name 2

Additional name information. Max length is 40 characters.

Name 3

Additional name information. Max length is 40 characters.

Province/State

The province or state of the address. Max length is 40 characters.

Street number

The street number of the address. Max length is 40 characters.

Contact person

The contact person for the address. Max length is 40 characters.

Fixed line phone number

The fixed line phone number for the address. Max length is 35 characters.

Mobile phone number

The mobile phone number for the address. Max length is 35 characters.

Email

The email address for the address. Max length is 80 characters.


Shipment functions

All shipment functions accept a common set of parameters in addition to their type-specific parameters. They call the GLS ShipIT API (POST /rs/shipments) and return a GLS_CREATE_PARCELS_RESPONSE.

Common parameters for all shipment functions:

ParameterTypeRequiredDescription
shipmentGLS_SHIPMENT_WITHOUT_SERVICESYesShipment data (consignee, shipper, units, product)
printingOptionsGLS_PRINTING_OPTIONSYesLabel format settings
returnOptionsGLS_RETURN_OPTIONSNoWhether to return print data and routing info
customContentGLS_CUSTOM_CONTENTNoCustom logo and barcode settings

createTyreShipment

ParameterNameTypeRequiredDescription
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Creates a shipment specifically for tyre/wheel delivery (uses the GLS TyreService).

Create tyre shipment

Create tyre shipment
Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.


createSignatureShipment

ParameterNameTypeRequiredDescription
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Creates a shipment that requires a recipient signature upon delivery.

Create signature shipment

Create signature shipment
Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.


createShopReturnShipment

ParameterNameTypeRequiredDescription
numberOfLabelsThe number of labelsnumberYesThe number of labels to be created for the return shipment.
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.
returnQRReturn QR"PDF" | "PNG" | "ZPL"YesThe return QR of the shipment.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Creates a return shipment from a GLS Parcel Shop (customer drops off parcel at a shop).

Create shop return shipment

Create shop return shipment
The number of labels

The number of labels to be created for the return shipment.

Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return QR

The return QR of the shipment.


createShopDeliveryShipment

ParameterNameTypeRequiredDescription
parcelShopIdParcel shop IdstringYesThe ID of the parcel shop where the shipment should be delivered.
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Delivers a parcel to a GLS Parcel Shop where the recipient can collect it.

Create shop delivery shipment

Create shop delivery shipment
Parcel shop Id

The ID of the parcel shop where the shipment should be delivered.

Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.


createPickAndShipShipment

ParameterNameTypeRequiredDescription
pickupDatePickup datestringYesThe pickup date for the pick and ship shipment.
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Schedules a pickup from the consignee's address on a given date.

Create pick and ship shipment

Create pick and ship shipment
Pickup date

The pickup date for the pick and ship shipment.

Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.


createIdentShipment

ParameterNameTypeRequiredDescription
birthDateBirth datestringYesThe birth date for the ident shipment identification.
firstNameFirst namestringYesThe first name for the ident shipment identification.
lastNameLast namestringYesThe last name for the ident shipment identification.
nationalityNationalitystringYesThe nationality for the ident shipment identification.
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Delivers a parcel with identity verification - the driver checks the recipient's ID document.

Create ident shipment

Create ident shipment
Birth date

The birth date for the ident shipment identification.

First name

The first name for the ident shipment identification.

Last name

The last name for the ident shipment identification.

Nationality

The nationality for the ident shipment identification.

Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.


createIdentPinShipment

ParameterNameTypeRequiredDescription
pinPinstringYesThe pin for the ident pin shipment identification.
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.
birthDateBirth datestringYesThe birth date for the ident pin shipment identification.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Delivers a parcel with PIN and optional birthdate verification.

Create ident pin shipment

Create ident pin shipment
Pin

The pin for the ident pin shipment identification.

Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.

Birth date

The birth date for the ident pin shipment identification.


createGuaranteed24Shipment

ParameterNameTypeRequiredDescription
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Creates a shipment with guaranteed delivery within 24 hours.

Create guaranteed 24 shipment

Create guaranteed 24 shipment
Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.


createFlexDeliveryShipment

ParameterNameTypeRequiredDescription
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Creates a shipment with flexible delivery - the recipient can redirect or reschedule delivery.

Create flex delivery shipment

Create flex delivery shipment
Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.


createExchangeShipment

ParameterNameTypeRequiredDescription
addressAddressGLS_ADDRESSYesThe address of the exchange shipment.
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.
expectedWeightExpected weightnumberNoThe expected weight for the exchange shipment.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Delivers a new parcel while simultaneously picking up an existing one (exchange).

Create exchange shipment

Create exchange shipment
Address

The address of the exchange shipment.

Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.

Expected weight

The expected weight for the exchange shipment.


createDepositShipment

ParameterNameTypeRequiredDescription
placeOfDepositPlace of depositstringYesThe place of deposit for the delivery.
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Delivers a parcel to a designated deposit location (e.g. a garage or shed) without requiring a signature.

Create deposit shipment

Create deposit shipment
Place of deposit

The place of deposit for the delivery.

Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.


createDeliverySaturdayShipment

ParameterNameTypeRequiredDescription
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Creates an EXPRESS shipment for Saturday delivery.

Create delivery Saturday shipment

Create delivery Saturday shipment
Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.


createDeliveryNextWorkingDayShipment

ParameterNameTypeRequiredDescription
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Creates an EXPRESS shipment for delivery on the next working day (EOB service).

Create delivery next working day shipment

Create delivery next working day shipment
Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.


createDeliveryAtWorkShipment

ParameterNameTypeRequiredDescription
recipientNameRecipient namestringYesThe recipient name for the delivery at work shipment.
buildingBuildingstringYesThe building of the delivery at work shipment.
floorFloornumberYesThe floor of the delivery at work shipment.
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.
alternateRecipientNameAlternate recipient namestringNoThe alternate recipient name for the delivery at work shipment.
roomRoomnumberNoThe room of the delivery at work shipment.
phonenumberPhone numberstringNoThe phone number for the delivery at work shipment.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Delivers a parcel to a specific location within a workplace (building, floor, room).

Create delivery at work shipment

Create delivery at work shipment
Recipient name

The recipient name for the delivery at work shipment.

Building

The building of the delivery at work shipment.

Floor

The floor of the delivery at work shipment.

Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.

Alternate recipient name

The alternate recipient name for the delivery at work shipment.

Room

The room of the delivery at work shipment.

Phone number

The phone number for the delivery at work shipment.


createAddresseeOnlyShipment

ParameterNameTypeRequiredDescription
shipmentShipmentGLS_SHIPMENTYesThe shipment for which to create the parcels. Must include all necessary information and services for the shipment.
printingOptionsPrinting optionsGLS_PRINTING_OPTIONSYesThe printing options for the shipment. Specifies options for the labels to be printed for the shipment.
returnOptionsReturn optionsGLS_RETURN_OPTIONSNoThe return options for the shipment. Specifies options for return shipments.
customContentCustom contentGLS_CUSTOM_CONTENTNoThe custom content for the shipment. Specifies options for custom content to be printed on the labels.

Return Type: GLS_CREATE_PARCELS_RESPONSE

Creates a shipment that can only be delivered to the named addressee (no neighbor delivery).

Create addressee only shipment

Create addressee only shipment
Shipment

The shipment for which to create the parcels. Must include all necessary information and services for the shipment.

Printing options

The printing options for the shipment. Specifies options for the labels to be printed for the shipment.

Return options

The return options for the shipment. Specifies options for return shipments.

Custom content

The custom content for the shipment. Specifies options for custom content to be printed on the labels.


API functions

validateShipment

ParameterNameTypeRequiredDescription
dataDataGLS_VALIDATE_SHIPMENT_REQUEST_DATAYesThe shipment data to validate.

Return Type: GLS_VALIDATE_SHIPMENT_RESPONSE_DATA

Validates a shipment against the GLS API without creating it. Use this before createShipment functions to catch errors early.

Validate shipment

Validate shipment
Data

The shipment data to validate.


updateParcelWeight

ParameterNameTypeRequiredDescription
dataDataGLS_UPDATE_PARCEL_WEIGHT_REQUEST_DATAYesThe update parcel weight request data.

Return Type: GLS_END_OF_DAY_RESPONSE_DATA

Updates the weight of an already-created parcel. Useful when the final weight is only known after packaging.

Update parcel weight

Update parcel weight
Data

The update parcel weight request data.


reprintParcel

ParameterNameTypeRequiredDescription
dataDataGLS_REPRINT_PARCEL_REQUEST_DATAYesThe reprint parcel request data.

Return Type: GLS_REPRINT_PARCEL_RESPONSE_DATA

Reprints the label for an existing parcel. Use this if the original label is damaged, lost, or needs to be printed in a different format.

Reprint parcel

Reprint parcel
Data

The reprint parcel request data.


getEndOfDayReport

ParameterNameTypeRequiredDescription
dataDataGLS_END_OF_DAY_REQUEST_DATAYesThe end of day report request data.

Return Type: GLS_END_OF_DAY_RESPONSE_DATA

Retrieves all shipments dispatched on a given date. Useful for reconciliation and end-of-day processing.

Get end of day report

Get end of day report
Data

The end of day report request data.


getAllowedServices

ParameterNameTypeRequiredDescription
dataDataGLS_ALLOWED_SERVICES_REQUEST_DATAYesThe allowed services request data.

Return Type: GLS_ALLOWED_SERVICES_RESPONSE_DATA

Returns the GLS services available for a given origin/destination country and ZIP code combination.

Get allowed services

Get allowed services
Data

The allowed services request data.


cancelShipment

ParameterNameTypeRequiredDescription
dataDataGLS_CANCEL_SHIPMENT_REQUEST_DATAYesThe cancel shipment request data.

Return Type: GLS_CANCEL_SHIPMENT_RESPONSE_DATA

Cancels an existing shipment by its Track ID. Only possible if the parcel has not yet been scanned.

Cancel shipment

Cancel shipment
Data

The cancel shipment request data.


On this page