Look Up Datas | SaaS API Finance Currency Address Country
close

Documentation

2. Endpoints > 2.1. Address


2.1.7. District

Base URL:
  https://api.lookupdatas.com

To Get [TOKEN] go to 1.1. Token


Request - getbystateprovinceid:
  curl 
  --location '[BASEURL]/addressmanagement/api/district/getbystateprovinceid?stateprovinceid=bba6ed2d-8010-4e97-a41c-555b4197e28a' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Response - getbystateprovinceid:
  {
    "header": {
        "globalId": "742da714-489d-4c2e-9d6e-9ccbff6f17d8",
        "isSuccess": true,
        "message": null
    },
    "body": [
        {
            "id": "09ab2f16-8801-4462-9b92-9a035d975ae7",
            "stateProvinceId": "bba6ed2d-8010-4e97-a41c-555b4197e28a",
            "name": "Bahçelievler"
        },
        {
            "id": "154ef7a7-672c-48ea-bacb-8bedf769a1ec",
            "stateProvinceId": "bba6ed2d-8010-4e97-a41c-555b4197e28a",
            "name": "Adalar"
        }
    ]
}

Request - getbyid:
  curl 
  --location '[BASEURL]/addressmanagement/api/district/getbyid?id=09ab2f16-8801-4462-9b92-9a035d975ae7' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Request - getbyname:
  curl 
  --location '[BASEURL]/addressmanagement/api/district/getbyname?name=Bahçelievler&countryId=406FCF8F-8925-4B6A-8B5A-071D7808C971' 
  --header 'Authorization: Bearer [TOKEN]'
                    
Response - getbyid, getbyname:
  {
    "header": {
        "globalId": "f56f56ab-138a-4c57-9d58-4610532936c7",
        "isSuccess": true,
        "message": null
    },
    "body": {
        "id": "09ab2f16-8801-4462-9b92-9a035d975ae7",
        "stateProvinceId": "bba6ed2d-8010-4e97-a41c-555b4197e28a",
        "name": "Bahçelievler"
    }
}