Request countries

GET https://delivery.ucs.ru/orders/api/v1/countries

Example answer 

{
  "result": {
    "total": 67,
    "offset": 0,
    "limit": 90,
    "items": [
      {
        "id": "05690686-6d3d-4268-a1a2-383d3cc6b8d8",
        "name": "USA"
      },
      {
        "id": "06ea86e0-076c-459f-94d3-0a55ffcd65d9",
        "name": "Dominican Republic"
      },
      {
        "id": "0773efc1-19f5-4bc7-a6e7-8ae14d1836e6",
        "name": "Thailand"
      },
      {
        "id": "144cdd68-986d-40b0-84b5-c00a3b5d3129",
        "name": "Russia"
      },
      {
        "id": "1d534cef-b942-4ee4-8723-02ae76f261bf",
        "name": "Palestine"
       }
    ]
  }
}
CODE

Description of parameters

Name

Type

Description

id guidcountry identifier
namestringname of the country

Request cities

GET/api/v1/countries/{countryId}/cities

Example answer 

{
  "result": {
    "total": 342,
    "offset": 0,
    "limit": 20,
    "items": [
      {
        "id": "1c73e9a6-28db-4913-aefd-a7aadc3dcecd",
        "name": "Neryungri"
      },
      {
        "id": "1da63701-6872-47d1-8aa0-3e0679b69a7c",
        "name": "Noyabrsk"
      },
      {
        "id": "1e04002b-bb99-45fb-92aa-e9e36907706e",
        "name": "Kashira"
      },
      {
        "id": "1f09ed5a-b343-4094-a6bc-9b047852a823",
        "name": "Spassk-Dalniy"
      },
      {
        "id": "21f48823-725c-40b9-a6cd-02388b9f9a0c",
        "name": "Tsiolkovsky (Amur region)"
      }
    ]
  }
}
CODE

Description of parameters

Name

Type

Description

id guidcity ​​identifier
namestringname of the city