Compliance

SFDA Drug Traceability with Odoo: A Practical RSD Guide for Saudi Pharma Businesses

How SFDA drug traceability with Odoo works: what Odoo inventory handles, what RSD notifications need an integration, and how to map each stock movement.
SFDA Drug Traceability with Odoo: A Practical RSD Guide for Saudi Pharma Businesses

On this page

On this page

In brief: How SFDA drug traceability with Odoo works: what Odoo inventory handles, what RSD notifications need an integration, and how to map each stock movement.

Any business that handles human medicines in Saudi Arabia works inside a national track-and-trace regime. Every sellable pack carries a unique code, and each time that pack changes hands the establishment holding it is expected to tell the Saudi Food and Drug Authority (SFDA). For pharmaceutical distributors, importers, pharmacy chains and hospital stores that run Odoo or are evaluating it, the practical question is simple: how much of this can the ERP do, and what has to be built around it?

This guide explains SFDA drug traceability with Odoo in plain terms. It covers what the RSD system is, who reports to it, which Odoo inventory features give you a sound base, where a dedicated integration is unavoidable, and how to design a pharmaceutical warehouse so that the stock you see in Odoo and the stock SFDA sees in RSD stay aligned. Everything regulatory here is drawn from SFDA’s published material; technical details change between versions, so treat this as a planning guide and confirm the specifics with SFDA before you build.

What SFDA drug traceability means and what the RSD system is

RSD is SFDA’s drug track-and-trace system, known in Arabic as رصد. SFDA introduced it in 2018 to follow human pharmaceutical products, whether made in the Kingdom or imported, from the point of production to the point of use, and stakeholders began working on it from the start of 2019. SFDA describes three goals: keeping counterfeit products out of the supply chain, watching availability so shortages can be spotted early, and making recalls faster because the location of each pack is known.

The identifier behind all of this is a GS1-based 2D barcode on each unit. According to SFDA’s integration guide, every tracked drug unit carries a DataMatrix that holds four data elements:

  • GTIN: the Global Trade Item Number that identifies the product and pack.
  • Serial number: a unique number for that individual box, randomly generated so it is hard to copy.
  • Batch number: the production lot.
  • Expiry date: the date after which the unit must not be used.

RSD operations are keyed on the GTIN and serial number, or on the batch number for batch-level operations. Each stakeholder must also have its own unique GLN (Global Location Number) before SFDA registers it in the system; the guide refers stakeholders to SFDA and GS1 for obtaining one. The official RSD portal publishes the user manuals, FAQs and contact details.

Which businesses report to RSD

SFDA’s integration guide groups stakeholders into four types. Each type has its own list of permitted operations, and SFDA notes that it may restrict them:

Stakeholder type Who it covers Typical operations
Manufacturer Local factories that release finished batches; importing establishments can also register product into the system Supply, Import, Dispatch, Accept, Deactivate, Export, Return
Warehouse Distributors, agents and storage sites that move stock between manufacturers and end points Accept, Dispatch, Import (where it holds that privilege), Deactivate, Export, Return
Pharmacy Community and retail pharmacies that sell to patients Accept, Pharmacy Sale, Transfer (to other pharmacies), Deactivate, Return
Consumption centre Hospitals, dialysis centres, physical therapy centres and similar sites that use drugs on patients Accept, Consume, Transfer (to other consumption centres), Deactivate, Return

The SFDA FAQ adds some useful detail. Where batch release happens at a manufacturer outside the Kingdom, the local agent reports the operation as an import and then dispatches to other stakeholders. Anyone renting a warehouse only for storage needs its own SFDA licence, each licensed warehouse needs its own GLN, and a licensed third-party logistics provider can register as an establishment in its own right. Movements between stakeholders of the same establishment are reported too, until the drug is sold. Hospital pharmacies should confirm with SFDA whether they are registered as a pharmacy or as part of a consumption centre, since the permitted operations differ. If your business spans several roles, for example an importer that also runs retail pharmacies, expect a separate registration and GLN per site, and confirm your stakeholder type with SFDA rather than assuming it.

What Odoo already does well for medicine traceability

Odoo’s Inventory app gives you most of the internal record keeping that drug traceability depends on. None of this talks to RSD by itself, but it is the foundation the integration will read from and write to.

Product and barcode data

Each product variant can hold a barcode, and that field can store the 14-digit GTIN. Products can be set to track by lot or by unique serial number. When the Lots and Serial Numbers and Expiration Dates features are on, Odoo stores the expiry date on each lot and can derive alert and removal dates from it.

FEFO, receipts, transfers and deliveries

The FEFO removal strategy reserves the earliest-expiring stock first, which is what most pharmaceutical distributors want for outbound orders. Every physical step is a documented operation: receipts from suppliers, internal transfers between zones, pick and pack steps, deliveries to customers, returns and scrap. Each one records product, quantity, lot or serial, source and destination location, the user and the time.

Barcode scanning with GS1 rules

Odoo’s documentation describes a Default GS1 Nomenclature that maps standard application identifiers to Odoo fields: (01) GTIN to the product barcode, (10) to the lot, (21) to the serial number, (17) to the expiry date and (00) SSCC to a package. That means one scan of a compliant pack can, once configured and tested, fill the product, lot or serial and expiry in a single step instead of three manual entries.

Traceability report and recall response

The traceability report shows where a lot or serial number came from and where it went: which vendor receipt, which internal moves, which customer deliveries. Odoo has no dedicated recall workflow, but for lot-tracked products the report lets your team find every customer and location that received an affected batch quickly, so quarantine moves and customer notices can start without delay. For serial-tracked medicines, see the note on batch and serial data below.

Where SFDA drug traceability with Odoo needs an integration

The gap is the conversation with RSD. SFDA’s guide states that the system works on SOAP-XML web services, that each stakeholder receives a username and password, and that the service definitions (WSDL files and ISD documents) are shared after registration. Stakeholders are expected to modify their own systems to send and receive notifications. Standard Odoo has no RSD connector, so the following pieces have to be designed and built:

  • A notification for each relevant movement. When a receipt, delivery, sale, consumption or scrap is validated in Odoo, the matching RSD request must be built from the scanned GTIN, serial and batch data and sent. The response for each request, success or error, has to be stored against the Odoo operation.
  • Reliable pack-code capture. Odoo can parse GS1 data, but each scanner model, the group separator character and real pack labels from your suppliers need testing. Packs whose codes do not parse must be stopped at receipt, not discovered at dispatch.
  • Serial-level volume. Serial tracking creates one record per box. A distributor moving many thousands of packs a day will generate a large number of serial records and notifications. RSD also offers batch-number versions of dispatch, accept, return and transfer, and SFDA’s Package Transfer Service (PTS) exchanges files of GTIN, serial, batch and expiry data for large shipments. Which level applies to which flow must be agreed from the current SFDA specifications.
  • Batch and serial on the same unit. Standard Odoo tracks a product either by lot or by serial number, in one field. Medicines tracked by serial still carry a batch number in the pack code, and RSD batch-level operations and recalls need it. Holding both usually requires an added field or a deliberate design choice, which should be settled before any data is loaded.
  • Packages and cartons. RSD’s Accept Dispatch service accepts all units in a dispatch notification at once, and a dispatch can represent a package. In Odoo, packages can group the serials in a carton. The integration has to keep these two views of the same carton consistent.
  • Rejected notifications and reconciliation. SFDA provides an Error Code List service and a Check Status service to query a drug’s status and ownership. Rejected requests need an exceptions queue in Odoo, an owner who fixes them, and a daily comparison of Odoo stock with what RSD records as yours.
  • Accept before use. SFDA’s guide notes that until the receiver sends an accept, or the sender cancels, a product stays between the two parties and neither can act on it. Receiving procedures must therefore send accept notifications promptly.
  • Recalls and exceptions. Returns carry a reason such as recall, expiry or wrong receiver. Broken, expired or recalled units that will not move further are deactivated with a reason. Stolen units are blocked for everyone. Each case needs a defined Odoo operation and a matching RSD action.

SFDA also requires integration testing on its test server before any notification goes to production, and allows its web portal to be used for notifications while a stakeholder’s own system is being prepared. Plan both into the timeline, because SFDA drug traceability with Odoo is only as reliable as the integration that has passed those tests.

Example: mapping Odoo stock movements to RSD operations

The table below is an example of how warehouse movements in Odoo could map to RSD operations. It is based on SFDA’s published integration guide and FAQ, and it must be confirmed against the current SFDA specifications and your registered stakeholder type before anything is built.

Movement in Odoo Who performs it RSD operation it would trigger (example only)
Manufacturing order completed and batch released Local manufacturer Supply, which registers the units in RSD
Receipt of an imported shipment after import steps are complete Importing establishment Import, the first registration for imported units
Receipt from a manufacturer or warehouse Warehouse, pharmacy or hospital Accept (serial), Accept by Batch Number, or Accept Dispatch for a whole dispatch
Delivery to another licensed stakeholder Manufacturer or warehouse Dispatch or Dispatch by Batch Number; the receiver then sends Accept
Delivery cancelled or sent to the wrong receiver Sender Dispatch Cancel
Return to the supplier Receiver Return or Return by Batch Number, with a reason
Move between two of your own licensed sites, each with its own GLN Any stakeholder Dispatch and Accept between the sites, or Transfer between pharmacies or between consumption centres; confirm
Internal move between bins in the same site Any stakeholder None listed in the guide; confirm with SFDA
Point of sale order for a patient Pharmacy Pharmacy Sale
Issue to a ward or patient Hospital or consumption centre Consume
Scrap of broken, expired or recalled units Any stakeholder Deactivate, with a reason
Delivery to a customer outside the Kingdom Manufacturer or warehouse Export

Most RSD operations also have a cancel version. Your Odoo design should decide who may trigger a cancel and how the Odoo document is reversed at the same time.

Medical device traceability in brief

Medical devices follow a different regime. SFDA’s Unique Device Identification requirements (MDS-REQ 7) apply to devices, supplies and accessories placed on the Saudi market, and to manufacturers and authorised representatives. The UDI has two parts: the UDI-DI, which identifies the device model and links to SFDA’s Saudi-DI database, and the UDI-PI, which carries production data such as lot or batch, serial number, expiry date or manufacturing date when they appear on the label. Codes follow GS1, HIBCC or ICCBBA standards.

Saudi-DI is a device identification registry maintained by the manufacturer or authorised representative. It is not a movement-reporting system like RSD. For a distributor or hospital, Odoo’s role is to record the UDI-DI on the product and the lot or serial on each unit, so that field safety notices can be traced to the right customers or wards. Check the current SFDA requirements for any obligations that apply to your own role.

Designing a pharmaceutical warehouse in Odoo

A good RSD integration depends on a warehouse that is modelled carefully. For most distributors, SFDA drug traceability with Odoo starts with these choices:

  • One warehouse per GLN. Model each licensed site as its own Odoo warehouse so every movement has a clear RSD identity.
  • Quarantine and release locations. Receive into a quarantine location, release to saleable stock only after checks and a successful accept, and keep a separate location for recalled or blocked units.
  • Cold chain zones. Separate locations for refrigerated and controlled-temperature stock, with putaway rules that route products automatically.
  • Two- or three-step flows. Use receive then store, and pick then pack then ship, so that scanning happens at the points where RSD data is needed.
  • Tracking set per product. Agree which products are tracked by serial and which by lot, using SFDA’s scope rather than convenience.
  • Short-dated stock rules. Use FEFO and removal dates so packs close to expiry are not sent to customers who will reject them.
  • Clear user roles. Limit who can validate, cancel or scrap tracked stock, because each of those actions has a regulatory consequence.

Testing SFDA drug traceability with Odoo before go-live

Run real supplier packs through every flow in a test database connected to SFDA’s test server: receipt, putaway, pick, delivery, return, scrap and sale. Confirm that each Odoo operation produces the expected RSD request, that errors land in the exceptions queue, and that stock in both systems still matches at the end of each test day.

Implementation checklist

  1. Confirm your stakeholder type, licences and GLNs for every site with SFDA.
  2. Obtain web service credentials, WSDL files and ISD documents after registration.
  3. List every physical flow and agree the RSD operation for each, using the example table as a starting point.
  4. Configure Odoo products with GTINs, tracking type, expiry settings and FEFO.
  5. Enable the GS1 nomenclature and test scanners on real pack labels.
  6. Design and build the integration layer, its logs and its exceptions queue.
  7. Complete SFDA integration testing on the test server.
  8. Load opening stock by serial or lot and reconcile it with RSD before go-live.
  9. Train receiving, dispatch and pharmacy staff on scanning and exception handling.
  10. Set a daily reconciliation routine and a named owner for rejected notifications.

Remember that tracked medicines also flow into sales and purchase invoices, so the same rollout should be checked against your ZATCA Phase 2 e-invoicing requirements. For a wider view of the features a Saudi ERP should cover, see our guide to must-have ERP features in Saudi Arabia.

Limits: what Odoo alone does not do

It is important to be clear about the boundary of SFDA drug traceability with Odoo. Odoo is not approved or certified by SFDA, and installing it does not make a business RSD-compliant. Compliance depends on your registration, the integration, how your staff scan and validate, and how quickly exceptions are fixed. Odoo provides a reliable stock record with lots, serials and expiry dates, which the integration needs; RSD remains the regulator’s system of record.

Clinical decisions, prescription checks and patient records also sit outside Odoo. Hospitals and clinics keep those in their clinical systems, in the same way that insurance claims run outside Odoo, as explained in our article on Odoo NPHIES integration. Odoo runs the business side: purchasing, stock, sales and accounting.

Plan SFDA drug traceability with Odoo for your business

Getting SFDA drug traceability with Odoo right is mostly a design exercise: the right warehouse model, clean product data, an integration that matches SFDA’s current specifications, and a team that owns exceptions every day. IntellaQ Flow implements Odoo for businesses across Saudi Arabia from its base in the Eastern Province. We can help you map your flows, configure Odoo inventory for medicines and define the scope of the RSD integration with you and your technical partners.

See how we approach Odoo for healthcare organisations, including pharmacies and medical supply stores. Preparing a pharmaceutical warehouse or pharmacy chain for RSD? Talk to our team about your current flows and the integration scope that fits them.

Common questions

Does Odoo connect to the SFDA RSD system out of the box?

No. Standard Odoo has no RSD connector. SFDA's RSD system works through SOAP-XML web services whose definitions are shared with each stakeholder after registration, so sending supply, dispatch, accept, sale, consume, return or deactivate notifications from Odoo requires a scoped integration built and tested against SFDA's current specifications.

What data does the RSD barcode on a medicine pack contain?

SFDA's integration guide states that each tracked drug unit carries a GS1-based DataMatrix with the GTIN, serial number, batch number and expiry date. RSD operations are keyed on the GTIN and serial number, or on the batch number for batch-level operations.

Can Odoo read GS1 barcodes on medicine packs?

Odoo offers a GS1 barcode nomenclature that maps application identifiers such as GTIN, lot, serial number and expiry date to Odoo fields. It should be tested with your actual scanners and supplier pack labels, because scanner settings and separator characters affect whether a code is parsed correctly.

Does using Odoo make a pharmacy or distributor RSD-compliant?

No. Odoo is not approved or certified by SFDA. Compliance depends on your registration and GLNs, a working integration, correct scanning at every step and prompt handling of rejected notifications. Odoo provides the internal stock record with lots, serials and expiry dates that the integration relies on.

Are medical devices reported to RSD as well?

Medical devices follow SFDA's separate Unique Device Identification requirements (MDS-REQ 7), with device data held in the Saudi-DI database by manufacturers or authorised representatives. Odoo can record the device identifier on the product and the lot or serial on each unit. Check the current SFDA requirements for the obligations that apply to your role.

More on SFDA drug traceability with Odoo

IntellaQ FlowField notes from campaigns and builds across the Kingdom.

// Next step

Tell us what you are building.

We reply within one working day

// Keep reading

More field notes

VAT Time of Supply on Saudi Government Contracts

Compliance

13 Nov 2026

VAT Time of Supply on Saudi Government Contracts

The general rule, where government contracts diverge from it, and the cash-flow gap that opens between the tax point and
SEO

Growth & marketing

13 Nov 2026

SEO

IntellaQ delivers expert SEO services in Saudi Arabia, helping businesses increase visibility on search engines, attract high-intent traffic, and convert
Odoo vs SAP vs Local ERP: Which Fits a Saudi SME?

ERP

13 Nov 2026

Odoo vs SAP vs Local ERP: Which Fits a Saudi SME?

Three categories, not twenty vendors. Where each genuinely fits, what actually drives the cost, and the localisation questions to ask
Chat on WhatsAppBook a free consultation