API method
getShipmentTypes
Method returns list of shipment types.
https://hedo-pets.com/api/getShipmentTypes.json?key=YOURAPIKEY
Query params
Put these in your URL, e.g. ?id=123.
-
country stringrequired
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
Example
en, pl, cs
Response fields
Fields returned by this method.
-
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.
-
logo string
File name of logo.
-
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://hedo-pets.com/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.hedo-pets.com\/image.php?name=575949e85f5d4d1382e11d5219848839-nowt.png",
"trackingurl": "https:\/\/twoj.inpost.pl\/pl\/znajdz-przesylke?parcel=[number]",
"minorders": 0,
"maxweight": 0
}
]
Example URL: https://hedo-pets.com/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 "od drzwi do drzwi" 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]&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.hedo-pets.com/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>