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:86

Promise<City[]>


getAzerbaijanDistricts(cityId): Promise<District[]>

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

List districts for an Azerbaijani city. Pass the city id (City.id), not code.

string | number

Promise<District[]>


getCitiesByCountry(countryCode): Promise<City[]>

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

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:103

string

string | number

Promise<District[]>


getTurkeyCities(): Promise<City[]>

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

Promise<City[]>


getTurkeyDistricts(cityId): Promise<District[]>

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

List districts for a Turkish city. Pass the city id (City.id) — the nested endpoint keys off Trendyol’s internal id, not the display code, and returns 500 for the code. Verified live.

string | number

Promise<District[]>


getTurkeyNeighborhoods(cityId, districtId): Promise<Neighborhood[]>

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

List neighborhoods for a Turkish district. Pass the ids (City.id, District.id) — not the display codes (those 500).

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.