City
Defined in: sdks/trendyol/src/types/misc.ts:233
Properties
Section titled “Properties”code:
string
Defined in: sdks/trendyol/src/types/misc.ts:240
countryCode?
Section titled “countryCode?”
optionalcountryCode?:string
Defined in: sdks/trendyol/src/types/misc.ts:249
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.
optionalid?:string
Defined in: sdks/trendyol/src/types/misc.ts:239
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.
optionalname?:string
Defined in: sdks/trendyol/src/types/misc.ts:241
raw:
Record<string,unknown>
Defined in: sdks/trendyol/src/types/misc.ts:250
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.