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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SuppliersResource(
transport,options?):SuppliersResource
Defined in: sdks/trendyol/src/resources/suppliers.ts:90
Parameters
Section titled “Parameters”transport
Section titled “transport”TrendyolTransport
options?
Section titled “options?”Returns
Section titled “Returns”SuppliersResource
Methods
Section titled “Methods”getAddresses()
Section titled “getAddresses()”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.
Parameters
Section titled “Parameters”options?
Section titled “options?”forceRefresh?
Section titled “forceRefresh?”boolean
Returns
Section titled “Returns”Promise<SupplierAddress[]>
invalidateCache()
Section titled “invalidateCache()”invalidateCache():
void
Defined in: sdks/trendyol/src/resources/suppliers.ts:120
Drop the cache; the next getAddresses() call hits the API.
Returns
Section titled “Returns”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.