Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Artificial Intelligence
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries ⟶
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Delivery
  3. REST Carrier Connector v 17.0
  4. Sales Conditions FAQ

REST Carrier Connector

by Awins
Odoo

$ 86.56

v 17.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 16.0 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 16.0 17.0 18.0 19.0 20.0
  • Description
  • Manifest
  • License
Apps / Awins / api_hub_carrier

REST Carrier Connector

An add-on for API Connector Hub that adds one delivery provider, REST API (API Hub). Fill in the rate, label and cancel requests of any carrier that has a REST API in the delivery method form, with no code.

Install›Configure›Use
/odoo/action-stock.action_picking_tree_all/21 · signed in as admin
REST Carrier Connector in the Odoo backend
Odoo17.0, 18.0, 19.0, 20.0
EditionsCommunity, Enterprise
Works withAPI Connector Hub, Delivery, Inventory (stock_delivery)
LicenceOPL-1, 39 EUR
Tests23 automated, run on every version
Moduleapi_hub_carrier

The situation

A regional courier gives you a REST API and a PDF label, but no Odoo module. Writing one means a new provider, request code, error handling and a retry for the evening the courier returns 503. Until then someone types the tracking number into the transfer by hand and prints the label from the courier's website.

This add-on adds the provider "REST API (API Hub)" to Delivery. You pick an API Hub connection and write the request bodies as JSON with placeholders such as {zip} and {weight}, then name the places in the reply where the price, tracking number and label sit. Rates, labels and cancels then go through the hub, so each one is in the request log with the order or transfer name, and a busy carrier is retried by the hub queue.

What it adds

REST API (API Hub)
One provider for any REST carrier
Appears in the Provider list of a delivery method. Rate, label, cancel and tracking link are all settings on the new REST API tab, so a second carrier is a second delivery method, not a second module.
Rate Body
JSON templates with placeholders
Fill a JSON body with {reference}, {zip}, {country_code}, {weight}, {volume}, {amount}, {currency}, {packages}, {items} and about twenty more. Inside quotes the value is escaped, so a street like 12 Main St with a line break or an O'Brien with a quote cannot break the JSON. Standing alone, a number stays a number and a list stays a list. A missing value becomes an empty string or null. A misspelt placeholder is refused when you save.
Price Path
Dotted paths into the reply
Write data.rates.0.total for the price, plus optional paths for delivery days and currency. A price quoted in another currency is converted to the company currency, and the days appear next to the rate in the Add a shipping method dialog. If the price is missing from the reply, the error names the path and the log number.
Label Path
Label on transfer validation
Validating a delivery order sends the label request. The tracking number is saved on the transfer and the label is stored as an attachment: a link becomes a link attachment, base64 data becomes a PDF, PNG or ZPL file. It is also posted in the chatter, and the real cost from the reply can feed the Real cost invoicing policy.
Waiting to Retry
Failed labels stay visible and get retried
The request is logged in the hub with the transfer name as reference. HTTP 503, 429 or a timeout leaves it Waiting to Retry; when a later try goes through, the tracking number and label are filled in on the transfer. A 422 stays Failed, with the carrier's message in the transfer chatter, and Send Again on that request also completes the transfer once the carrier accepts it. Carrier Requests on the transfer lists its calls.
Without it: A failed label call raises an error, or is lost, depending on the connector.
Test Rate
Rate a sample parcel from the form
A button on the delivery method opens a dialog with weight, volume, value and a recipient. It sends the real rate request and shows the price or the carrier's refusal. No sales order and no delivery line are created. The call is in the request log under the reference you typed.
Cancel Path
Cancel and tracking link
Cancel Shipment on a transfer sends one request per tracking number, for example DELETE /shipments/{tracking}. If the carrier refuses, you get the status and message and the tracking number stays. The Tracking Link template (https://track.example.com/{tracking}) feeds the Tracking button.
REST Carrier: update transfer from status push
Status push action for a webhook
A server action that ships with the module. Choose it on an API Hub webhook; a carrier push such as {"event": {"tracking_number": "PX1", "status_text": "Delivered"}} finds the transfer by the Match Value Path, can replace its tracking reference, and posts the status in the chatter.

Getting started

Install

Open Apps, clear the Apps filter, search for REST Carrier Connector and click Activate. It needs API Connector Hub (installed with it if it is in your addons path), Delivery and the Inventory delivery bridge (stock_delivery), which Odoo installs with Delivery when Sales and Inventory are present.

Apps › api_hub_carrier › Activate
Configure

First create the carrier's connection under API Hub › Connections (base URL and login). Then open the delivery method, choose Provider REST API (API Hub), pick the connection and fill the REST API tab: the rate, label and cancel requests, the reply paths, and the tracking link. Press Test Rate to check the rate request. For status pushes, add a webhook on the connection, choose the server action and fill the Status Push fields.

Sales › Configuration › Delivery Methods › REST API tab Settings for REST Carrier Connector
Use

Choose the delivery method on a quotation as usual. Validating the delivery order sends the label request. Open Carrier Requests on the transfer, or API Hub › Request Log, to see what was sent. A line Waiting to Retry is sent again by the hub queue. After a refusal, fix the transfer and press Send to Shipper, or press Send Again on the failed request: when it goes through, the tracking number and label are filled in on the transfer.

API Hub › Request Log with a rate, a label that went through, one waiting to retry after a 503, one refused with 422, and a status push.
API Hub › Request Log with a rate, a label that went through, one waiting to retry after a 503, one refused with 422, and a status push.
Test Rate on the delivery method: a sample parcel sent as a real rate request, price converted from EUR.
Test Rate on the delivery method: a sample parcel sent as a real rate request, price converted from EUR.

Fine print

Does it include ready-made settings for DHL, UPS or another carrier?
No. It has no vendor in it. You write the JSON and the reply paths from the carrier's API documentation. We have not tested it against a live service of any carrier, only against simulated replies.
What if the carrier needs a signed request or a form upload?
The login types of API Connector Hub are used (key, bearer, basic, OAuth 2 client credentials). Custom signing or multipart uploads are not covered by the templates.
Can a salesperson without Settings access get rates?
Yes. Rating runs under the rights of the connection itself, so users who only create quotations can use the method. The REST API tab, Test Rate and the request buttons are for administrators.
Where can I run it?
On Odoo.sh and on your own server, Community or Enterprise, versions 17.0 to 20.0. Odoo Online doesn't accept third-party modules.
What doesn't it do?
Configuration only, no ready-made carrier profile, and not tested against a live service of any vendor. Requests and replies are JSON; XML and SOAP carriers are not supported. One shipment request per transfer, with parcels sent as a list of name and weight. Pickup booking, customs documents and return labels are not included. If the carrier refuses a label request (HTTP 4xx) the transfer is still validated and the refusal is noted in the chatter. Tick Stop Validation on Refusal to stop it instead; the error then rolls the transaction back, so that request is not kept in the log. It needs API Connector Hub 1.1.0 or later. Weight and volume are sent in the database units without conversion.
Can you adapt it for us?
Yes. Email odoo.expert.111@gmail.com with your Odoo version and what you'd like changed.

Log

17.0.1.0.0 · Oct 2026
First release, published for Odoo 17.0 to 20.0.

Will it fit the API of our carrier?

Send us the carrier's API documentation link and we will tell you if the templates can express its rate and label requests.

Email odoo.expert.111@gmail.com
QR code: email Awins about this module

Also by Awins

API Connector Hub API Connector Hub api_connector_hub
Split Transfers Split Transfers a_stock_picking_split
Product Warranty Claims Product Warranty Claims product_warranty_claim_track
Awins builds small Odoo modules that do one job. api_hub_carrier · 17.0.1.0.0
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Invoicing (account)
• Discuss (mail)
• Inventory (stock)
Community Apps Dependencies Show
API Connector Hub
Lines of code 1587
Technical Name api_hub_carrier
LicenseOPL-1
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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with