Magento Open Source asynchronous and bulk REST APIs

Asynchronous and bulk REST endpoints let an ERP or PIM push high-volume catalog, price and stock changes into Magento Open Source through queues, with status checks and retries designed around them. This page covers how they work, when to use them and what to confirm before building.

On this page

When Magento Open Source async and bulk REST APIs fit an ERP or PIM feed

An ERP or PIM that pushes thousands of product, price and stock changes at once needs an intake route that accepts large batches quickly and reports what happened to each one. Magento Open Source's asynchronous and bulk REST endpoints do this by accepting the request, queuing the writes for background consumers, and returning a bulk UUID that the sender can check later. They fit feeds that change continuously and are sent by another system that needs per-batch confirmation and controlled retries. Before you design around them, confirm the endpoint paths, payload limits and queue services against the documentation for the release you will install, starting with the Adobe Commerce system requirements, since message queue and related services differ by release line.

A scheduled CSV import is often the better route when changes arrive as a periodic file that an administrator can review, validate and run inside a maintenance window. A scheduled job fits when the ERP can export files on a timetable but cannot call the store directly. The API route earns its place when the source system drives the timing, updates arrive in small frequent bursts, or the sender must record which individual changes were accepted. Treat a successful response as confirmation that the request was accepted and queued, not as proof the price is live on the storefront. Background processing, indexers and cache refresh can still lag behind, so the feed design should include a status check step and a reconciliation report against the ERP's own records.

Before committing, confirm three things with your team. First, that the message queue, consumer processes and indexers are sized and monitored for the largest batch you expect, including a realistic peak day. Second, that the ERP can resend a batch after a timeout without creating duplicate or conflicting updates, which usually means stable SKUs, idempotent payloads and a clear rule for which system wins. Third, that the documentation for your installed release matches the endpoints and payload formats you plan to call. Read-only calls such as GET requests remain synchronous, so the ERP should expect immediate answers for lookups and reserve bulk status checks for the write path. Test the design with a copy of production-scale data, because the right threshold depends on your catalog and your queue setup more than on the API itself.

How an ERP request moves through the queue to the store

The flow starts at the ERP or PIM client, which sends a bulk or asynchronous request to a Magento REST endpoint on the store side of the trust boundary. The endpoint accepts the payload, records it, and returns a bulk UUID to the caller rather than a finished result. RabbitMQ holds the message, and consumers apply catalog, price and stock changes inside the store. The caller then uses the UUID to check status, so check that the endpoint enforces authentication and that failed messages are visible to operations.

Asynchronous ERP updates pass through the endpoint, the queue and consumers before reaching store data.

Which endpoint type fits each feed

Synchronous calls return the result within the same request. The caller waits while Magento validates and saves the change, then receives a success or error response. This suits changes that another system must confirm before it moves on, such as a single product correction raised by a support agent or a stock adjustment that a dependent workflow reads straight away.

  • Immediate feedback: The response carries validation errors, so the ERP can act on a rejected record at once.
  • Limited volume: Each call occupies a web worker until it completes, so large runs of single-record calls compete with shopper traffic.
  • Simple retries: The caller resends the failed request and sees the outcome directly in the response.
  • Suitable feeds: Individual price overrides, one-off stock corrections and records that other steps depend on.

Check how many synchronous calls the ERP will issue at peak and confirm with your platform team that the web tier can absorb them alongside shoppers.

How to set up async and bulk endpoints step by step

This sequence takes a Magento Open Source store from a confirmed software baseline to ERP-driven asynchronous and bulk writes that can be monitored, retried and operated. Each step closes with a check so the team knows it can move on.

  1. Confirm the release and its supported stack

    Before changing anything, the platform owner records the exact Magento Open Source release in use and checks Adobe's system requirements for that release. For 2.4.9, the listed combinations include PHP 8.5, RabbitMQ 4.3, MySQL 8.4 or MariaDB 12.3 or 11.8, OpenSearch 3, Redis or Valkey 9 and Composer 2.10, and Adobe supports only the listed combinations. Compare the running RabbitMQ and PHP versions against that list, and confirm with Adobe or your engineers any version not shown in the documentation. The step is done when a written compatibility record names each component and its version.

  2. Enable the message queue and consumers

    The platform engineer connects Magento to the RabbitMQ broker, confirms the message queue configuration in the environment file, and enables the asynchronous consumers that process bulk and asynchronous operations. The team should confirm the consumer names that the release documents for asynchronous and bulk operations, then start them in a non-production environment. The check is a test request that is accepted, queued, and processed by a consumer, with the consumer's log showing the message being handled.

  3. Create integration tokens with least-privilege ACLs

    The security or platform lead creates a dedicated integration for the ERP or PIM, not a shared administrator account. Only the resources that the feed needs, such as catalog product updates and stock source updates, are granted in the access control list, and every other resource stays denied. Store the access token in the ERP's secrets store and set a rotation owner. The check is an attempted call to a resource outside the grant, which should be refused, and a call inside the grant, which should succeed.

  4. Map ERP fields to endpoint payloads

    The integration lead writes a field map that links each ERP or PIM attribute to the Magento payload it fills: SKU, store view codes, price scope, stock source codes and quantities. The map records which fields are required, which are optional, how null values are treated and which identifiers the ERP uses for matching. Confirm the payload shape against the current REST documentation for the bulk and async endpoints in your release. The check is a sample record from the ERP that converts to a valid request body with no unmapped fields.

  5. Test status polling with bulk UUIDs

    Submit a small bulk batch through the asynchronous endpoint and record the bulk UUID returned in the response. The integration then polls the bulk status endpoint with that UUID until the operation reports a final state, storing each status and its timestamp. Test one batch that succeeds, one with a deliberately invalid row and one with a row for an unknown SKU, so the team sees how partial failures are reported. The check is that every UUID resolves to a status and that the failed rows appear with a reason the ERP can log.

  6. Design retries around the status results

    The integration team sets retry rules that depend on the failure type. Transient errors, such as a stopped consumer or a timeout, are resubmitted after a pause, while validation errors go to a review queue with the original payload. Retry logic must not resend a successful row, so use stable identifiers so repeated writes are safe. Confirm with the vendor documentation whether the release deduplicates repeated bulk requests. The check is a test where a consumer is stopped, a batch is queued, the consumer is restarted, and the batch completes once without duplicate changes.

  7. Verify consumers run under cron or a supervisor

    The operations lead confirms that the message queue consumers restart automatically after a server reboot or a failed process. Depending on the hosting design, this uses the Magento cron schedule or a process supervisor, and the team should confirm which method the release documents for consumers. Check the consumer status after a planned restart and review the logs for errors. The step is done when a deliberate stop of one consumer is detected by monitoring and the consumer restarts without manual action.

How to design retries so a failed batch does not corrupt the catalog

A bulk catalog, price or stock update can fail partway through, and the ERP will often retry it. The decisions below determine whether a retry repairs the catalog or duplicates and overwrites data, and they should be settled before the integration goes live.

Key every payload by SKU

Build each update so that applying it twice gives the same result as applying it once. Send the full target state for a SKU (price, quantity, status) rather than increments such as "add 5 units", because increments double-count when a retry lands after a partial success. Confirm with your Magento team which fields the bulk endpoints overwrite and which they ignore, and test a replayed batch on staging before production use.

Separate transport failures from data failures

A timeout or a 5xx response does not tell the ERP whether Magento accepted the batch, so it should be retried. A validation error on one SKU, such as an unknown attribute or an invalid price, will fail again on every attempt. Classify errors at the ERP side into retryable and terminal groups, and route terminal records to a review queue with the SKU, payload and error text attached.

Route failed messages to a dead-letter queue

Records that exhaust their retries should move to a dead-letter queue or table instead of blocking the batch behind them. Someone on the merchandising or integration side needs a daily review of that queue with clear ownership. Ask your integration partner how the RabbitMQ consumers behave when a message is rejected, and whether the dead-letter path is monitored with alerts.

Bound retries with exponential backoff

Set a maximum attempt count and an increasing delay between attempts on the ERP side, so a slow Magento consumer does not receive a flood of duplicate requests. Add jitter so that many failed SKUs do not retry at the same moment. Document the limits in the integration runbook and agree them with the ERP owner, since the right values depend on batch size and queue depth in your own environment.

Track status by bulk UUID

Store the bulk UUID returned when a batch is accepted, then poll its status until each operation reports a final state. Record per-operation results, not just the batch result, because a batch can complete with some operations rejected. Confirm the status endpoint's retention period and the query parameters your Magento version supports before you rely on it for audit evidence.

Reconcile after outages

After an outage on either side, compare the ERP's last-known state with Magento's stored values for affected SKUs and resend only the differences. A scheduled reconciliation job, run after each incident and periodically, catches drift that retries miss, such as a message lost after acceptance. Keep reconciliation reports so you can show what changed and when during an investigation.

What buyers ask before building async API integrations

What drives the cost of an asynchronous API integration with Magento Open Source?

The main cost driver is the amount of integration design and testing the ERP or PIM feed requires, not the endpoint calls themselves. Effort rises with the number of field mappings, the number of upstream systems sending data, the volume of catalog, price and stock changes, and how many exception paths the team must handle. Each of these adds mapping rules, queue consumer logic, retry handling and test cases. Costs fall into one-time work (discovery, mapping, build, testing, runbooks) and recurring work (monitoring, upgrades, support). Ask any provider for a quote that lists each upstream system, the field count per entity, the expected message volume and who owns the error queue after go-live.

How long does an async integration project usually take?

Duration depends on how well the source system's data is understood before build starts, and on how many systems must agree on identifiers and ownership of each field. The factors that extend a schedule are unclear product identifiers, late decisions on which system owns price or stock, unfinished ERP export formats, and the need to load and reconcile large historical catalogs before live traffic. Timing also depends on your change approval process and test environment availability. Adobe's release schedule determines which Magento Open Source release line you target, so confirm that version early. A written scope should show each phase and the dependency on your team's availability.

What does our team need to provide for the integration work?

Your team provides the knowledge and access that an outside builder cannot infer from the code. Typically this means named owners for the ERP or PIM data, sample export files covering normal and edge-case records, the field definitions and business rules for price and stock, test store access, and a staging environment that matches the production Magento Open Source stack. You also need someone who can approve the retry and alerting policy and who will act on the failed-message queue after launch. Confirm these responsibilities in the written scope, since delays on any of them usually show up as schedule slippage rather than technical problems.

Can our in-house team build an async REST integration for Magento Open Source?

An in-house team can build it if it has PHP and Magento module experience, has run message queues in production, and can keep the work separate from day-to-day store operations. The hard parts are less about calling the bulk endpoints and more about designing consumer behavior, tracking bulk UUIDs and status, handling partial failures, and reconciling data after an outage. Many teams find that the first build is the easy part and the ongoing support is the difficult part. Assess your skills against those specific tasks, and consider a fixed-scope build with a handover if the team lacks queue or upgrade experience.

How do Magento Open Source upgrades affect a custom async integration?

Upgrades can change the modules, queue consumers, database schema and API behavior that your integration depends on, so every patch or minor release needs regression testing of the integration. Adobe's upgrade guidance recommends applying each patch cycle to stay secure and PCI compliant, and it names customizations and third-party integrations as drivers of upgrade effort. Keep the integration in a custom module with declarative schema, pin the PHP, MySQL or MariaDB, OpenSearch, Redis or Valkey and RabbitMQ versions to the combinations Adobe lists for your release, and run the Upgrade Compatibility Tool before each move. Plan upgrade testing as recurring cost, not a one-time task.

Which Magento Open Source release line should an integration target?

Target a release line that is still under regular support for the whole planned life of the integration. Adobe's lifecycle policy gives each 2.4.x release three years of standard support from general availability, with 2.4.9 listed for end of regular support on May 31, 2029 and 2.4.8 on May 31, 2028. Adobe's release schedule says security patches ship at least annually for all supported lines, and a full patch for the LTS line ships each May. Check the dates on the lifecycle page before choosing, because a build on a line nearing end of support will need an upgrade sooner than the build schedule suggests.

Which parts of the async integration need security review before go-live?

Review the API credentials and integration token scope, the queue broker access controls, the logging of request payloads that may contain customer or pricing data, and the consumer's permissions on the database. Message queues should not be reachable from public networks, and integration tokens should carry only the rights needed for catalog, price and stock writes. If the store is in scope for PCI DSS, record which systems touch cardholder data and confirm the integration does not pass it through the queue. Treat retry logs as sensitive, since failed payloads often contain full records. Confirm the approach with your assessor before the build is final.

What a DeployOpen engagement covers for this integration

A DeployOpen engagement for an ERP or PIM feed into Magento Open Source starts by fixing the scope in writing before any code is written. The first phase inventories which endpoints the integration will call, separating the asynchronous and bulk REST routes used for writes from the synchronous GET calls used for reads, and maps each source field from the ERP or PIM to the Magento attribute, stock source or price record it updates. The scope document also names the queue consumers that will run, the message volume per batch, the error thresholds that stop a run, and the reconciliation reports the operations team will receive. Each of these items becomes a deliverable with an acceptance check, so both sides know when the work is complete.

The build phase covers the queue and consumer configuration on the Magento side, the connector or middleware that submits bulk requests and tracks their UUIDs, and the retry and dead-letter handling for rejected operations. DeployOpen tests this design with failure injection: stopping consumers mid-batch, returning errors from the ERP, submitting malformed rows and forcing duplicate messages, then confirming that the store recovers without double-counting stock or overwriting prices. Reconciliation jobs compare the source system with Magento after each cycle. The handover package includes runbooks for checking bulk status, replaying failed operations and reading consumer logs, along with the written test results. Confirm with your team that they can run each runbook before the engagement closes.

Engagements are fixed-scope, so the quote depends on the number of endpoints, the complexity of the ERP or PIM mapping, the number of test scenarios and the environments involved. Ask for the cost of each deliverable separately, including the failure-injection suite and handover training, so you can see what is one-time and what would recur. Ongoing work is covered by retainers. A retainer can include applying Magento patch releases, upgrading the connector when the platform version changes, and monitoring queue depth, consumer health and reconciliation results, which matter most when message volume grows. Ask the vendor to state in the quote which of these items the retainer covers and how changes to the mapping are priced.

How DeployOpen works on this

DeployOpen plans, implements, tests, documents and supports self-hosted Magento Open Source inside your own infrastructure. For asynchronous and bulk REST API work, we start from your ERP or PIM data flows, agree the written scope before any build begins, and hand over queue consumers, status checks and runbooks your team can operate.

How we scope

  • Map every ERP or PIM feed to the endpoint it will call, including bulk catalog, price and stock payloads.
  • Confirm the Magento Open Source version and the RabbitMQ, Redis or Valkey and PHP combinations you run.
  • Agree in writing which calls stay synchronous, which go through the queue, and who owns retries.

How we build

  • Build custom modules that follow the documented PSR-4 structure and keep queue topology under version control.
  • Implement idempotent consumer logic and bulk UUID status polling with clear failure and retry handling.
  • Test bulk payloads at expected volumes against staging, including consumer restarts and partial failures.

How we hand over

  • Deliver the module code, queue and consumer configuration, and the scope document as a single package.
  • Provide runbooks for checking bulk operation status, clearing stuck messages and replaying failed batches.
  • Train your operations and integration staff on monitoring consumers and reading the logs they will need.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Re-test the integration when you move to a newer 2.4.x release line or patch it.
  • Confirm support terms, response expectations and included hours in the written quote before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.