DPD B2C via Parcelshop




Adjustments in the HEADER and PARCEL line

  • Service Code to use in the MPSSERVICE field (HEADER line) and SERVICE field (PARCEL line): 337 for Normal Parcel or 338 for Small Parcel.
  • The details of the Parcelshop have to be given in the receiver's fields in the HEADER line. In our example, this is the address of shop:
    DPD Parcelshop NV
    Ooststraat 86
    8800 Roeselare
  • In RCUSTID and RCOMMENT you have to insert he Pudo ID of the parcelshop. In our example, BE11304
  • The value in SNAME1 (HEADER line) is the name that will appear as the Sender in the Predict message.
  • RCONTACT should contain the name of the actual receiver that will come pick up the parcel.


Extra line required: PERS line

This line will indicate who the actual receiver of the shipment is.
In our example below, the actual receiver (the person who will come pick up the parcel in the shop) is:

John Doe

The following fields are important:

  • PERSDELIVERY: Can be set as a fixed value of 4. This indicates that this is a Parcelshop delivery.
  • ONAME1, ONAME2, OSTREET and OSHOUSENO, OCOUNTRYN, OPOSTAL, OCITY and OMOBILE are the fields that contain the details of the actual destinee, the person that will come pick it up in the Parcelshop. In our example, this person is Receiverman in Boezinge.

A parcelshop shipment also needs an MSG line. This will ensure the receiver gets a Predict message and will make sure the receiver is warned that his parcel has arrived in the shop.

The #DEF line for this, is the following


Extra line required: MSG line

For Predict you have to add an extra MSG line in the MPSEXPDATA. You can only have one MSG line per shipment, regardless of how many parcels the shipment has. This MSG line can also exclusively be used for B2C Shipments. This implies that the MPSID should have the prefix B2C (see example in attachment)

The fields of the MSG line are:

  • MSGTYPE: type Predict. Can be 1 for email or 3 SMS
  • MSGVALUE: recipient of the Predict message. Can be an email or a phone number. Please note the phone number should be in the format +32#47712345678. Obviously, it’s impossible to use type 1 for a phone number or type 3 for an email.
  • MSGRULE: you can pretty much hardcode this to value 904. This is an internal code at DPD.
  • MSGLANG: the language of the Predict message, in two-letter code (NL, FR, EN, DE, etc)


An example of an MSG line with SMS could be:


An example of an MSG line with email could be:


Or an example that contains both


MSGTYPE1, MSGVALUE1, MSGRULE1 and MSGLANG1 are, without exception, always mandatory for B2C.
MSGTYPE2, MSGVALUE2, MSGRULE2 and MSGLANG2 are optional for in case you wish to send the Predict to an extra recipient, but this goes with the “all or nothing” principle. You either fill in all four MSG2 fields, or none of them. Same goes for MSG3 and MSG4.




HEADER;B2C0536830115982220180413;1;0;;;;;1;0;0;0530;053000000000262500;0;KD160145SQ;DPD Belux;;Egide Walschaertsstraat 20;;056;2800;Mechelen;;;;;;0;20180413;170058;;I;0536;;BE11304;DPD Parcelshop NV;;OOSTSTRAAT;86;056;;8800;Roeselare;John Doe;;;;BE11304;0;337;20181207;000000;0;0;;0;;
PARCEL;B2C0536830115982220180413;05368301159822;0;RET / 8260252;288985;BE11304;KD160145SQ;337;060040020;0;0;0;;;0;
PERS;B2C0536830115982220180413;4;;;;;;;;John Doe;;MOORTELWEG 6;;056;;8904;BOEZINGE;;receiver@receiver.be;;0;


Submitted by CustomerIT on Thu, 08/08/2019 - 15:29