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:77
Returns
Section titled “Returns”Promise<City[]>
getAzerbaijanDistricts()
Section titled “getAzerbaijanDistricts()”getAzerbaijanDistricts(
cityCode):Promise<District[]>
Defined in: sdks/trendyol/src/resources/locations.ts:81
Parameters
Section titled “Parameters”cityCode
Section titled “cityCode”string | number
Returns
Section titled “Returns”Promise<District[]>
getCitiesByCountry()
Section titled “getCitiesByCountry()”getCitiesByCountry(
countryCode):Promise<City[]>
Defined in: sdks/trendyol/src/resources/locations.ts:89
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:93
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(
cityCode):Promise<District[]>
Defined in: sdks/trendyol/src/resources/locations.ts:62
Parameters
Section titled “Parameters”cityCode
Section titled “cityCode”string | number
Returns
Section titled “Returns”Promise<District[]>
getTurkeyNeighborhoods()
Section titled “getTurkeyNeighborhoods()”getTurkeyNeighborhoods(
cityCode,districtCode):Promise<Neighborhood[]>
Defined in: sdks/trendyol/src/resources/locations.ts:68
Parameters
Section titled “Parameters”cityCode
Section titled “cityCode”string | number
districtCode
Section titled “districtCode”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.