Skip to content

LocationsResource

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

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

TrendyolTransport

TokenBucketRateLimiter

LocationsResource

getAzerbaijanCities(): Promise<City[]>

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

Promise<City[]>


getAzerbaijanDistricts(cityId): Promise<District[]>

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

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

string

Promise<City[]>


getCountries(): Promise<Country[]>

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

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

Promise<Country[]>


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

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

string

string | number

Promise<District[]>


getTurkeyCities(): Promise<City[]>

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

Promise<City[]>


getTurkeyDistricts(cityId): Promise<District[]>

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

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

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.