Skip to content

LocationsResource

Defined in: sdks/n11/src/resources/locations.ts:43

Address reference data (SOAP CityService): cities, districts and neighborhoods.

Source: api.n11.com/ws/CityService.wsdl and the 2020 SOAP manual (the new portal has no page for it; n11 said on 2026-10-13 that cities stay on SOAP). Verified on n11’s test store on 2026-10-16.

new LocationsResource(transport): LocationsResource

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

N11Transport

LocationsResource

getCities(): Promise<N11City[]>

Defined in: sdks/n11/src/resources/locations.ts:47

The 81 Turkish cities (GetCities), in n11’s order (alphabetical, by Turkish name).

Promise<N11City[]>


getCity(cityCode): Promise<N11City>

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

One city by plate code (GetCity). A code n11 does not know fails with SELLER_API.invalidAttributeValue (ValidationError). n11 also answers some codes that getCities does not list (99 was “Novosibirsk”).

string | number

Promise<N11City>


getDistricts(cityCode): Promise<N11District[]>

Defined in: sdks/n11/src/resources/locations.ts:70

Districts of a city (GetDistrict), by plate code (N11City.code, not its id). An unknown code answers with an empty list.

string | number

Promise<N11District[]>


getNeighborhoods(districtId): Promise<N11District[]>

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

Neighborhoods of a district (GetNeighborhoods). An unknown id answers with an empty list.

string | number

Promise<N11District[]>

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.