Trendyol & Hepsiburada API: 429, 401

The Trendyol or Hepsiburada integration suddenly starts returning 429, 401 or 403; stock, price and order sync stop. The three codes have three separate causes: the rate limit, the credentials and the request header. Each marketplace's own documentation defines them.

Urgency: High · data sync halted · Category: Contact & Integrations

Field Observations

Stock and prices stop updating in the store panel, and new orders do not reach the central system. The integration's own screen either just says 'failed' or shows no warning at all; the real information is in the HTTP code the marketplace returns.

What you see on screen

HTTP 429 Too Many Requests

Rate limit exceeded — Hepsiburada: about 240 requests per minute; Trendyol: per-minute limits by service group

401 · ClientApiAuthenticationException

Trendyol — failed authorization

401 Unauthorized: password entered incorrectly

Hepsiburada — wrong credentials

403

Trendyol — requests without a User-Agent header are blocked

Observed System Error Signatures

  • After the bulk stock job starts, responses turn to 429 → A · Rate limit exceeded
  • The service key was renewed and 401 began the same day → B · Credentials changed
  • Trendyol response: 401 ClientApiAuthenticationException → B · Credentials changed
  • No User-Agent in the request headers, response 403 → C · User-Agent missing

429, 401 and 403 all show up as 'failed' on the same screen, but they say three different things. Keeping the HTTP code and time of every request in the integration's logs separates the cause at a glance.

Three Potential Root Causes & Differential Tests

A · Rate limit exceeded

Marketplaces apply per-minute request limits. According to Hepsiburada's documentation, a seller can send about 240 requests per minute, and exceeding that returns 429. Trendyol defines limits by service group; once a group's limit is reached, no new request to that group can be sent within the same minute. When bulk stock and price jobs start at the same time, the limit fills up within minutes.

Differential test: Do responses turn to 429 during bulk jobs?

Evidence: 429 during bulk jobs → A

Resolution: Queue requests within the limit

Common anti-pattern fix: Requests are resent immediately after a 429 without waiting; the retries fill the limit further and the queue never drains.

B · Credentials changed

Trendyol returns 401 with ClientApiAuthenticationException on failed authorization; the credentials come from the Integration Information page in the seller panel. On Hepsiburada, when a new service key is created in the seller panel, the documentation says it must also be updated in the integrator's screens. Hepsiburada has also announced a change to the authentication structure of its services.

Differential test: Did 401 start after a key change?

Evidence: 401 after a key change → B

Resolution: Enter the new key in the integration

Common anti-pattern fix: After a 401, yet another new key is generated in the seller panel but never entered into the integration; the problem is not the key but that it was not updated in the integration, so the error continues.

C · User-Agent missing

Trendyol requires a User-Agent header on every request: 'Seller Id - SelfIntegration' for an integration you built yourself, or 'Seller Id - Integrator Company Name' if you use an integrator. According to the documentation, requests without a User-Agent are blocked with a 403 error. A server, library or proxy change can silently drop this header.

Differential test: Is there a User-Agent header?

Evidence: No User-Agent header, response 403 → C

Resolution: Send the header in the right format

Common anti-pattern fix: The 403 is taken for a permissions error and the API credentials are changed; what is actually missing is the request header, so the 403 continues with the new credentials too.

Check it yourself in the first 10 minutes

  1. Count the HTTP codes of the requests in the integration's logs for the last few hours: is it 429, 401 or 403?
  2. If there are 429s, check which job (bulk stock, price, order pull) they started with and at what time.
  3. If there are 401s, check in the seller panel (Trendyol: Integration Information; Hepsiburada: the Integration page) whether the credentials or the service key changed recently.
  4. If there are 403s, check that requests to Trendyol carry a User-Agent header in the 'Seller Id - ...' format.
  5. If you use a ready-made integrator, ask them whether the problem affects all of their stores or only yours.

When to hand it over

Hand it over if the request queue or retry logic has to change in code, if the stock, price and order gaps built up while the integration was down must be fixed in bulk, or if the integration must be moved to Hepsiburada's new authentication structure.

Who resolves it

A backend engineer who knows marketplace integrations. Requests must be queued within the limit, credential changes must reach the integration, the User-Agent header must be sent in the right format, and the HTTP code of every request must be logged.

Impact If Left Unresolved

As long as stock and price are not updated, the marketplace keeps selling on stale data: out-of-stock items are sold, or items are sold at the wrong price. Since orders are not pulled, dispatch deadlines are missed.

Official documentation

Related Concepts & Services

→ B2B White-Label Engineering Desk

Trend Master Akademi Studio & Labs

B2B White-Label Engineering Desk | Tel: +90 534 371 35 73 | Email: info@trendmasterakademi.com

Address: Akdeniz Mah. Sehit Fethibey Cad. Heris Tower No: 55 Ic Kapi No: 091 Konak / Izmir