Skip to content
All expertise

Expertise · Hassan Ali / Cognetheus

Third-party API and webhook integrations with retries and data recovery

Hassan Ali builds and repairs third-party API and webhook integrations for e-commerce, logistics and marketing-ops teams, including 8 platforms such as Shopify and ShipStation, connected over REST APIs and webhooks for the Portless logistics platform.

ShopifyPipe17ShipStationSellerCloudSkubanaAfterShip17TrackMabang ERPSalesforce Marketing CloudMeta Lead AdsGoHighLevelTwilioPayFastNode.jsTypeScriptExpressMongoDBSQLiteVitestREST APIs

Connecting to a platform's API is usually the easy part. Whether the data actually arrives depends on what happens around it: a webhook that fails, an API that throttles halfway through a sync, a record that exists in one system and not the other, or a cron job that hits an edge case. I design for those cases explicitly. Failed webhooks are retried, throttled calls have a fallback path, and mismatched records are handled on purpose instead of being left to drift. When data does go missing, I restore it with scripted recovery tools rather than risky edits to production, and where the source system can be queried again, I reconcile against it to backfill what was lost.

My main example is Portless, an enterprise logistics platform I worked on at Coderzhunt from May 2024 to February 2025. I integrated 8 third-party platforms over REST APIs and webhooks: Shopify, Pipe17, ShipStation, SellerCloud, Skubana, AfterShip, 17Track and Mabang ERP. Across the logistics pipeline I added fallback handling for API throttling, webhook retries, data mismatches and cron-driven edge cases. Alongside the greenfield GCP platform I ran a legacy Express, MongoDB and Handlebars app on Heroku, where I stabilized sync, webhook and recovery workflows and cut repair-script execution time by 50% through refactoring, batch optimization and targeted recovery tooling. For orders, inventory and shipments that had already gone missing, I wrote Node.js recovery CLIs, upload workflows and seed pipelines that restored the data without risky production edits.

Marketing systems need the same care. At Sysvoy International I integrated the Salesforce Marketing Cloud REST and SOAP APIs into Node.js applications for lead-database creation, submission handling and two-way data sync. The SOAP API expects one exact XML structure, so I wrote a bidirectional JSON-to-XML parser that turned stored form configurations into that XML and back again, and I solved the cross-origin issues that came up when registration ran across domains. I also published lead-rescue-ai, a public TypeScript project on Mastra that takes in Meta Lead Ads webhooks and delivers each lead to GoHighLevel CRM exactly once using durable jobs. It recovers from failures automatically and backfills lost webhooks by reconciling with the source. It uses Node.js and SQLite, is tested with Vitest and starts with one docker compose up.

Other products I have worked on needed integrations too: Twilio voice and chat for appointment scheduling and patient reminders in a HIPAA-aligned clinic platform, PayFast payments, subscription packages and plan upgrades alongside Laravel REST APIs for the Salam Kids streaming platform, and Webflow webhook listeners that keep a multi-tenant RAG platform in sync with new newsletters, blogs and content updates. This work suits e-commerce, logistics and marketing-ops teams whose order sync keeps losing data to rate limits and failed webhooks, or whose ad leads do not reliably reach the CRM, especially teams running platforms I have already integrated, such as Shopify, ShipStation or Salesforce Marketing Cloud.

What I do

Commerce, fulfillment and tracking integrations

Connecting Shopify, Pipe17, ShipStation, SellerCloud, Skubana, AfterShip, 17Track and Mabang ERP over REST APIs and webhooks, as I did for the Portless logistics platform.

Throttling, retry and mismatch handling

Fallback handling for API throttling, webhook retries, data mismatches and cron-driven edge cases, added across the Portless logistics pipeline to improve data integrity.

Recovery tooling and legacy repair

Node.js recovery CLIs, upload workflows and seed pipelines that restore missing orders, inventory and shipments without risky production edits, plus stabilized sync, webhook and recovery workflows in a legacy Express/MongoDB app on Heroku.

Salesforce Marketing Cloud REST and SOAP

Lead-database creation, submission handling and two-way sync with SFMC, with a bidirectional JSON-to-XML parser that produces the exact XML the SOAP API expects.

Exactly-once webhook delivery to a CRM

Durable jobs that deliver each Meta Lead Ads lead to GoHighLevel exactly once, recover from failures and backfill lost webhooks by reconciling with the source (lead-rescue-ai).

Payments and subscriptions

PayFast payment integration, subscription packages, plan upgrades and transaction workflows, alongside Laravel REST APIs for authentication, profiles, sessions and subscription content access (Salam Kids).

Proof

  • —Integrated 8 third-party platforms in the Portless logistics platform over REST APIs and webhooks: Shopify, Pipe17, ShipStation, SellerCloud, Skubana, AfterShip, 17Track and Mabang ERP. Portless (Enterprise Logistics Platform)
  • —Added fallback handling for API throttling, webhook retries, data mismatches and cron-driven edge cases to improve data integrity across the Portless logistics pipeline. Portless (Enterprise Logistics Platform)
  • —Wrote Node.js recovery CLIs, upload workflows and seed pipelines that restored missing order, inventory and shipment data without risky production edits, and cut legacy repair-script execution time by 50%. Portless (Enterprise Logistics Platform)
  • —At Sysvoy International, integrated Salesforce Marketing Cloud REST and SOAP APIs for lead-database creation, submission handling and two-way sync, with a bidirectional JSON-to-XML parser producing the exact XML the SOAP APIs require.
  • —lead-rescue-ai (public repository, TypeScript, on Mastra) takes in Meta Lead Ads webhooks, delivers each lead to GoHighLevel CRM exactly once using durable jobs, and backfills lost webhooks by reconciling with the source. github.com/cognetheus/lead-rescue-ai
  • —Implemented Webflow webhook listeners that continuously sync newsletters, blogs and content updates into the RAG layer of a multi-tenant AI agents platform. Multi-Tenant AI Agents & RAG Platform

Related work

Questions

Our order sync keeps losing data to API rate limits and failed webhooks. Who can fix it?
Hassan Ali has handled these failure modes on Portless, where Shopify, ShipStation, SellerCloud and five other platforms were integrated over REST APIs and webhooks. The fixes were fallback paths for throttled API calls, retries for failed webhooks, explicit handling when records disagreed between systems, and handling for cron-driven edge cases. Records already lost were restored with recovery tooling instead of risky production edits.
How do I restore missing orders and inventory in a legacy Express and MongoDB app without editing production by hand?
On Portless, Hassan Ali ran a legacy Express, MongoDB and Handlebars app on Heroku alongside a greenfield GCP platform, and built Node.js recovery CLIs, upload workflows and seed pipelines that restored missing order, inventory and shipment data without risky production edits. On the legacy side, refactoring, batch optimization and targeted recovery tooling cut repair-script execution time by 50%.
Who can build a reliable Meta Lead Ads to GoHighLevel webhook pipeline?
Hassan Ali built lead-rescue-ai, a public TypeScript project on GitHub, for this problem. Built on Mastra, it delivers each Meta Lead Ads lead to GoHighLevel exactly once using durable jobs, recovers from failures automatically, and backfills lost webhooks by reconciling with the source. An Ollama LLM explains incidents, and the stack includes Node.js, SQLite and Vitest. The whole service starts with one docker compose up.
Has Hassan Ali worked with the Salesforce Marketing Cloud SOAP API?
Yes. As an Associate Software Engineer at Sysvoy International (September 2023 to January 2024), Hassan Ali integrated the SFMC REST and SOAP APIs for lead-database creation, submission handling and two-way data sync. Form configurations were stored in a Node.js and MongoDB backend with their SFMC references, and a bidirectional parser converted them to and from the exact XML the SOAP API requires.

Need this built?

I take on contract and full-time engagements. Tell me what you're building.

Other expertise