DPD B2C Predict shipment

Adjustments in the HEADER and PARCEL line

  • Service Code to use in the MPSSERVICE field (HEADER line) and SERVICE field (PARCEL line): 327 for Normal Parcel and 328 for Small Parcel.
  • Please note other Service Codes are possible with B2C. For example DPD Saturday B2C has code 358. 327 and 328 are used for regular B2C Shipment without extra options.
  • The value in SNAME1 (HEADER line) is the name that will appear as the Sender in the Predict message.


Extra line needed: 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). Please beware that for Belgium, BE is not considered a language.


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.

The #DEF line for this, is the following:



HEADER;B2C0530800132970620140527;2;1;2348414745;;;;1;;;0530;05300000000262500;;KD141664TQ;Testsender;;Teststreet 55;;056;2800;Mechelen;;;;;;;;;;K;;;;Testreceiver;;Test Avenue 2;;208;;1000;Brussels;Mr.Test;;;;;;327;20140527;;;;;;
HEADER;B2C0530800132970720140527;2;1;2348414746;;;;1;;;0530;05300000000262500;;KD160145SQ;Testsender;;Teststreet 55;;056;2800;Mechelen;;;;;;;;;;K;;;;Mr.Smith;;Teststreet 5;;208;;2000;Antwerp;Smith;;;;;;327;20140527;;;;;;

Ingediend door CustomerIT op do, 08/08/2019 - 15:27