NZ Post Shipping Integration - New Zealand Post, CourierPost, Pace | NZ Post Label and Tracking
by Modvanta https://modvantaapps.tech/odoo-apps/delivery-nz-post/$ 24.93

NZ Post for Odoo 19 - New Zealand Post shipping
NZ Post rates, labels, tracking and pickups from the Odoo delivery order.
A direct connection to the NZ Post shipping APIs: live CourierPost, Pace and international prices on quotations and at the website checkout, the label PDF attached to the delivery order when you validate it, tracking events back in Odoo by polling or webhook, ParcelPost return labels and CourierPost or Pace pickup bookings.
Written and supported by Modvanta - modvantaapps@gmail.com
70 testsautomated, all passing | 4 NZ Post APIsrates, labels, tracking, pickup | Demo modetry it without an account | $25 onceno monthly fee |
What it does
Pick an NZ Post delivery method on the sale order. Odoo asks the NZ Post ShippingOptions API for the price, creates the consignment with the ParcelLabel API when the delivery order is validated, downloads the label PDF, and keeps the parcel status up to date with ParcelTrack.
New Zealand online shopsWebsite checkout shows your NZ Post account prices for CourierPost, economy and Pace. |
Warehouses shipping dailyValidate, print, book the courier pickup - without opening another website. |
ExportersInternational labels with the customs contents (HS code, origin, value) taken from the order. |
Connect your NZ Post account
Client ID and secret of your NZ Post developer application, billing account number (TPID) and site code. UAT and production are separate environments; Demo answers with sample data.
- OAuth 2.0 client credentials, token cached until it expires
- Label size 174x100 or 150x100, landscape or portrait, PDF or PNG, your NZ Post logo ID
- Webhook URLs for labels and tracking, with a secret token in the URL

One delivery method per service
Choose CourierPost or Pace, a fixed service code (CPOLP, CPOLE, 3HRA ...) or the cheapest service, prices with or without GST, add-ons and international customs defaults.
- Signature Required (CPSR), Photo Required (CPPR), Saturday Delivery (CPOLSAT)
- Mandatory add-ons returned by NZ Post (for example rural delivery) are priced and sent
- Default parcel size and weight for products without dimensions

Compare every service on the order
Compare Services lists all CourierPost, Pace and Oversize services NZ Post offers for the order with prices including and excluding GST. Use one and the delivery line is updated.
- CourierPost is priced per parcel, Pace for the whole consignment, as NZ Post does
- Add-on prices follow the parcel or consignment pricing model of the answer

Label on validation
Validating the delivery order creates the consignment, waits for the label (up to 30 seconds, as NZ Post recommends), attaches the PDF and writes the tracking reference on the transfer.
- One consignment, one label per package (multi-parcel)
- Labels that take longer are fetched later by the scheduled action or the label webhook
- Pace labels: the Pace job number is booked first with the ParcelPick API

Tracking events in Odoo
ParcelTrack events (picked up, in transit, with courier, delivered, attempted) are stored on the consignment, the stage moves forward and the chatter of the transfer is updated.
- Polling of up to 10 references per call, plus optional ParcelTrack webhook subscriptions
- A consignment is delivered only when every parcel is delivered
- Optional email to the customer on delivery
All consignments in one list
Filter what is not delivered yet, problems (attempted, exception) and returns.
- Track On NZ Post opens the public tracking page
- Download the labels again until they expire

Book the courier pickup
Select delivery orders and book a CourierPost pickup (with their tracking references) or a Pace pickup. Pickup hours are checked in New Zealand time.
- Weekdays 07:00-18:00, Saturdays 08:00-13:00, no Sundays
- Site code or free-form pickup address
- Job ID and job number stored on the booking

International labels with customs
Labels outside New Zealand carry the parcel contents for the CN22/CN23: description, quantity, weight, tax-excluded value, HS code, country of origin and SKU.
- Nature of transaction, undeliverable instructions, DDP or DDU, additional cover
- International rates per package (dimensions in millimetres, as the API expects)

NZ Post prices at the website checkout
Every published NZ Post delivery method is priced live for the shopper address.
- Fallback price when NZ Post does not answer (optional)

API log
Every call with status, duration and the request and answer, secrets masked.
- Old log lines are cleaned weekly

How it works
1 | Ask NZ Post for API access (client ID and secret) and your account number and site code. |
2 | Create the NZ Post account in Inventory > Configuration > NZ Post > Accounts and click Test Connection. |
3 | Create a delivery method with provider NZ Post, choose the carrier and the service. |
4 | Sell: the price comes from NZ Post on the quotation and at the website checkout. |
5 | Validate the delivery order: the label PDF and the tracking reference are on the transfer. |
6 | Book the pickup; tracking updates arrive by the hourly scheduled action or by webhook. |
Settings
| Environment | Demo (no network), UAT or Production |
| Account number / site code / auth code | Account rates and the sender site of your labels |
| Carrier and service | CourierPost or Pace; one service code or the cheapest service |
| Quoted price | Including or excluding GST |
| Add-ons | Signature, photo, Saturday delivery |
| Labels | PDF or PNG, 174x100 or 150x100, orientation, logo ID, wait time |
| International | Nature of transaction, undeliverable instructions, duty, additional cover |
| Tracking | Polling, webhooks, customer email on delivery, own tracking page URL |
Good to know
- The NZ Post ParcelLabel API has no cancel call: cancelling in Odoo voids the consignment in Odoo only, do not use its printed label.
- Cash on delivery and delivery to NZ Post collection points are not offered by this module.
- Tested with a built-in NZ Post simulator and against the public NZ Post mock server; your own UAT access (from NZ Post) is needed for a first live test.
- Return labels are for domestic CourierPost parcels.
FAQ
Compatibility and support
Odoo 19 Community and Enterprise. Depends on Inventory delivery (stock_delivery). Website checkout rates when eCommerce is installed.
Questions before or after buying: modvantaapps@gmail.com
Buy Now - $25NZ Post, CourierPost, ParcelPost and Pace are names of their owners. This module is an independent integration and is not affiliated with or endorsed by NZ Post.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) • Inventory (stock) |
| Lines of code | 2902 |
| Technical Name |
mdv_delivery_nz_post |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/delivery-nz-post/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module