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
MOORTELWEG 6
8904, BOEZINGE

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.

 

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:
MSG;B2C0530802539500220150902;3;+32#477223311;904;EN;;;;;;;;;;;;;;;;;

 

An example of an MSG line with email could be:
MSG;B2C0530802539500220150902;1;test@dpd.be;904;EN;;;;;;;;;;;;;;;;;

 

Or an example that contains both
MSG;B2C0530802539500220150902;1;test@dpd.be;904;EN;3;+32#479111111;904;NL;;;;;;;;;;;;;

 

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.

 

Example

 

#FILE;KD160145SQ;0530;20180307;154258;103859;
#DEF;MPSEXP:HEADER;MPSID;MPSCOMP;MPSCOMPLBL;MPSCREF1;MPSCREF2;MPSCREF3;MPSCREF4;MPSCOUNT;MPSVOLUME;MPSWEIGHT;SDEPOT;SCUSTID;SCUSTSUBID;DELISUSR;SNAME1;SNAME2;SSTREET;SHOUSENO;SCOUNTRYN;SPOSTAL;SCITY;SCONTACT;SPHONE;SFAX;SEMAIL;SCOMMENT;SILN;CDATE;CTIME;CUSER;HARDWARE;RDEPOT;ESORT;RCUSTID;RNAME1;RNAME2;RSTREET;RHOUSENO;RCOUNTRYN;RSTATE;RPOSTAL;RCITY;RCONTACT;RPHONE;RFAX;REMAIL;RCOMMENT;RILN;MPSSERVICE;MPSSDATE;MPSSTIME;LATEPICKUP;UMVER;UMVERREF;PODMAN;CORRELATION;;
#DEF;MPSEXP:PARCEL;MPSID;PARCELNO;CREF1;CREF2;CREF3;CREF4;DELISUSR;SERVICE;VOLUME;WEIGHT;HINSURE;HINSAMOUNT;HINSCURRENCY;HINSCONTENT;HAZLQ;;
#DEF;MPSEXP:PERS;MPSID;PERSDELIVERY;PERSFLOOR;PERSBUILDING;PERSDEPARTMENT;PERSNAME;PERSPHONE;PERSID;ODEPOT;ONAME1;ONAME2;OSTREET;OHOUSENO;OCOUNTRYN;OSTATE;OPOSTAL;OCITY;OPHONE;OEMAIL;OILN;;
#DEF;MPSEXP:MSG;MPSID;MSGTYPE1;MSGVALUE1;MSGRULE1;MSGLANG1;MSGTYPE2;MSGVALUE2;MSGRULE2;MSGLANG2;MSGTYPE3;MSGVALUE3;MSGRULE3;MSGLANG3;MSGTYPE4;MSGVALUE4;MSGRULE4;MSGLANG4;MSGTYPE5;MSGVALUE5;MSGRULE5;MSGLANG5;;
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;
MSG;B2C0536830115982220180413;1;receiver@receiver.be;904;EN;;;;;;;;;;;;;;;;;

#END;103859;

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