Skip to content

SuppliersResource

Defined in: sdks/trendyol/src/resources/suppliers.ts:84

Trendyol supplier address endpoints.

Critical: Trendyol rate-limits getSuppliersAddresses to 1 request per hour per seller. This resource therefore wraps the endpoint with an in-memory cache (default TTL: 1 hour) so callers can request addresses as often as needed without tripping the limit.

Use { forceRefresh: true } or invalidateCache() only when you know the address list changed in the Partner Panel.

new SuppliersResource(transport, options?): SuppliersResource

Defined in: sdks/trendyol/src/resources/suppliers.ts:90

TrendyolTransport

SuppliersResourceOptions = {}

SuppliersResource

getAddresses(options?): Promise<SupplierAddress[]>

Defined in: sdks/trendyol/src/resources/suppliers.ts:107

List the seller’s registered addresses (shipment, returning, invoice, warehouse).

Returns the cached value if it is still fresh. Concurrent calls share a single in-flight request.

boolean

Promise<SupplierAddress[]>


invalidateCache(): void

Defined in: sdks/trendyol/src/resources/suppliers.ts:120

Drop the cache; the next getAddresses() call hits the API.

void

Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.