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.

Buy on the Odoo App StoreThe catalogue

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

FeatureWhat it does
LabelsPostPac 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 servicesSignature, Saturday delivery, Fragile and Personal delivery, checked against what the chosen label format can hold.
Test labelsSPECIMEN labels while the shipping method is not in production.
TrackingSwiss Post status and events on a schedule, with a chatter note on delivery or return; a button for an immediate update.
CancelMarks the item numbers cancelled in Odoo (Swiss Post has no label cancellation in this API).
PricesA fixed price or pricing rules from Odoo.
SecurityClient 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

  1. 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.
  2. Inventory > Configuration > Shipping Methods > New, provider Swiss Post.
  3. 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.
  4. Click Test Connection (it signs in for each API; nothing is created).
  5. Choose the service, the additional services, the label format and the price.
  6. 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

Automated tests, last run
OdooTests passedLast run
1749
1849
1949
2049

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.

Contact us [email protected]