getShipmentTypes

Method returns list of shipment types.

Usage URL: https://e-hedo.pl/api/getShipmentTypes.json?key=YOURAPIKEY

Query params

(put those in your URL, e.g. ?id=123)

  • country | required

    string

    Country iso code.

    Example: Two letters format ie: DE, PL, GB, US

  • id

    integer or integer[]

    Internal identifier of shipment type.
    More than one value can be specified after comma (,) separator.

  • modified

    datetime (YYYY-MM-DD HH:MM:SS)

    Return all shipment types modified after the modified param. That is highly recommended when you want to update your local database.

  • name

    string

    Name of the shipment type.

    Example: 'box' will return all shipment types that contain box in the `name` field.

  • weight

    float

    Returns all shipment types that can carry specified weight. Unit is in kg.

  • lang

    string

    Language of result. ISO 2 Letter Language Codes ie

    Example: en, pl, cs

  • id

    integer

    Shipment type internal identifier.

  • modified

    datetime (YYYY-MM-DD HH:MM:SS)

    When shipment type was last modified

  • name

    string

    Shipment type name.

  • description

    string

    Shipment type description.

  • trackingurl

    string

    URL of website where customers can track their package status.

  • maxweight

    float

    Max allowable weight for this shipment type. Returns 0 if country code was not specified.

Example URL: https://e-hedo.pl/api/getShipmentTypes.json?key=YOURAPIKEY&lang=en&id=34,37

[
    {
        "id": 34,
        "modified": "2018-09-26 10:20:13",
        "name": "FEDEX (Express)",
        "description": "Ekspresowa dostawa \"od drzwi do drzwi\" dokument\u00f3w i towar\u00f3w podlegaj\u0105cych ocleniu o wadze do 68 kg z okre\u015blonym czasem dor\u0119czenia, obejmuj\u0105ca odpraw\u0119 celn\u0105.\n\nDor\u0119czanie przesy\u0142ek na terenie wi\u0119kszo\u015bci kraj\u00f3w Europy Zachodniej nast\u0119pnego dnia.",
        "logo": "no-image",
        "trackingurl": "https:\/\/www.fedex.com\/fedextrack\/?tracknumbers=[number]&locale=en_GB",
        "minorders": 0,
        "maxweight": 0
    },
    {
        "id": 37,
        "modified": "2018-09-28 12:10:44",
        "name": "InPost - Paczkomaty",
        "description": null,
        "logo": "https://core.e-hedo.pl\/image.php?name=575949e85f5d4d1382e11d5219848839-nowt.png",
        "trackingurl": "https:\/\/twoj.inpost.pl\/pl\/znajdz-przesylke?parcel=[number]",
        "minorders": 0,
        "maxweight": 0
    }
]
Example URL: https://e-hedo.pl/api/getShipmentTypes.xml?key=YOURAPIKEY&lang=en&id=34,37

<?xml version="1.0" encoding="utf-8"?>
<root>
	<item>
		<id>34</id>
		<modified>2018-09-26 10:20:13</modified>
		<name>FEDEX (Express)</name>
		<description>Ekspresowa dostawa &quot;od drzwi do drzwi&quot; dokumentów i towarów podlegających ocleniu o wadze do 68 kg z określonym czasem doręczenia, obejmująca odprawę celną.

Doręczanie przesyłek na terenie większości krajów Europy Zachodniej następnego dnia.</description>
		<logo>no-image</logo>
		<trackingurl>https://www.fedex.com/fedextrack/?tracknumbers=[number]&amp;locale=en_GB</trackingurl>
		<minorders>0</minorders>
		<maxweight>0</maxweight>
	</item>
	<item>
		<id>37</id>
		<modified>2018-09-28 12:10:44</modified>
		<name>InPost - Paczkomaty</name>
		<description></description>
		<logo>https://core.e-hedo.pl/image.php?name=575949e85f5d4d1382e11d5219848839-nowt.png</logo>
		<trackingurl>https://twoj.inpost.pl/pl/znajdz-przesylke?parcel=[number]</trackingurl>
		<minorders>0</minorders>
		<maxweight>0</maxweight>
	</item>
</root>