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/.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LocationsResource(
transport,limiter?):LocationsResource
Defined in: sdks/trendyol/src/resources/locations.ts:36
Parameters
Section titled “Parameters”transport
Section titled “transport”TrendyolTransport
limiter?
Section titled “limiter?”TokenBucketRateLimiter
Returns
Section titled “Returns”LocationsResource
Methods
Section titled “Methods”getAzerbaijanCities()
Section titled “getAzerbaijanCities()”getAzerbaijanCities():
Promise<City[]>
Defined in: sdks/trendyol/src/resources/locations.ts:86
Returns
Section titled “Returns”Promise<City[]>
getAzerbaijanDistricts()
Section titled “getAzerbaijanDistricts()”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.
Parameters
Section titled “Parameters”cityId
Section titled “cityId”string | number
Returns
Section titled “Returns”Promise<District[]>
getCitiesByCountry()
Section titled “getCitiesByCountry()”getCitiesByCountry(
countryCode):Promise<City[]>
Defined in: sdks/trendyol/src/resources/locations.ts:99
Parameters
Section titled “Parameters”countryCode
Section titled “countryCode”string
Returns
Section titled “Returns”Promise<City[]>
getCountries()
Section titled “getCountries()”getCountries():
Promise<Country[]>
Defined in: sdks/trendyol/src/resources/locations.ts:44
List all supported countries (Türkiye + AZ + GULF + CEE).
Returns
Section titled “Returns”Promise<Country[]>
getDistrictsByCity()
Section titled “getDistrictsByCity()”getDistrictsByCity(
countryCode,cityId):Promise<District[]>
Defined in: sdks/trendyol/src/resources/locations.ts:103
Parameters
Section titled “Parameters”countryCode
Section titled “countryCode”string
cityId
Section titled “cityId”string | number
Returns
Section titled “Returns”Promise<District[]>
getTurkeyCities()
Section titled “getTurkeyCities()”getTurkeyCities():
Promise<City[]>
Defined in: sdks/trendyol/src/resources/locations.ts:58
Returns
Section titled “Returns”Promise<City[]>
getTurkeyDistricts()
Section titled “getTurkeyDistricts()”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.
Parameters
Section titled “Parameters”cityId
Section titled “cityId”string | number
Returns
Section titled “Returns”Promise<District[]>
getTurkeyNeighborhoods()
Section titled “getTurkeyNeighborhoods()”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).
Parameters
Section titled “Parameters”cityId
Section titled “cityId”string | number
districtId
Section titled “districtId”string | number
Returns
Section titled “Returns”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.