Skip to content

City

Defined in: sdks/trendyol/src/types/misc.ts:227

code: string

Defined in: sdks/trendyol/src/types/misc.ts:234


optional countryCode?: string

Defined in: sdks/trendyol/src/types/misc.ts:243

The country the city belongs to — the country code of the lookup that returned it ('TR' for getTurkeyCities, 'AZ' for getAzerbaijanCities, the argument of getCitiesByCountry). Trendyol’s city rows carry no country field (neither the docs nor the prod wire), so the SDK fills it from the request; earlier versions read a wire field that never arrives and always left it undefined.


optional id?: string

Defined in: sdks/trendyol/src/types/misc.ts:233

Trendyol’s internal city id — the value the nested endpoints expect (getTurkeyDistricts(city.id)). Distinct from code (the plate-style display code, e.g. "1" for Adana); passing code there returns 500.


optional name?: string

Defined in: sdks/trendyol/src/types/misc.ts:235


raw: Record<string, unknown>

Defined in: sdks/trendyol/src/types/misc.ts:244

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.