Skip to content

LocationsResource

Defined in: sdks/trendyol/src/resources/locations.ts:33

Trendyol location lookups for building shipment / invoice addresses with the correct city / district / neighborhood codes.

Trendyol exposes these under a different prefix (/integration/member/) — not under /integration/order/ or /integration/product/.

new LocationsResource(transport, limiter?): LocationsResource

Defined in: sdks/trendyol/src/resources/locations.ts:36

TrendyolTransport

TokenBucketRateLimiter

LocationsResource

getAzerbaijanCities(): Promise<City[]>

Defined in: sdks/trendyol/src/resources/locations.ts:77

Promise<City[]>


getAzerbaijanDistricts(cityCode): Promise<District[]>

Defined in: sdks/trendyol/src/resources/locations.ts:81

string | number

Promise<District[]>


getCitiesByCountry(countryCode): Promise<City[]>

Defined in: sdks/trendyol/src/resources/locations.ts:89

string

Promise<City[]>


getCountries(): Promise<Country[]>

Defined in: sdks/trendyol/src/resources/locations.ts:44

List all supported countries (Türkiye + AZ + GULF + CEE).

Promise<Country[]>


getDistrictsByCity(countryCode, cityId): Promise<District[]>

Defined in: sdks/trendyol/src/resources/locations.ts:93

string

string | number

Promise<District[]>


getTurkeyCities(): Promise<City[]>

Defined in: sdks/trendyol/src/resources/locations.ts:58

Promise<City[]>


getTurkeyDistricts(cityCode): Promise<District[]>

Defined in: sdks/trendyol/src/resources/locations.ts:62

string | number

Promise<District[]>


getTurkeyNeighborhoods(cityCode, districtCode): Promise<Neighborhood[]>

Defined in: sdks/trendyol/src/resources/locations.ts:68

string | number

string | number

Promise<Neighborhood[]>

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.