Odoo MPL Shipping integration

MPL Shipping Integration

Send MPL parcels from Odoo: home delivery, PostaPont, parcel locker or post office.

Magyar Posta MPL integration for Odoo 19

What it does

Validate a delivery order and Odoo sends the shipment to the MPL API, saves the label, closes the posting list at the end of the day and follows each parcel until it is delivered.

Magyar Posta publishes the MPL API for business customers with a parcel contract. On the MPL developer portal you create an application and get an API key and API secret; your customer code (vevokod) and the 8 digit agreement code come from your contract. Enter them on an MPL delivery method in Odoo, choose sandbox or production and press Test Connection. Odoo asks for an OAuth2 token and keeps it until it runs out.

Each delivery method is one MPL product and delivery mode: MPL Business Parcel or Postal Parcel, to the door, to a post office, to a PostaPont or to a parcel locker. For the last three, the checkout pick-up point button lists the points MPL returns for the customer postcode, and the choice travels from the order to the transfer.

When the transfer is validated, Odoo sends the sender with the agreement and bank account, the customer address (always the real one, also for pick-up points), one item per package with the weight in grams and the extra services you ticked: cash on delivery, declared value, fragile, Saturday delivery, own hands, next working day, return receipt or bulky. Weights over the MPL limit for that delivery mode, a missing locker size or COD above 500,000 HUF on a locker are stopped in Odoo first.

At the end of the day select the shipments and press MPL Close List. MPL returns the delivery note, the posting list and the postage of each parcel; Odoo saves them on a posting list record and on each transfer. Until then a shipment can still be deleted.