List of postal codes of the city


 

The method is designed to get a list of postal codes.
(used instead of the "List of cities" method)

Request for a list of cities

In order to use this process, a GET request should be sent to URL:

Environment

 URL
testinghttps://api.edu.cdek.ru/v2/location/postalcodes
productionhttps://api.cdek.ru/v2/location/postalcodes


Request Parameters

The following parameters are supported:

Field name

Description

Type of field

Mandatory

1codeThe city code to which the postal codes belong.integeryes

Response to a request for a list of settlements

The response body is returned in JSON format:

Field name

Description

Type of field

Mandatory

1codeThe city code to which the postal codes belong.integeryes
2

postal_codes

Postal codes of the city.[ ]yes

Examples of a request for a list of zip codes:

https://api.cdek.ru/v2/location/postalcodes/?code=256


Example of a response to create a client return

{ 
   "code": 256,
   "postal_codes": [ 
        "450001", 
		"450004", 
		"450008", 	
		"450013", 
		"450018", 
		"450026", 
		"450029",
		"450030",
		"450033", 
		"450038", 
		"450043", 
		"450000", 
		"450005", 
		"450044", 
		"450050", 
		"450058",
   ] 
}



 

© 2000—2024, Курьерская компания СДЭК