Professional Documents
Culture Documents
CR Collection request
CS City service
Icon Description
Mandatory field
Optional field
Value allowed
Web service
Web service is a Remote Procedure Call (RPC) through HTTP protocols.
1. SOAP
2. JSON-RPC2
Service design
RPC method for shipment storage is create.
SOAP
SOAP request consists of three parts:
JSON
JSON request has a simpler structure, it is an object serialized with JSON. It has
following features:
Authentication
Correctly filled security token (DPDSecurity) is a condition for successful service call.
SOAP
<ns1:DPDSecurity>
<ns1:SecurityToken>
<ns1:ClientKey>?</ns1:ClientKey>
<ns1:Email>?</ns1:Email>
</ns1:SecurityToken>
</ns1:DPDSecurity>
JSON
"DPDSecurity":
{
"SecurityToken":
{
"ClientKey": "?",
"Email": "?"
}
}
You have to create an account on www.dpdportal.sk and we will generate and provide you a ClientKey.
Shipment
Shipment is a transport order, which includes parcels, which have one recipient.
Order is sent to the relevant endpoint. Data is validated. If the data is correct, the shipment is stored. If the data is not correct, validation
reports are returned.
It is possible to send various shipments in one request.
Structure
Element Data type Description
1 - DPD classic
2 - DPD 18:00
3 - DPD 10:00
4 - DPD 12:00
5 - COD (cash on delivery)
6 - Saturday Delivery
7 - Small Parcel
8 - DPD Guarantee
9 - DPD Home
10 - City service standard
17 - Parcelshop (consignor to
shop)
AddressEnvelope
Address information.
b2b - business
b2c - client
psd - parcelShop
Application:
only enter the address identification number. Existing address is used in this case.
SOAP
<ns1:address>
<ns1:id>?</ns1:id>
</ns1:address>
JSON
"address":
{
"id": ?
}
SOAP
<ns1:address>
<ns1:type>?</ns1:type>
<ns1:name>?</ns1:name>
<ns1:nameDetail>?</ns1:nameDetail>
<ns1:street>?</ns1:street>
<ns1:streetDetail>?</ns1:streetDetail>
<ns1:houseNumber>?</ns1:houseNumber>
<ns1:zip>?</ns1:zip>
<ns1:country>?</ns1:country>
<ns1:city>?</ns1:city>
<ns1:phone>?</ns1:phone>
<ns1:email>?</ns1:email>
<ns1:reference>?</ns1:reference>
<ns1:note>?</ns1:note>
<ns1:ico>?</ns1:ico>
<ns1:vatId>?</ns1:vatId>
<ns1:vatId2></ns1:vatId3>
</ns1:address>
JSON
"address":
{
"type": "?",
"name": "?",
"nameDetail: "?",
"street: "?",
"streetDetail: "?",
"houseNumber: "?",
"zip: "?",
"country: "?",
"city: "?",
"phone: "?",
"email: "?",
"reference: "?",
"note: "?",
"ico: "?",
"vatId: "?",
"vatId2": "?"
}
ParcelEnvelope
Element Data type Description
(c)2013 Page-5-
Direct Parcel Distribution SK, s.r.o.
Parcel depth in cm
depth smallint (in case of standard shipment)
SOAP
<ns1:parcel>
<ns1:reference1>?</ns1:reference1>
<ns1:reference2>?</ns1:reference2>
<ns1:reference3>?</ns1:reference3>
<ns1:weight>?</ns1:weight>
<ns1:height>?</ns1:height>
<ns1:width>?</ns1:width>
<ns1:depth>?</ns1:depth>
</ns1:parcel>
JSON
"parcel":
{
"reference1": "?",
"reference2": "?",
"reference3": "?",
"weight": ?,
"height": ?,
"width": ?,
"depth": ?
}
PickupEnvelope
Pickup determines the date and time when the shipment is picked up.
Pick up creation:
(c)2013 Page-6-
Direct Parcel Distribution SK, s.r.o.
Example:
20140101 means date
01.01.2014
timeWindow TimeWindowEnvelope (in case of standard shipment) Pick-up time window (time, when
the shipment is to be picked up)
SOAP
<ns1:pickup>
<ns1:date>?</ns1:date>
<ns1:timeWindow>
<ns1:beginning>?</ns1:beginning>
<ns1:end>?</ns1:end>
</ns1:timeWindow>
<ns1:note>?</ns1:note>
</ns1:pickup>
JSON
"pickup":
{
"date": "?",
"timeWindow": [TimeWindowEnvelope],
"note": "?"
}
TimeWindowEnvelope
Time (from-to) when the shipment is to be picked up.
Minimal difference between the beginning and end of interval is four hours.
If interval end is not set and interval beginning is set (e.g. at 10:00), interval end is then automatically set four hours later (e.g. at 14:00).
If interval beginning is not set and interval end is set (e.g. at 14:00), interval beginning is then automatically set four hours earlier (e.g. at
10:00).
(c)2013 Page-7-
Direct Parcel Distribution SK, s.r.o.
beginning char(4) (If second interval end Time window beginning format
is not set) HHMM (24 hour format)
HH - hour
MM - minutes
Example:
end char(4)
HH - hour
MM - minutes
Example:
SOAP
<ns1:timeWindow>
<ns1:beginning>?</ns1:beginning>
<ns1:end>?</ns1:end>
</ns1:timeWindow>
JSON
"timeWindow":
{
"beginning": "?",
"end": "?"
}
Additional services
Cod
Cod (cash on delivery) is an additional service, that allows the customer to pay on delivery.
Page-8-
Direct Parcel Distribution SK, s.r.o.
EUR
CZK
PLN
HUF
0 - cash only
SOAP
<ns1:cod>
<ns1:amount>?</ns1:amount>
<ns1:currency>?</ns1:currency>
<ns1:bankAccount>
[BankAccountEnvelope]
</ns1:bankAccount>
<ns1:variableSymbol>?</ns1:variableSymbol>
<ns1:paymentMethod>?</ns1:paymentMethod>
</ns1:cod>
JSON
"cod":
{
"amount": ?,
"currency": "?",
"bankAccount": [BankAccountEnvelope],
"variableSymbol": "?",
"paymentMethod": "?"
}
BankAccountEnvelope
Bank account details.
(c)2013 Page-9-
Direct Parcel Distribution SK, s.r.o.
Applications:
enter only Bank account identification number. Current account is used in this case.
SOAP
<ns1:bankAccount>
<ns1:id>?</ns1:id>
</ns1:bankAccount>
JSON
"bankAccount":
{
"id": ?
}
enter Bank account details. New bank account is saved in this case.
SOAP
<ns1:bankAccount>
<ns1:name>?</ns1:name>
<ns1:prefix>?</ns1:prefix>
<ns1:number>?</ns1:number>
<ns1:bankCode>?</ns1:bankCode>
<ns1:iban>?</ns1:iban>
<ns1:swift>?</ns1:swift>
</ns1:bankAccount>
JSON
"bankAccount":
{
"name: "?",
"prefix: "?",
"number: "?",
"bankCode: "?",
"iban: "?",
"swift": "?"
}
Swap
SWAP (swap parcel) is an additional service, which allows the exchange of product or parcel on delivery and its subsequent sending.
(c)2013 Page-10-
Direct Parcel Distribution SK, s.r.o.
If AB type of SWAP service is chosen, the sender address of the return parcel is set to B and recipient address to A
If ABC type of SWAP service is chosen , the sender address of the return parcel is set to B and recipient address to C
AB - vice versa
SOAP
<ns1:swap>
<ns1:type>?</ns1:type>
<ns1:address>
[AddressEnvelope]
</ns1:address>
<ns1:note>?</ns1:note>
<ns1:count>?</ns1:count>
</ns1:swap>
"swap":
{
"type": "?",
"address": [AddressEnvelope],
"note": "?",
"count": ?
}
If you wish to use this service. please enter one of the following values:
true
TRUE
If you do not wish to use this service, do not enter this service but enter one of the following values:
(c)2013 Page-11-
Direct Parcel Distribution SK, s.r.o.
false
FALSE
SOAP
<ns1:saturdayDelivery>?</ns1:saturdayDelivery>
JSON
"saturdayDelivery": ?
Notification
Notification on shipment delivery
You can use more notifications, but the notification types cannot be identical.
1 - e-mail [default]
3 - sms
Phone number:
+421908123123
E-mail:
example@mail.com
1 - notification about
delivery next day
904 - interactive delivery
[default]
902 - delivery to DPD
ParcelShop
(c)2013 Page-12-
Direct Parcel Distribution SK, s.r.o.
SOAP
<ns1:notifications>
<ns1:notification>
<ns1:destination>?</ns1:destination>
<ns1:type>?</ns1:type>
<ns1:rule>?</ns1:rule>
<ns1:language>?</ns1:language>
</ns1:notification>
</ns1:notifications>
JSON
"notification":
[
{
"destination": "?",
"type": ?,
"rule": ?,
"language": "?"
},
Instruction
Instruction/information from the customer. It is a free text, but only ASCII characters are supported. Allowed after request of the customer.
SOAP
<ns1:instruction>?</ns1:instruction>
JSON
"instruction": "?"
IDCheck
Once this additional service is chosen for your shipment, this will be delivered exclusively into the hands of the given person, after providing an
identification document (ID card, passport or driving license). Delivery shall be recorded in our system, with the number of the document, which
can be easily verified.
(c)2013 Page-13-
Direct Parcel Distribution SK, s.r.o.
surname varchar(35)
Surname of person to be checked
SOAP
<ns1:idCheck>
<ns1:name>?</ns1:name>
<ns1:surname>?</ns1:surname>
<ns1:documentID>?</ns1:documentID>
</ns1:idCheck>
JSON
"idCheck":
{
"name": "?",
"surname": "?",
"documentID": "?"
}
ParcelShopDelivery
Delivery to one of the DPD parcelShops. Identification number of DPD parcelShop is entered.
SOAP
<ns1:parcelShopDelivery>
<ns1:parcelShopId>?<ns1:parcelshopId>
</ns1:parcelShopDelivery>
JSON
"parcelShopDelivery":
{
"parcelShopId": ?
}
CollectionRequest (CR)
Collection Request is an additional service, which means that the DPD will collect the shipment from you and will deliver it to you or third person,
e.g. producer. Place of collection or delivery can be any address in Slovakia. Collection request service can be used by customer, who has a
sender contract concluded with DPD Transport costs are covered by the customer.
(c)2013
Page-14-
Direct Parcel Distribution SK, s.r.o.
If you wish to use this service. please enter one of the following values:
true
TRUE
If you do not wish to use this service, do not enter this service but enter one of the following values:
false
FALSE
SOAP
<ns1:collectionRequest>?</ns1:collectionRequest>
JSON
"collectionRequest": ?
CityService (CS)
Additional service City Service is suitable for the delivery of urgent shipments, documents, samples or contracts that require the fastest
possible delivery to the recipient. City Service can be used only in selected cities
CityService enables the transport of parcels weighing up to 31.5 kg and with the combination of City Service with SWAP product, the customers of
DPD can have their urgent shipment sent back right away (for example - signed contracts).
0 - city-service-standard [default]
(c)2013 Page-15-
Direct Parcel Distribution SK, s.r.o.
SOAP
<ns1:cityService>
<ns1:generateLabels>?</ns1:generateLabels>
<ns1:subProduct>?</ns1:subProduct>
</ns1:cityService>
JSON
"cityService":
{
"generateLabels": ?,
"subProduct": ?
}
Shipment type
Standard shipment
City Service shipment (includes additional service City Service)
Collection Request shipment (includes additional service Collection Request)
Standard shipment
Sample request:
SOAP
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns2="http://www.dpdportal.sk/XMLSchema/DPDSecurity/v2"
xmlns:ns1="http://www.dpdportal.sk/XMLSchema/SHIPMENT/v1">
<soapenv:Header>
<ns2:DPDSecurity>
<ns2:SecurityToken>
<ns2:ClientKey>?</ns2:ClientKey>
<ns2:Email>?</ns2:Email>
</ns2:SecurityToken>
</ns2:DPDSecurity>
</soapenv:Header>
<soapenv:Body>
<ns1:CreateRequest>
<!--1 or more repetitions:-->
<ns1:shipment>
<ns1:reference>?</ns1:reference>
<ns1:delisId>?</ns1:delisId>
<ns1:note>?</ns1:note>
<ns1:product>?</ns1:product>
<ns1:pickup>
<ns1:date>?</ns1:date>
<ns1:timeWindow>
<ns1:beginning>?</ns1:beginning>
<ns1:end>?</ns1:end>
(c)2013 Page-16-
Direct Parcel Distribution SK, s.r.o.
<ns1:end>?</ns1:end>
</ns1:timeWindow>
<ns1:note>?</ns1:note>
</ns1:pickup>
<ns1:addressSender>
<ns1:id>?</ns1:id>
</ns1:addressSender>
<ns1:addressRecipient>
<ns1:type>?</ns1:type>
<ns1:name>?</ns1:name>
<ns1:nameDetail>?</ns1:nameDetail>
<ns1:street>?</ns1:street>
<ns1:streetDetail>?</ns1:streetDetail>
<ns1:houseNumber>?</ns1:houseNumber>
<ns1:zip>?</ns1:zip>
<ns1:country>?</ns1:country>
<ns1:city>?</ns1:city>
<ns1:phone>?</ns1:phone>
<ns1:email>?</ns1:email>
<ns1:reference>?</ns1:reference>
<ns1:note>?</ns1:note>
<ns1:ico>?</ns1:ico>
<ns1:vatId>?</ns1:vatId>
<ns1:vatId2>?</ns1:vatId2>
</ns1:addressRecipient>
<ns1:parcels>
<!--1 or more repetitions:-->
<ns1:parcel>
<ns1:reference1>?</ns1:reference1>
<ns1:reference2>?</ns1:reference2>
<ns1:reference3>?</ns1:reference3>
<ns1:weight>?</ns1:weight>
<ns1:height>?</ns1:height>
<ns1:width>?</ns1:width>
<ns1:depth>?</ns1:depth>
</ns1:parcel>
</ns1:parcels>
<ns1:services>
<ns1:cod>
<ns1:amount>?</ns1:amount>
<ns1:currency>?</ns1:currency>
<ns1:bankAccount>
<ns1:id>?</ns1:id>
<ns1:name>?</ns1:name>
<ns1:prefix>?</ns1:prefix>
<ns1:number>?</ns1:number>
<ns1:bankCode>?</ns1:bankCode>
<ns1:iban>?</ns1:iban>
<ns1:swift>?</ns1:swift>
</ns1:bankAccount>
<ns1:variableSymbol>?</ns1:variableSymbol>
<ns1:paymentMethod>?</ns1:paymentMethod>
</ns1:cod>
<ns1:swap>
<ns1:type>?</ns1:type>
<ns1:address>
<ns1:type>?</ns1:type>
<ns1:name>?</ns1:name>
<ns1:nameDetail>?</ns1:nameDetail>
<ns1:street>?</ns1:street>
(c)2013 Page-17-
Direct Parcel Distribution SK, s.r.o.
<ns1:street>?</ns1:street>
<ns1:streetDetail>?</ns1:streetDetail>
<ns1:houseNumber>?</ns1:houseNumber>
<ns1:zip>?</ns1:zip>
<ns1:country>?</ns1:country>
<ns1:city>?</ns1:city>
<ns1:phone>?</ns1:phone>
<ns1:email>?</ns1:email>
<ns1:reference>?</ns1:reference>
<ns1:note>?</ns1:note>
<ns1:ico>?</ns1:ico>
<ns1:vatId>?</ns1:vatId>
<ns1:vatId2>?</ns1:vatId2>
</ns1:address>
<ns1:note>?</ns1:note>
<ns1:count>?</ns1:count>
</ns1:swap>
<ns1:saturdayDelivery>?</ns1:saturdayDelivery>
<ns1:notifications>
<!--1 to 5 repetitions:-->
<ns1:notification>
<ns1:destination>?</ns1:destination>
<ns1:type>?</ns1:type>
<ns1:rule>?</ns1:rule>
<ns1:language>?</ns1:language>
</ns1:notification>
</ns1:notifications>
<ns1:idCheck>
<ns1:name>?</ns1:name>
<ns1:surname>?</ns1:surname>
<ns1:documentID>?</ns1:documentID>
</ns1:idCheck>
<ns1:parcelShopDelivery>
<ns1:parcelShopId>?<ns1:parcelShopId>
</ns1:parcelShopDelivery>
<ns1:instruction>?</ns1:instruction>
</ns1:services>
</ns1:shipment>
</ns1:CreateRequest>
(c)2013 Page-18-
Direct Parcel Distribution SK, s.r.o.
</ns1:CreateRequest>
</soapenv:Body>
</soapenv:Envelope>
JSON
{
"jsonrpc":"2.0",
"method":"create",
"params":
{
"DPDSecurity":
{
"SecurityToken":
{
"ClientKey": "?",
"Email": "?"
}
},
"shipment":
[
{
"reference": ?,
"delisId": "?",
"note": "?",
"product": ?,
"pickup":
{
"date": "?",
"timeWindow":
{
"beginning": "?",
"end": "?"
},
"note": "?"
},
"addressSender":
{
"id": ?
},
"addressRecipient":
{
"type": "?",
"name": "?",
"nameDetail": "?",
"street": "?",
"streetDetail": "?",
"houseNumber": "?",
"zip": "?",
"country": ?,
"city": "?",
"phone": "?",
"email": "?",
"reference": "?",
"note": "?",
"ico": "?",
(c)2013 Page-19-
Direct Parcel Distribution SK, s.r.o.
"ico": "?",
"vatId": "?",
"vatId2": "?"
},
"parcels":
{
"parcel":
[
{
"reference1": "?",
"reference2": "?",
"reference3": "?",
"weight": "?",
"height": ?,
"width": ?,
"depth": ?
},
]
},
"services":
{
"cod":
{
"amount": "?",
"currency": "?",
"bankAccount":
{
"id": ?,
"name: "?",
"prefix: "?",
"number: "?",
"bankCode: "?",
"iban: "?",
"swift": "?"
},
"variableSymbol":"?",
"paymentMethod": ?
},
"swap":
{
"type": "?",
"address":
{
"type": "?",
"name": "?",
"nameDetail": "?",
"street": "?",
"streetDetail": "?",
"houseNumber": "?",
"zip": "?",
"country": ?,
"city": "?",
"phone": "?",
"email": "?",
"reference": "?",
"note": "?",
"ico": "?",
"vatId": "?",
"vatId2": "?"
(c)2013 Page-20-
Direct Parcel Distribution SK, s.r.o.
"vatId2": "?"
},
"note": "?",
"count": ?
},
"saturdayDelivery": ?,
"notifications":
{
"notification":
[
{
"destination": "?",
"type": ?,
"rule": ?,
"language": "?"
},
]
},
"instruction": "?",
"idCheck":
{
"name": "?",
"surname": "?",
"documentID": "?"
},
"parcelShopDelivery":
{
"parcelShopId": ?
}
}
},
},
(c)2013 Page-21-
Direct Parcel Distribution SK, s.r.o.
},
"id":"null"
}
addressSender
addressRecipient
pickup
additionalServices
SOAP
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns2="http://www.dpdportal.sk/XMLSchema/DPDSecurity/v2"
xmlns:ns1="http://www.dpdportal.sk/XMLSchema/SHIPMENT/v1">
<soapenv:Header>
<ns2:DPDSecurity>
<ns2:SecurityToken>
<ns2:ClientKey>?</ns2:ClientKey>
<ns2:Email>?</ns2:Email>
</ns2:SecurityToken>
</ns2:DPDSecurity>
</soapenv:Header>
<soapenv:Body>
<ns1:CreateRequest>
<!--1 or more repetitions:-->
<ns1:shipment>
<ns1:reference>?</ns1:reference>
<ns1:delisId>?</ns1:delisId>
<ns1:note>?</ns1:note>
<ns1:product>?</ns1:product>
<ns1:pickup>
<ns1:date>?</ns1:date>
</ns1:pickup>
<ns1:addressSender>
<ns1:type>?</ns1:type>
<ns1:name>?</ns1:name>
<ns1:nameDetail>?</ns1:nameDetail>
<ns1:street>?</ns1:street>
<ns1:streetDetail>?</ns1:streetDetail>
<ns1:houseNumber>?</ns1:houseNumber>
<ns1:zip>?</ns1:zip>
<ns1:country>?</ns1:country>
<ns1:city>?</ns1:city>
<ns1:phone>?</ns1:phone>
<ns1:email>?</ns1:email>
<ns1:reference>?</ns1:reference>
<ns1:note>?</ns1:note>
<ns1:ico>?</ns1:ico>
<ns1:vatId>?</ns1:vatId>
<ns1:vatId2>?</ns1:vatId2>
(c)2013 Page-22-
Direct Parcel Distribution SK, s.r.o.
<ns1:vatId2>?</ns1:vatId2>
</ns1:addressSender>
<ns1:addressRecipient>
<ns1:type>?</ns1:type>
<ns1:name>?</ns1:name>
<ns1:nameDetail>?</ns1:nameDetail>
<ns1:street>?</ns1:street>
<ns1:streetDetail>?</ns1:streetDetail>
<ns1:houseNumber>?</ns1:houseNumber>
<ns1:zip>?</ns1:zip>
<ns1:country>?</ns1:country>
<ns1:city>?</ns1:city>
<ns1:phone>?</ns1:phone>
<ns1:email>?</ns1:email>
<ns1:reference>?</ns1:reference>
<ns1:note>?</ns1:note>
<ns1:ico>?</ns1:ico>
<ns1:vatId>?</ns1:vatId>
<ns1:vatId2>?</ns1:vatId2>
</ns1:addressRecipient>
<ns1:parcels>
<!--1 or more repetitions:-->
<ns1:parcel>
<ns1:weight>?</ns1:weight>
<ns1:height>?</ns1:height>
<ns1:width>?</ns1:width>
<ns1:depth>?</ns1:depth>
</ns1:parcel>
</ns1:parcels>
<ns1:services>
<ns1:cityService>
<ns1:generateLabels>?</ns1:generateLabels>
<ns1:subProduct>?</ns1:subProduct>
</ns1:cityService>
<ns1:cod>
<ns1:amount>?</ns1:amount>
<ns1:currency>?</ns1:currency>
<ns1:bankAccount>
<ns1:id>?</ns1:id>
<ns1:name>?</ns1:name>
<ns1:prefix>?</ns1:prefix>
<ns1:number>?</ns1:number>
<ns1:bankCode>?</ns1:bankCode>
<ns1:iban>?</ns1:iban>
<ns1:swift>?</ns1:swift>
</ns1:bankAccount>
<ns1:variableSymbol>?</ns1:variableSymbol>
<ns1:paymentMethod>?</ns1:paymentMethod>
</ns1:cod>
<ns1:swap>
<ns1:type>?</ns1:type>
<ns1:address>
<ns1:type>?</ns1:type>
<ns1:name>?</ns1:name>
<ns1:nameDetail>?</ns1:nameDetail>
<ns1:street>?</ns1:street>
<ns1:streetDetail>?</ns1:streetDetail>
<ns1:houseNumber>?</ns1:houseNumber>
<ns1:zip>?</ns1:zip>
<ns1:country>?</ns1:country>
(c)2013 Page-23-
Direct Parcel Distribution SK, s.r.o.
<ns1:country>?</ns1:country>
<ns1:city>?</ns1:city>
<ns1:phone>?</ns1:phone>
<ns1:email>?</ns1:email>
<ns1:reference>?</ns1:reference>
<ns1:note>?</ns1:note>
<ns1:ico>?</ns1:ico>
<ns1:vatId>?</ns1:vatId>
<ns1:vatId2>?</ns1:vatId2>
</ns1:address>
<ns1:note>?</ns1:note>
<ns1:count>?</ns1:count>
</ns1:swap>
</ns1:services>
</ns1:shipment>
</ns1:CreateRequest>
(c)2013 Page-24-
Direct Parcel Distribution SK, s.r.o.
</ns1:CreateRequest>
</soapenv:Body>
</soapenv:Envelope>
JSON
{
"jsonrpc":"2.0",
"method":"create",
"params":
{
"DPDSecurity":
{
"SecurityToken":
{
"ClientKey": "?",
"Email": "?"
}
},
"shipment":
[
{
"reference": ?,
"delisId": "?",
"note": "?",
"product": ?,
"pickup":
{
"date": "?"
},
"addressSender":
{
"type": "?",
"name": "?",
"nameDetail": "?",
"street": "?",
"streetDetail": "?",
"houseNumber": "?",
"zip": "?",
"country": ?,
"city": "?",
"phone": "?",
"email": "?",
"reference": "?",
"note": "?",
"ico": "?",
"vatId": "?",
"vatId2": "?"
},
"addressRecipient":
{
"type": "?",
"name": "?",
"nameDetail": "?",
"street": "?",
"streetDetail": "?",
(c)2013 Page-25-
Direct Parcel Distribution SK, s.r.o.
"streetDetail": "?",
"houseNumber": "?",
"zip": "?",
"country": ?,
"city": "?",
"phone": "?",
"email": "?",
"reference": "?",
"note": "?",
"ico": "?",
"vatId": "?",
"vatId2": "?"
},
"parcels":
{
"parcel":
[
{
"weight": "?",
"height": ?,
"width": ?,
"depth": ?
},
]
},
"services":
{
"cityService":
{
"generateLabels": ?,
"subProduct": ?
},
"cod":
{
"amount": "?",
"currency": "?",
"bankAccount":
{
"id": ?,
"name: "?",
"prefix: "?",
"number: "?",
"bankCode: "?",
"iban: "?",
"swift": "?"
},
"variableSymbol":"?",
"paymentMethod": ?
},
"swap":
{
"type": "?",
"address":
{
"type": "?",
"name": "?",
"nameDetail": "?",
"street": "?",
"streetDetail": "?",
(c)2013 Page-26-
Direct Parcel Distribution SK, s.r.o.
"streetDetail": "?",
"houseNumber": "?",
"zip": "?",
"country": ?,
"city": "?",
"phone": "?",
"email": "?",
"reference": "?",
"note": "?",
"ico": "?",
"vatId": "?",
"vatId2": "?"
},
"note": "?",
"count": ?
}
}
},
},
(c)2013 Page-27-
Direct Parcel Distribution SK, s.r.o.
},
"id":"null"
}
addressSender
addressRecipient
pickup
additionalServices
SOAP
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns2="http://www.dpdportal.sk/XMLSchema/DPDSecurity/v2"
xmlns:ns1="http://www.dpdportal.sk/XMLSchema/SHIPMENT/v1">
<soapenv:Header>
<ns2:DPDSecurity>
<ns2:SecurityToken>
<ns2:ClientKey>?</ns2:ClientKey>
<ns2:Email>?</ns2:Email>
</ns2:SecurityToken>
</ns2:DPDSecurity>
</soapenv:Header>
<soapenv:Body>
<ns1:CreateRequest>
<!--1 or more repetitions:-->
<ns1:shipment>
<ns1:reference>?</ns1:reference>
<ns1:delisId>?</ns1:delisId>
<ns1:note>?</ns1:note>
<ns1:product>?</ns1:product>
<ns1:pickup>
<ns1:date>?</ns1:date>
</ns1:pickup>
<ns1:addressSender>
<ns1:type>?</ns1:type>
<ns1:name>?</ns1:name>
<ns1:nameDetail>?</ns1:nameDetail>
<ns1:street>?</ns1:street>
<ns1:streetDetail>?</ns1:streetDetail>
<ns1:houseNumber>?</ns1:houseNumber>
<ns1:zip>?</ns1:zip>
<ns1:country>?</ns1:country>
<ns1:city>?</ns1:city>
<ns1:phone>?</ns1:phone>
<ns1:email>?</ns1:email>
<ns1:reference>?</ns1:reference>
<ns1:note>?</ns1:note>
<ns1:ico>?</ns1:ico>
<ns1:vatId>?</ns1:vatId>
<ns1:vatId2>?</ns1:vatId2>
</ns1:addressSender>
(c)2013 Page-28-
Direct Parcel Distribution SK, s.r.o.
</ns1:addressSender>
<ns1:addressRecipient>
<ns1:type>?</ns1:type>
<ns1:name>?</ns1:name>
<ns1:nameDetail>?</ns1:nameDetail>
<ns1:street>?</ns1:street>
<ns1:streetDetail>?</ns1:streetDetail>
<ns1:houseNumber>?</ns1:houseNumber>
<ns1:zip>?</ns1:zip>
<ns1:country>?</ns1:country>
<ns1:city>?</ns1:city>
<ns1:phone>?</ns1:phone>
<ns1:email>?</ns1:email>
<ns1:reference>?</ns1:reference>
<ns1:note>?</ns1:note>
<ns1:ico>?</ns1:ico>
<ns1:vatId>?</ns1:vatId>
<ns1:vatId2>?</ns1:vatId2>
</ns1:addressRecipient>
<ns1:parcels>
<!--1 or more repetitions:-->
<ns1:parcel>
<ns1:weight>?</ns1:weight>
<ns1:height>?</ns1:height>
<ns1:width>?</ns1:width>
<ns1:depth>?</ns1:depth>
</ns1:parcel>
</ns1:parcels>
<ns1:services>
<ns1:collectionRequest>?</ns1:collectionRequest>
</ns1:services>
</ns1:shipment>
</ns1:CreateRequest>
(c)2013 Page-29-
Direct Parcel Distribution SK, s.r.o.
</ns1:CreateRequest>
</soapenv:Body>
</soapenv:Envelope>
JSON
{
"jsonrpc":"2.0",
"method":"create",
"params":
{
"DPDSecurity":
{
"SecurityToken":
{
"ClientKey": "?",
"Email": "?"
}
},
"shipment":
[
{
"reference": ?,
"delisId": "?",
"note": "?",
"product": ?,
"pickup":
{
"date": "?"
},
"addressSender":
{
"type": "?",
"name": "?",
"nameDetail": "?",
"street": "?",
"streetDetail": "?",
"houseNumber": "?",
"zip": "?",
"country": ?,
"city": "?",
"phone": "?",
"email": "?",
"reference": "?",
"note": "?",
"ico": "?",
"vatId": "?",
"vatId2": "?"
},
"addressRecipient":
{
"type": "?",
"name": "?",
"nameDetail": "?",
"street": "?",
"streetDetail": "?",
(c)2013 Page-30-
Direct Parcel Distribution SK, s.r.o.
"streetDetail": "?",
"houseNumber": "?",
"zip": "?",
"country": ?,
"city": "?",
"phone": "?",
"email": "?",
"reference": "?",
"note": "?",
"ico": "?",
"vatId": "?",
"vatId2": "?"
},
"parcels":
{
"parcel":
[
{
"weight": "?",
"height": ?,
"width": ?,
"depth": ?
},
]
},
"services":
{
"collectionRequest": ?
}
},
},
(c)2013 Page-31-
Direct Parcel Distribution SK, s.r.o.
},
"id":"null"
}
Response
If the validation is successful ,success is set to TRUE.
If invalid data is sent, success is set to FALSE and validation reports are sent to the messages part.
Value Description
(c)2013 Page-32-
Direct Parcel Distribution SK, s.r.o.
SOAP
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.dpdportal.sk/XMLSchema/SHIPMENT/v1">
<SOAP-ENV:Body>
<ns1:CreateResponse>
<!--1 or more repetitions:-->
<ns1:result>
<ns1:reference>?</ns1:reference>
<ns1:ackCode>?</ns1:ackCode>
<ns1:success>true</ns1:success>
<ns1:messages>
<!--1 or more repetitions:-->
<ns1:message>?</ns1:message>
</ns1:messages>
<ns1:mpsid>?</ns1:mpsid>
<ns1:label>?</ns1:label>
</ns1:result>
</ns1:CreateResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
JSON
{
"jsonrpc":"2.0",
"id":"null",
"result":
{
"result":
[
{
"reference": "?",
"ackCode": "?"
"success": ?,
"messages":
[
"?",
],
"mpsid": "?",
"label": "?"
},
]
}
}
Message element structure
Examples of use:
• addressRecipient
• cod>bankAccount
• swap>Address
For more complex validation rules, where the validation rule involves more elements (e.g. validation of combinations of product and type the recipient's
address), the validation report (message element) does not have to include the envelope and / or element.
Error output
(c)2013 Page-33-
Direct Parcel Distribution SK, s.r.o.
SOAP
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>[error code]</faultcode>
<faultstring>[error message]</faultstring>
<faultactor/>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
JSON
{
"jsonrpc": "2.0",
"id": null,
"error":
{
"code": [error code],
"message": "[error message]",
"data":null
}
}
Error codes
(c)2013 Page-34-