Engineer

Connect ERPs, payment gateways, warehouses, storefronts and custom backends through typed contracts, idempotent webhook consumers, retry queues and observable sync logs.

Method, defensive integration code and architecture patterns. No client configs exposed.

When CSV exports are the only glue between core tools

Growing companies rarely lack software—they struggle because orders, invoices, stock counts and customer records live in systems that cannot speak cleanly to one another. Operations and engineering leads across the UAE invest in custom API development and integration when fragile workarounds start breaking daily workflows:

  • Duplicate invoices and phantom stock from retried webhooks. Payment processors and couriers deliver webhooks at least once, creating double orders whenever handlers lack idempotency keys.
  • Silent rate-limit drops during campaign spikes. Batch sync scripts fire bursts at ERP or marketplace endpoints, get throttled cleanly on HTTP 429, and lose records without dead-letter queues.
  • Schema drift breaks undocumented spreadsheets. An upstream vendor renames one field or switches tax rounding conventions, leaving finance reconciling discrepancies manually days later.
  • No single trace across hops. When a storefront checkout succeeds while warehouse dispatch misses the record, nobody can inspect which API call failed or why.

Contract-first APIs, durable queues and clear failure ownership

Integrations fail at the edges—timeouts, partial batch responses, timezone mismatches and undocumented vendor quirks—rather than on the happy path. We design both external APIs and third-party middleware around explicit boundary protections:

  1. Cryptographic checks and idempotency keys at ingress. Every inbound webhook verifies HMAC signatures against raw request bodies, writes an inbox record atomically and rejects duplicate event IDs safely.
  2. Decoupled queues with dead-letter visibility. Receiving endpoints acknowledge quickly and push processing onto durable workers with exponential backoff and a clear operator replay console.
  3. Canonical domain adapters. External ERP, courier and marketplace formats translate once at the adapter boundary into typed internal models rather than polluting core business rules.

Code example: idempotent webhook consumer with deduplication

An illustrative handler showing how inbound events are verified, deduplicated atomically inside a database transaction and queued before slow downstream ERP writes run:

src/integrations/webhook-ingress.ts

export async function handleOrderWebhook(rawBody: string, signature: string) {
if (!verifyHmacSha256(rawBody, signature, env.WEBHOOK_SECRET)) {
  return { status: 401, body: 'invalid_signature' };
}

const event = OrderEventSchema.parse(JSON.parse(rawBody));

const inserted = await db.query(
  `INSERT INTO webhook_inbox (event_id, source, payload, status)
   VALUES ($1, 'storefront', $2, 'queued')
   ON CONFLICT (event_id) DO NOTHING
   RETURNING id`,
  [event.id, event]
);

if (inserted.rowCount === 0) {
  return { status: 200, body: 'already_recorded' };
}

await dispatchSyncJob(event.id);
return { status: 202, body: 'accepted' };
}
Illustrative TypeScript webhook ingress pattern written for this page. Demonstrates signature verification and database-backed deduplication; not client code.

Where production integrations commonly stall across UAE operations

Retail, e-commerce, FMCG and food and beverage operators frequently stitch together storefronts, point-of-sale terminals, local payment gateways, 3PL couriers, accounting platforms and regional marketplace feeds. In our own Remmoce SaaS platform, keeping marketplace catalogue rules consistent taught us early that strict payload validation beats silent fallbacks when upstream partner schemas behave unexpectedly.

Whenever a downstream API goes into maintenance or returns ambiguous errors, resilient middleware parks affected payloads with exact field diagnostics rather than quietly discarding updates or blocking unrelated customer orders.

Selecting the right integration protocol for each workload

Choosing between synchronous APIs, webhooks and queues
PatternBest used forStrengthsWrong choice when
REST JSON + OpenAPIPublic partner APIs, ERP CRUD resources and straightforward backend-to-backend calls.Universal tooling, cacheable reads, clear status codes and typed SDK generation.Single screen needs deeply nested custom slices across five unrelated entities.
GraphQL gatewayComplex internal portals or B2B dashboards aggregating multiple microservice sources.Avoids over-fetching on bandwidth-constrained mobile views with strict schema introspection.Simple external webhooks or file transfers where HTTP caching matters more.
Signed webhooks + inboxPayment settlements, courier scans and external CRM state changes.Event-driven latency without wasteful constant polling loops.Sender lacks reliable retries—pair webhooks with a scheduled reconciliation poll.
Durable queues (SQS / BullMQ)ERP bulk invoicing, catalogue sync bursts and slow rate-limited vendor APIs.Absorbs traffic spikes cleanly with per-job retries and inspectable dead-letter queues.Caller requires a synchronous accept/reject verdict inside 300 milliseconds.

Deliverables and integration engineering stack

OpenAPI & JSON schema contracts

Strict request, response and error contracts documented automatically and validated at runtime.

Adapter & mapping services

Isolated connector modules translating tax codes, SKUs, currencies and units between external tools.

Inbox / outbox persistence

Transactional outbox and deduplicated webhook tables ensuring database commits never diverge from queue emits.

Reconciliation & replay console

Lightweight operator view highlighting stalled records, payload diffs and safe one-click replays.

Secrets & rate-limit guards

Encrypted token rotation, OAuth refresh locks and per-partner token buckets respecting upstream quotas.

Contract & sandbox test suites

Replayable HTTP mocks matching real vendor error payloads so deployments test failure modes before shipping.

Most integration middleware runs on Node.js with TypeScript and JavaScript or Python, storing durable inbox logs and outbox states in PostgreSQL deployed across AWS. Where middleware powers bespoke operational portals or storefront workflows, we coordinate closely with our custom software development, e-commerce development and business process automation teams.

How we integrate third-party and legacy systems

  1. Endpoint audit and field mapping

    We inspect live vendor sandboxes, auth lifecycles, rate headers and sample payloads rather than trusting outdated PDF docs.

    Automated contract tests & queues do
    Scaffolds typed schema definitions from sample JSON or XML responses.
    Engineers & system owners decide
    Engineers and finance/ops owners confirm source-of-truth priority on field conflicts.
  2. Inbox, outbox and replay design

    We specify deduplication keys, retry schedules, timeout ceilings and dead-letter escalation paths before writing connectors.

    Automated contract tests & queues do
    Simulates duplicate bursts and timeout delays across staging fixtures.
    Engineers & system owners decide
    Lead engineer sets safe concurrency and idempotency rules per external API.
  3. Adapter and middleware build

    Isolated connector services translate payloads cleanly with structured correlation IDs stamped across every log line.

    Automated contract tests & queues do
    Generates repetitive DTO boilerplate and schema validators.
    Engineers & system owners decide
    Developers verify HMAC signatures, OAuth token locks and pagination cursors.
  4. Chaos and reconciliation testing

    We verify partial outages, 429 throttles, malformed decimals and scheduled catch-up polls in staging.

    Automated contract tests & queues do
    Executes contract test regressions on every pull request.
    Engineers & system owners decide
    Engineers inspect replay ergonomics and reconcile test totals end to end.
  5. Cutover and observability alerts

    Production launches alongside shadow reconciliation checks and clear alerts when queue depth or failure rates climb.

    Automated contract tests & queues do
    Groups recurring downstream error codes cleanly by partner endpoint.
    Engineers & system owners decide
    Ops owners review initial exception queues until sync flows cleanly unattended.

Engagement models, boundaries and cost drivers

Custom API engineering makes sense when two or more core business systems need reliable, auditable synchronisation or you are exposing structured endpoints for partners and mobile apps. If you only need simple notifications between SaaS tools with forgiving error tolerance, lightweight low-code connectors are faster—until volume, branching rules or compliance dictate owned middleware.

We scope each integration against clear milestones rather than fixed templates. Effort depends on five factors: vendor API documentation and sandbox quality (modern REST versus legacy SOAP, SFTP or undocumented webhooks), number of connected systems and bi-directional conflict rules, expected burst throughput, audit/reconciliation UI requirements, and legacy authentication hurdles.

Questions engineering and operations leads ask

When should we choose custom API middleware instead of Zapier or Make?
Choose owned middleware once workflows involve complex transactional integrity, strict multi-step error recovery, private VPC databases, custom ERP webhooks, or high-frequency SKU/order payloads where connector task fees and rate limits multiply.
Can you integrate older ERPs that only expose SOAP XML, SQL views or scheduled CSV drops?
Yes. We wrap legacy interfaces inside clean adapter services that validate formats, compute row diffs and emit clean typed events so modern applications never depend directly on brittle file drops.
How do you prevent webhooks from timing out or missing events during external downtime?
By decoupling ingress from processing: acknowledge verified events immediately after writing to an inbox table, process work asynchronously on durable queues and run a low-frequency reconciliation poll to catch dropped deliveries.
Who owns the code, API keys and cloud infrastructure when the build finishes?
Your organisation owns the complete Git repository, infrastructure definitions, OpenAPI documentation and cloud accounts cleanly from day one.

Replace brittle exports with tested APIs

List the two or three systems that fail to stay in sync today and how often records drift. We will map the integration boundaries cleanly.