LogoLogo
  • Welcome to Akinon Documentation
  • Products
    • ACC
    • Omnitron
    • Commerce
    • Order Management System (OMS)
    • Instore
    • Integrator
    • Marketplace Dashboard (MPD)
    • Project Zero (PZ)
    • Seller Center
    • Akifast
    • App Maker
  • API Reference
    • Welcome to Akinon API Reference
  • Omnitron
    • Getting Started
    • Integration
      • Product
        • Product
        • Pre-Product
        • Attribute
        • Attribute Value
        • Attribute Set
        • Product Image
      • Price
        • Price List
        • Product Price
        • Currency Unit Table
      • Stock
        • Stock List
        • Product Stock
      • Order
        • Get Orders
        • Search Order
        • Get Order Detail by Order Number
        • Get Order Item Detail
        • Orders ID Detail Integration
        • Orders Waiting to Send to ERP
        • Update Order and Order Item
        • Stock Reservation Release
        • Order Cancellation
        • Cancellation & Refund Pending Orders
        • Order Discount Items
        • Order Status Codes & Cancellation Statuses
      • Migration
        • Getting Started
        • User Migration
        • Address Migration
        • Old Order Migration
        • Old Order Item Migration
        • View Migration Progress
        • Currency Options
    • PIM
      • Attributes & Sets
      • Mapping
      • Localization
      • Media
    • Catalogue
      • Introduction
      • Price List
      • Stock List
      • Catalogue Item
      • Category Trees
      • Product Collection
      • Product Sorting
    • Channels
      • Introduction
      • Payments
      • Customers
    • Order
      • Getting Started
      • Fulfillment
      • Cancellations & Refunds
    • Retail Stores
      • Retail Stores
    • User Management
      • Roles & Permissions
      • Add & Remove
    • Whippy Ware
      • Introduction
      • Stock
      • Stock Lists
      • Stock List Rules
      • Stock Providers
      • Stock Locations
  • Omnitron OpenAPIs
    • Without Server
      • Customers
      • Reporting
      • Deleted Items
      • Pos
      • AttributeValues
      • Attribute Values
      • Providers
      • LDAPProviders
      • Healthcheck
      • LoyaltyTransactions
      • Policies
      • Exports
      • Dashboard
      • AuthTOTP
      • Price Lists
      • ProductPrices
      • Districts
      • Cities
      • Countries
      • Townships
      • PrometheusMetrics
      • Language
      • Content Types
      • Mappings
      • Applications
      • ApplicationPermissions
      • Error Reports
      • MailTemplates
      • UploadLogo
      • SalesChannelMarketPlaceAttributeSetConfig
      • SalesChannelCancellationRequestImage
      • SalesChannelCities
      • SalesChannelCancellationReasons
      • SalesChannelCargoCompany
      • SalesChannelProductImage
      • SalesChannelAttributeConfig
      • SalesChannelAttributeValueConfig
      • SalesChannelTownships
      • SalesChannelCustomers
      • SalesChannelFailedIntegrations
      • SalesChannelGetStockList
      • SalesChannelRetailStore
      • IntegrationActions
      • SalesChannelOrderShippingInfo
      • SalesChannelBatchRequests
      • SalesChannelAddresses
      • SalesChannelMarketPlaceAttributeSet
      • SalesChannelErrorReports
      • SalesChannelCategoryNodes
      • SalesChannelDistricts
      • SalesChannelProductStock
      • SalesChannelExtraProductStock
      • SalesChannelOrders
      • SalesChannelCancellationPlans
      • SalesChannelExtraProductPrices
      • SalesChannelProduct
      • SalesChannelAttributeSchemas
      • SalesChannelProductCategories
      • SalesChannelCancellationRequests
      • SalesChannelMarketPlaceAttributeValue
      • SalesChannelMappedProduct
      • SalesChannelMarketPlaceAttribute
      • SalesChannelOrderItem
      • SalesChannelProductPrice
      • SalesChannelCreateOrder
      • GetPriceList
      • SalesChannelCountries
      • SalesChannelGetPriceList
      • SalesChannelCategoryTree
    • With Server
      • Customers
      • Reporting
      • Deleted Items
      • Pos
      • AttributeValues
      • Attribute Values
      • Providers
      • LDAPProviders
      • Healthcheck
      • LoyaltyTransactions
      • Policies
      • Exports
      • Dashboard
      • AuthTOTP
      • Price Lists
      • ProductPrices
      • Districts
      • Cities
      • Countries
      • Townships
      • PrometheusMetrics
      • Language
      • Mappings
      • Content Types
      • Applications
      • ApplicationPermissions
      • Error Reports
      • MailTemplates
      • UploadLogo
      • SalesChannelMarketPlaceAttributeSetConfig
      • SalesChannelCancellationRequestImage
      • SalesChannelCities
      • SalesChannelCancellationReasons
      • SalesChannelCargoCompany
      • SalesChannelProductImage
      • SalesChannelAttributeConfig
      • SalesChannelAttributeValueConfig
      • SalesChannelTownships
      • SalesChannelCustomers
      • SalesChannelFailedIntegrations
      • SalesChannelGetStockList
      • IntegrationActions
      • SalesChannelRetailStore
      • SalesChannelOrderShippingInfo
      • SalesChannelBatchRequests
      • SalesChannelAddresses
      • SalesChannelMarketPlaceAttributeSet
      • SalesChannelErrorReports
      • SalesChannelDistricts
      • SalesChannelCategoryNodes
      • SalesChannelProductStock
      • SalesChannelExtraProductStock
      • SalesChannelCountries
      • SalesChannelOrders
      • SalesChannelProduct
      • SalesChannelCancellationPlans
      • SalesChannelExtraProductPrices
      • SalesChannelProductCategories
      • SalesChannelAttributeSchemas
      • SalesChannelCancellationRequests
      • SalesChannelMarketPlaceAttributeValue
      • SalesChannelMappedProduct
      • SalesChannelMarketPlaceAttribute
      • SalesChannelOrderItem
      • SalesChannelProductPrice
      • SalesChannelCreateOrder
      • GetPriceList
      • SalesChannelGetPriceList
      • SalesChannelCategoryTree
  • Commerce
    • Users
      • Getting Started
      • User Management & Authentication
      • Password & OTP Operations
      • User Profile & Segment Management
      • User Payment & Card Management
      • User Orders & Cancellations
      • Anonymous User Orders & Cancellations
      • User Support & Conversation
      • Captcha Validation
      • Currency & Akifast Operations
    • Checkout
      • Payment Related
      • Payment Strategy Related
      • Shipping Related
      • Independent Pages
    • Product
    • User Collections
    • Basket
    • Discount
    • Autocomplete
    • Breadcrumb
    • Pretty URLs
    • Menu
    • Widgets
    • Loyalty Accounts
    • Address Migration
    • Index Configuration
    • Favourite Products
    • User Address
    • Data Warehouse
    • Introduction
      • Filtering Parameters
    • Data Warehouse
    • Default
  • OMS
    • Package Services
    • Package Item Services
    • Package Denial Reason Services
    • Order Services
    • Order Item Services
    • Transfer Order Services
    • Transfer Item Services
    • Channel Services
    • Cancellation Plan Services
    • Cancellation Reason Services
    • Address Setup Services
    • City Services
    • District Services
    • Township Services
    • Stock Location Address Services
    • Webhook Setup Services
    • Webhook Event Services
    • Omnitron Order Webhooks
    • Undelivered Webhook Event Services
    • Inventory Discrepancy Services
    • OMS Setup Services
    • UI Settings Services
    • OMS Audit Events Service
    • Customer Address Services
    • Application Settings Services
    • Content Type Services
    • Customer Services
    • Channel Setup Services
    • Demo Data Service
    • Order Execution Plan Services
    • Invoice Services
    • Localization Services
    • Action Log Services
    • Order Log Services
    • Celery Metrics Service
    • Stock Location Services
    • Stock Location Address Services
    • Stock Location Sender Address Services
    • Stock Location Sender Address Setup Services
    • Cargo Company Condition Services
    • Permission Group Services
  • OMS OpenAPIs
    • Package Services
      • Default
    • Transfer Order Services
      • Default
  • Instore
    • Password Reset Services
  • Integrator
    • Projects
    • Flows
    • Logs
  • Seller Center
    • Languages
    • Categories
    • Introduction
    • Products
    • Packages
    • Orders
    • Claims
    • Shipping Methods
  • Akifast
    • Authentication
  • B2B
    • Quotation
    • Basket
    • Division
    • User
    • Staff User
    • Groups
    • Notification
    • Notification Template
  • Flows
    • Shipment Flows
    • Payment Flows
    • SMS Flows
    • Basket Offer Flows
Powered by GitBook

© 2025 Akinon. All rights reserved.

On this page
  • GET City List
  • GET City List - Detailed

Was this helpful?

  1. OMS

City Services

All services related to cities are listed in this page.

GET City List

This method returns a list of cities with less detailed information.

Path: /api/v1/oms/cities/

Query Parameters

The following query parameters can be used to get information about cities.

Parameter
Data Type
In
Description

token

string

header

The API key of the customer account

Example Request

To get a list of all cities, a GET request should be sent to the /api/v1/oms/cities/ endpoint. In the headers, set the Authorization header to include the token for authentication.

Here's an example of how to make the request in python:

import requests

url = "https://{domain_url}/api/v1/oms/cities/"
token = "f532eXXXXXXXXXXXXXXXXX201XXXXX9332d"

headers = {
    'Content-Type': 'application/json',
    'Authorization': f'Token {token}'
}

response = requests.request('GET', url, headers=headers)

print(response.json())

Example Response (200 OK)

In a successful response with a status code of 200 OK, the API returns all the cities in a JSON format. The response body contains a JSON object with the cities and their associated attributes, which may include ID, name, country, etc.

These attributes are described in the following table.

Parameter
Data Type
Description

pk

integer

The ID of the city

name

string

The name of the city

country

integer

The country ID of the city

is_active

boolean

The status of the city

latitude

decimal

The latitude value of the city

longitude

decimal

The longitude value of the city

This example response serves as a reference to understand the structure and data format returned from this API service.

{
  "count": 81,
  "next": "https://{domain_url}/api/v1/oms/cities/?page=2",
  "previous": null,
  "results": [
    {
      "pk": 1,
      "name": "ADANA",
      "country": 1,
      "is_active": true,
      "longitude": "35.31945700",
      "latitude": "37.00294000"
    },
    {
      "pk": 2,
      "name": "ADIYAMAN",
      "country": 1,
      "is_active": true,
      "longitude": "38.27942400",
      "latitude": "37.76293800"
    },
    {
      "pk": 3,
      "name": "AFYONKARAHİSAR",
      "country": 1,
      "is_active": true,
      "longitude": "30.53876700",
      "latitude": "38.75689100"
    },
    {
      "pk": 4,
      "name": "AĞRI",
      "country": 1,
      "is_active": true,
      "longitude": "43.04948700",
      "latitude": "39.70789900"
    },
    {
      "pk": 5,
      "name": "AKSARAY",
      "country": 1,
      "is_active": true,
      "longitude": "34.02301800",
      "latitude": "38.37125000"
    },
    {
      "pk": 6,
      "name": "AMASYA",
      "country": 1,
      "is_active": true,
      "longitude": "35.82808300",
      "latitude": "40.65117800"
    },
    {
      "pk": 7,
      "name": "ANKARA",
      "country": 1,
      "is_active": true,
      "longitude": "32.85404900",
      "latitude": "39.92076300"
    },
    {
      "pk": 8,
      "name": "ANTALYA",
      "country": 1,
      "is_active": true,
      "longitude": "30.70324900",
      "latitude": "36.88709900"
    },
    {
      "pk": 9,
      "name": "ARDAHAN",
      "country": 1,
      "is_active": true,
      "longitude": null,
      "latitude": null
    },
    {
      "pk": 10,
      "name": "ARTVİN",
      "country": 1,
      "is_active": true,
      "longitude": null,
      "latitude": null
    }
  ]
}

GET City List - Detailed

This method retrieves a list of cities with detailed information.

Path: /api/v1/oms/cities/list-simple/

Query Parameters

The following query parameters can be used to get the information about cities.

Parameter
Data Type
In
Description

token

string

header

The API key of the customer account

Example Request

To get a detailed list of all cities, a GET request should be sent to the /api/v1/oms/cities/list-simple/ endpoint. In the headers, set the Authorization header to include the token for authentication.

Here's an example of how to make the request in python:

import requests

url = "https://{domain_url}/api/v1/oms/cities/list-simple/"
token = "f532eXXXXXXXXXXXXXXXXX201XXXXX9332d"

headers = {
    'Content-Type': 'application/json',
    'Authorization': f'Token {token}'
}

response = requests.request('GET', url, headers=headers)

print(response.json())

Example Response (200 OK)

In a successful response with a status code of 200 OK, the API returns all the cities in a JSON format. The response body contains a JSON object with the cities and their associated attributes, which may include ID, name, country, created_date, modified_date, etc.

These attributes are described in the following table.

Parameter
Data Type
Description

id

integer

The ID of the city

created_date

date

The creation date of the city

modified_date

date

The last modified date of the city

omnitron_id

integer

The Omnitron ID of the city

name

string

The name of the city

country

integer

The country ID of the city

is_active

boolean

The status of the city

latitude

decimal

The latitude value of the city

longitude

decimal

The longitude value of the city

mapping

json

The mapped values of the city

This example response serves as a reference to understand the structure and data format returned from this API service.

{
  "count": 81,
  "next": "https://{domain_url}/api/v1/oms/cities/list-simple/?page=2",
  "previous": null,
  "results": [
    {
      "id": 1,
      "created_date": "2021-07-06T09:07:23.199904Z",
      "modified_date": "2021-07-08T07:45:02.050858Z",
      "omnitron_id": 1,
      "mapping": null,
      "is_active": true,
      "name": "ADANA",
      "longitude": "35.31945700",
      "latitude": "37.00294000",
      "country": 1
    },
    {
      "id": 2,
      "created_date": "2021-07-06T09:07:37.555990Z",
      "modified_date": "2021-07-08T08:11:00.193298Z",
      "omnitron_id": 2,
      "mapping": null,
      "is_active": true,
      "name": "ADIYAMAN",
      "longitude": "38.27942400",
      "latitude": "37.76293800",
      "country": 1
    },
    {
      "id": 3,
      "created_date": "2021-07-06T09:07:58.210581Z",
      "modified_date": "2021-08-19T10:43:05.822467Z",
      "omnitron_id": 3,
      "mapping": null,
      "is_active": true,
      "name": "AFYONKARAHİSAR",
      "longitude": "30.53876700",
      "latitude": "38.75689100",
      "country": 1
    },
    {
      "id": 4,
      "created_date": "2021-07-06T09:08:18.131972Z",
      "modified_date": "2021-10-15T13:32:34.751765Z",
      "omnitron_id": 4,
      "mapping": null,
      "is_active": true,
      "name": "AĞRI",
      "longitude": "43.04948700",
      "latitude": "39.70789900",
      "country": 1
    },
    {
      "id": 5,
      "created_date": "2021-07-06T09:08:33.629586Z",
      "modified_date": "2021-08-19T11:15:12.123820Z",
      "omnitron_id": 5,
      "mapping": null,
      "is_active": true,
      "name": "AKSARAY",
      "longitude": "34.02301800",
      "latitude": "38.37125000",
      "country": 1
    },
    {
      "id": 6,
      "created_date": "2021-07-06T09:08:40.727268Z",
      "modified_date": "2021-09-15T07:54:01.409366Z",
      "omnitron_id": 6,
      "mapping": null,
      "is_active": true,
      "name": "AMASYA",
      "longitude": "35.82808300",
      "latitude": "40.65117800",
      "country": 1
    },
    {
      "id": 7,
      "created_date": "2021-07-06T09:08:53.236809Z",
      "modified_date": "2021-07-09T05:41:43.637325Z",
      "omnitron_id": 7,
      "mapping": null,
      "is_active": true,
      "name": "ANKARA",
      "longitude": "32.85404900",
      "latitude": "39.92076300",
      "country": 1
    },
    {
      "id": 8,
      "created_date": "2021-07-06T09:09:22.402856Z",
      "modified_date": "2021-12-23T07:57:40.705514Z",
      "omnitron_id": 8,
      "mapping": null,
      "is_active": true,
      "name": "ANTALYA",
      "longitude": "30.70324900",
      "latitude": "36.88709900",
      "country": 1
    },
    {
      "id": 9,
      "created_date": "2021-07-06T09:09:41.942917Z",
      "modified_date": "2021-07-06T09:09:41.942941Z",
      "omnitron_id": 9,
      "mapping": null,
      "is_active": true,
      "name": "ARDAHAN",
      "longitude": null,
      "latitude": null,
      "country": 1
    },
    {
      "id": 10,
      "created_date": "2021-07-06T09:09:49.483105Z",
      "modified_date": "2021-07-06T09:09:49.483132Z",
      "omnitron_id": 10,
      "mapping": null,
      "is_active": true,
      "name": "ARTVİN",
      "longitude": null,
      "latitude": null,
      "country": 1
    }
  ]
}
PreviousAddress Setup ServicesNextDistrict Services

Last updated 26 days ago

Was this helpful?