mhidalgo.ar

2026

Tanner Pharma Group

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.

Employer McFadyen Digital
Client Tanner Pharma Group
Market American
Role Magento 2 Developer, NetSuite ERP integration

Technologies

18 technologies - Every technology tagged to this project, grouped by kind.

Backend
Node.js · OAuth · REST API
Integrations
ERP Integration · NetSuite · SuiteQL
Platforms
Adobe Commerce Cloud · Magento 2 Commerce · Magento B2B
Practices
Data Migration · ETL · Technical Documentation
Tooling
Git · Postman
Data
MySQL
Commerce domain
B2B Commerce
Programming languages
PHP
Magento architecture
Data Patches