Skip to content

Common Data Structures

There are several data structures involved when using the API (properties marked with * are mandatory).

Instruction

A generic structure for defining instructions for pickup, collection, delivery, etc. A shipment can contain zero or more instructions of different types.

Property*TypeDescription
FromDateTimeA date/time instance (instruction valid from).
ToDateTimeA date/time instance (instruction valid to).
Comments*1TextInstruction comments.

Warning

*1
Mandatory only when a normal shipment request is made. Not mandatory for shipping cost calculation request. See Shipment Cost Calculation section for details.

Currency Value

A structure used to define amounts along with the relevant currency.

Property*TypeDescription
CurrencyCodeText3-letter ISO-4217 currency code. “EUR” (default).
Value*DecimalThe currency amount.

Weight/Volume

A structure used to define a weight or volume value.

Property*TypeDescription
UnitTypeEnumThe unit type. Valid values are: “kg” (default), “lb”, “oz”, “mg”, “g”, “gal”, “mL”, “L”, “t”.
Value*DecimalThe actual weight or volume value.

Dimensions

A structure used to define the dimensions of an object.

Property*TypeDescription
UnitTypeEnumThe unit type of each dimension. Valid values are: “cm” (default), “in”, “ft”, “yd”, “mm”, “m”.
Length*DecimalThe actual length of an object.
Width*DecimalThe actual width of an object.
Height*DecimalThe actual height of an object.

COD

A structure used to define the details when a shipment has cash on delivery.

Property*TypeDescription
CodTypeTextThe type of the COD. Valid values are: “Cash” (default), “Check”, “Bill”, “MoneyCollection”, “Other”.
Amount*Currency ValueThe actual amount of the COD.
DateDateCOD date (i.e. the date of the check).
CommentsTextCOD comments.
InvoiceNoTextRelated invoice number.
ReturnToEnumThe beneficiary of the cash. Valid values are: “Requestor” (default), “Shipper”, “Consignee”, “Payee”.
ReturnToAccountNumberTextThe system account number of the cash beneficiary. Used in cases when we need to return the COD amount to a specific account number.

Package

Package structure is used to define a unique package item of a shipment. A shipment can contain one or more package items.

Property*TypeDescription
CodeTextThe AWB code of the item.
PackageType*1TextThe code/name of the package type. i.e. “Letter”, “SmallBox” etc. Package type codes should be agreed with the carrier.
ReferencesText(array)An array or free text references. The values are used in queries against shipments/items.
DescriptionTextA description of the item.
IsDocsBoolean“true” if the package contains documents only, “false” otherwise.
IsDangerousBoolean“true” if the content is dangerous,“false” otherwise.
IsFragileBoolean“true” if the content is fragile,“false” otherwise.
DeclaredValueCurrencyValueThe declared amount of the content.
Weight*1Weight/VolumeThe weight or volume of the package.
Dimensions*1DimensionsThe dimensions of the package.

Warning

*1
When “PackageType” is defined, the “Weight” and “Dimensions” properties are not considered as mandatory because the weight and volumetric calculations are defined at the “PackageType” level. When “PackageType” is missing, then you should provide at least one of “Weight” or “Dimensions” values.

Party

A party structure is used whenever a shipment counterparty should be defined. That is, the Requestor, the Shipper, the Consignee and/or any other participant in the shipment lifecycle are all considered parties.

Property*TypeDescription
AccountNumberTextThe system account number of the party. Used in cases where the specific party is already registered as a customer and has a valid account number in the system. May be obtained by the carrier or by using the Customer Accounts endpoints.
NameTextThe name of the party. This should be empty or contain the location name or company name.
ContactName*1TextThe contact name. This should be the physical person’s name.
BuildingFloorOfficeTextAdditional free text information regarding exact location details such as building number, floor or office number.
Address*2TextThe address of the location.
City*2TextThe city name.
AreaTextThe city area name.
PostalCode*2TextThe postal code.
CountryText2-letter ISO-3166-1 code of the country
PhonesTextA comma separated list of phone numbers.
FaxTextA fax number.
EmailsTextA comma separated list of email addresses.
NotificationPhoneTextThe phone number that should be used in cases where SMS notifications are required.
NotificationEmailTextThe email address that should be used in cases where e-mail notifications are required.
ReferenceTextA free text reference of the specific party.
TaxNumberTextThe tax identification number of the party.
IdTypeEnumThe identification type of the party. Valid values are: “IdCard”, “Passport”, “DrivingLicense” and “Other”.
IdTypeDataTextThe identification data according to “IdType” property. i.e. the IdCard number, the passport number etc.

Warning


*1
Mandatory only when used in any Party structure on a normal shipment request. Not mandatory for shipping cost calculation request. See Shipment Cost Calculation section for details.

Warning


*2
The address location fields are mandatory only for Consignee objects and only when we are shipping in a door location address. That is, when we deliver to a door, address is required, when we deliver to a station (Clever Point), address is not required.