# Tanner Pharma Group (2026)

HTML: https://mhidalgo.ar/en/work/tanner-pharma/

- URL: https://mhidalgo.ar/en/work/tanner-pharma/
- Employer: McFadyen Digital
- Client: Tanner Pharma Group
- Market: American
- Role: Magento 2 Developer, NetSuite ERP integration
- Technologies: Node.js, OAuth, REST API, MySQL, B2B Commerce, ERP Integration, NetSuite, SuiteQL, PHP, Data Patches, Adobe Commerce Cloud, Magento 2 Commerce, Magento B2B, Data Migration, ETL, Technical Documentation, Git, Postman

Designed and built the pipeline that migrates the client's customer base from NetSuite ERP into Adobe Commerce B2B: customers become Companies, contacts become Company Users, and ship-to addresses carry their pharmaceutical license data.
Wrote two standalone command-line tools in plain PHP 8 (an exporter and an importer) with no framework or Composer dependencies. I implemented NetSuite Token-Based Authentication (OAuth 1.0, HMAC-SHA256) from scratch and added concurrent HTTP with retries and backoff, SuiteQL paging and Magento REST clients.
Made both steps resumable using atomic checkpoint files, so a run can be interrupted at any point and restarted without duplicating records. Added a dry-run mode that validates an import without writing anything.
Found and documented the gaps between the two systems' data models, then resolved them in code: city names typed into the state field, invalid regions, Puerto Rico, missing emails and passwordless accounts. Each address that couldn't be completed safely goes into a cleanup report for the NetSuite team, so nothing is invented.
Extended Magento's customer and address data model with revertible data patches that link each record back to NetSuite, and prototyped the data exploration in Node.js first.
Delivered a Postman collection that documents all 16 requests in the flow (10 NetSuite SuiteQL/REST calls for the export and 6 Magento REST calls for the import), each OAuth 1.0-signed with example responses. I also wrote a step-by-step setup guide for the NetSuite and Magento integrations, so the client's team can reproduce, debug or extend the integration on its own.
In the sandbox run, the tools exported about 8,900 customers, 9,500 ship-to addresses and 3,600 contacts, and imported about 7,500 companies.

---
Matias Hidalgo · me@mhidalgo.ar · [llms.txt](https://mhidalgo.ar/en/llms.txt) · [API and MCP](https://mhidalgo.ar/en/developers/)
