Swiss Post Shipping
Ship with Swiss Post from Odoo: PostPac and SmallPac labels in PDF, ZPL or PNG with additional services, and automatic tracking updates through the Swiss Post Digital Commerce API.
What it does
Adds a Swiss Post provider for Odoo shipping methods. When a delivery order to Switzerland or Liechtenstein is validated, Swiss Post creates one address label per Odoo package with your franking licence, service and additional services, and the labels are attached to the transfer.
Tracking status and events are updated on a schedule; every Swiss Post call is written to a history.
Demo video
The video loads from YouTube (privacy-enhanced mode) when you press play. Watch on YouTube
Features
| Feature | What it does |
|---|---|
| Labels | PostPac Priority or Economy, SmallPac Priority or Economy; one label per Odoo package with parcel number and total; A5, A6 or A7 in PDF, ZPL or PNG at 200, 300 or 600 dpi. |
| Additional services | Signature, Saturday delivery, Fragile and Personal delivery, checked against what the chosen label format can hold. |
| Test labels | SPECIMEN labels while the shipping method is not in production. |
| Tracking | Swiss Post status and events on a schedule, with a chatter note on delivery or return; a button for an immediate update. |
| Cancel | Marks the item numbers cancelled in Odoo (Swiss Post has no label cancellation in this API). |
| Prices | A fixed price or pricing rules from Odoo. |
| Security | Client ID and secret visible to administrators only and never logged; parcel records can only be changed by the integration and administrators; answers are size-limited and type-checked. |
Setup
- On the Swiss Post developer portal, create an application subscribed to Barcode (and Track consignments for tracking); note its client ID and secret. Have your franking licence ready.
- Inventory > Configuration > Shipping Methods > New, provider Swiss Post.
- As an administrator, on the Swiss Post tab: the client ID, the secret and the franking licence. While Production is off, labels are printed with SPECIMEN.
- Click Test Connection (it signs in for each API; nothing is created).
- Choose the service, the additional services, the label format and the price.
- Give the warehouse address a street, a city and a Swiss postcode.
Requirements
- Odoo 17, 18, 19 or 20, Community edition
- Odoo apps: Delivery, Discuss
- Python requests on the Odoo server
What it does not do
- International shipments and customs documents.
- Returns, pick@home, PickPost / My Post 24, address verification, Swiss Post price calculation, delivery instructions and notifications.
Tests
| Odoo | Tests passed | Last run |
|---|---|---|
| 17 | 49 | |
| 18 | 49 | |
| 19 | 49 | |
| 20 | 49 |
The tests ship with the module source, so you can run them on your own server.
Questions
What do I need from Swiss Post?
A business customer franking licence and an application on the Swiss Post developer portal (client ID and secret) subscribed to Barcode, and Track consignments for tracking.
Which countries can I ship to?
Switzerland and Liechtenstein.
How do I test without real labels?
Leave Production off: Swiss Post prints SPECIMEN on the labels.
Can I cancel a label?
Cancel marks the item numbers cancelled in Odoo; do not hand those parcels over. The API offers no cancellation.
Questions about the module?
Tell us your carrier account and Odoo version. We reply within one business day.