Magento 2 REST API: integration tokens, bulk endpoints and limits

How an app gets into a Magento 2 store, what limits its calls, and how it sets many prices in one request. Every figure comes from Adobe’s own documentation for Adobe Commerce and Magento Open Source.

By the Zikkio team Updated

In short

API
REST, versioned V1 in the path, plus GraphQL
Access
An integration: OAuth 1.0a keys and an access token
Token lifetime
Integration token until revoked; admin token 4 hours
Rate limit
No general limit; optional input limits
Bulk price writes
Many SKUs a call on the price endpoints
Webhooks
Adobe Commerce only, not Magento Open Source

One REST API on both editions

Adobe Commerce, on cloud or on premises, and Magento Open Source all use the same REST API framework, with endpoints versioned in the path, such as /V1/products/base-prices. Next to it there is GraphQL, and an asynchronous bulk API that runs many calls of the same type from one request. Open Source and on-premises stores run on the merchant’s own servers.

Integrations and tokens

A third-party app connects through an integration, which uses OAuth 1.0a: when the merchant activates it, Magento generates a consumer key, a consumer secret, an access token and an access token secret. The integration’s access token lasts until someone revokes it. Using it on its own as a Bearer token is turned off by default, because the token never expires, and Adobe does not recommend turning it back on.

Integrations and tokens
Token Who it is for Lifetime
Integration A third-party app, through OAuth 1.0a Until it is revoked
Admin An admin user 4 hours by default
Customer A customer of the store 1 hour by default

Scroll sideways to see every column.

Rate limits and input limits

Adobe documents no general rate limit for the web APIs: on a store the merchant hosts, the limit is what the server allows. Since 2.4.7 an optional limit covers payment information and order placement only, and it is off by default. Separately, optional input limits cap the items in an array and in a page of results; they are off by default too. Version 2.4.3 shipped with a default of 20 items per array, which a later patch raised.

Configurable and simple products

Magento builds variants as a configurable parent product linked to simple child products, one for each combination of the options that vary, such as size or color. Each child is a product of its own, with its own SKU. The docs set no maximum number of children per configurable product.

Writing prices in bulk

The price endpoints take many SKUs in one call, one endpoint for each kind of price. The docs set no maximum per call, but when the store’s input limits are on, its Input List Limit caps the array. For other changes, the asynchronous bulk API runs many calls of the same type as a single request, through the store’s message queue.

Writing prices in bulk
Price Write Read
Base price /V1/products/base-prices base-prices-information
Special price /V1/products/special-price special-price-information
Tier prices /V1/products/tier-prices tier-prices-information
Cost /V1/products/cost cost-information

Scroll sideways to see every column.

Magento 2: the base price of two SKUs, set in one request.
POST …/V1/products/base-prices
POST /rest/default/V1/products/base-prices
Authorization: Bearer …
Content-Type: application/json

{
  "prices": [
    { "price": 45.00, "store_id": 0, "sku": "LS-001-S" },
    { "price": 45.00, "store_id": 0, "sku": "LS-001-M" }
  ]
}

Pagination and webhooks

Searches page through searchCriteria[pageSize] and searchCriteria[currentPage]. Without pageSize the API returns every match, and when input limits are on, the Maximum Page Size setting caps a page. Magento Open Source sends no webhooks for product changes. Adobe Commerce has two ways: Adobe Commerce Webhooks, which call an external system synchronously, and Adobe I/O Events, from version 2.4.4.

Magento 2 through Zikkio

Sources

The pages of Adobe’s developer documentation and Experience League behind every figure in this guide. Names and trademarks belong to their owners.

Something out of date? Write to info@zikkio.com and we will correct it.

Connect your first store today.

Free plan with 5,000 API calls a month and unlimited stores. No card, and no sales call unless you ask for one.

POST /api/v1/connections
{
  "platform": "wix",
  "shop": "1a2b3c4d-…",
  "client_id": "your-wix-app-id",
  "client_secret": "…"
}
201 Created
{ "data": { "id": 12, "status": "active" } }