![]() |
Sdek |
Demo token 93a1f6fc-3fa2-40ee-9fae-0ff301df50f0 (The token is valid on average for about three days).
Logistics operatorRegister and receive a token to access the API. The token will be available in your personal account.
date of update: 2024-12-24 05:40
quantity: 8675
JSON:
<?php
// Demo token. (Replace it with your token).
$token = '93a1f6fc-3fa2-40ee-9fae-0ff301df50f0';
$url = 'https://wildtracks.pro/api/transport_companies/all/sdekapi/json/'.$token;
// We receive confirmation via the LINK
$jsonData = file_get_contents($url);
// Checking if the data was received successfully
if ($jsonData === false) {
die('Error receiving data from the URL');
}
// Converting JSON to an associative array
$dataArray = json_decode($jsonData, true);
// Checking if it was possible to convert JSON to an array
if ($dataArray === null) {
die('Error decoding JSON');
}
// Output an array
echo "<pre>";
print_r($dataArray);
echo "</pre>";
?>
XML:
<?php
// Demo token. (Replace it with your token).
$token = '93a1f6fc-3fa2-40ee-9fae-0ff301df50f0';
// URL API
$url = 'https://wildtracks.pro/api/transport_companies/all/sdekapi/xml/'.$token;
// Getting XML data
$xmlData = file_get_contents($url);
// Checking for successful data retrieval
if ($xmlData === FALSE) {
die('Error: Failed to retrieve data.');
}
// Parsing XML data into a SimpleXMLElement object
$xmlObject = simplexml_load_string($xmlData);
if ($xmlObject === FALSE) {
die('Error: Failed to parse XML.');
}
// Convert the object to an array
$arrayData = json_decode(json_encode($xmlObject), true);
// We output the resulting array
echo "<pre>";
print_r($arrayData);
echo "<pre>";
?>
CSV:
<?php
// Demo token. (Replace it with your token).
$token = '93a1f6fc-3fa2-40ee-9fae-0ff301df50f0';
// File URL
$url = 'https://wildtracks.pro/api/transport_companies/all/sdekapi/csv/'.$token;
// Local file name to save to
$localFile = 'sdekapi.csv';
// Open a stream to read a file from a URL
$inputFile = fopen($url, 'r');
// Open a local file for writing
$outputFile = fopen($localFile, 'w');
// Check that both files were opened successfully.
if ($inputFile === FALSE || $outputFile === FALSE) {
die('Error: Failed to open files.');
}
// We read the file line by line and write it to a local file
while (!feof($inputFile)) {
$line = fgets($inputFile); // Read a line from the input file
fwrite($outputFile, $line); // Write a line to the output file
}
// Close both files
fclose($inputFile);
fclose($outputFile);
echo "The file has been successfully uploaded and saved.
The file is saved in the same directory where the PHP script itself is located.";
?>
XLSX:
<?php
// Demo token. (Replace it with your token).
$token = '93a1f6fc-3fa2-40ee-9fae-0ff301df50f0';
// File URL
$url = 'https://wildtracks.pro/api/transport_companies/all/sdekapi/xlsx/'.$token;
// Local file name to save to
$localFile = 'sdekapi.xlsx';
// Initialize cURL with a URL
$ch = curl_init($url);
// Open the file for writing (w+ means that the file will be overwritten)
$outputFile = fopen($localFile, 'w+');
// Check that the file was opened successfully
if ($outputFile === FALSE) {
die('Error: Failed to open file for writing.');
}
// Configuring cURL to Write Data to a File
curl_setopt($ch, CURLOPT_FILE, $outputFile);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // Allow redirects
curl_setopt($ch, CURLOPT_FAILONERROR, true); // Stop on errors
// We execute the request
curl_exec($ch);
// Checking for errors
if (curl_errno($ch)) {
echo 'Error: ' . curl_error($ch);
} else {
echo "The file has been successfully uploaded and saved.
The file is saved in the same directory where the PHP script itself is located.";
}
// Close cURL and the file
curl_close($ch);
fclose($outputFile);
?>
Description of fields:
code | PVZ Code |
status | PVZ activity |
postal_code | The postal code of the city |
name | short address and name of the PVZ |
country_code | Country code based on the SDEC database |
country_code_iso | The country code in the format ISO_3166-1_alpha-2 |
country_name | Country name |
region_code | SDEC Region Code |
region_name | Name of the region |
city_code | The code of the settlement SDEK |
city | Name of the city |
work_time | Operating mode, line of the form |
address | Address (street, house, office) in the specified city |
full_address | Full address indicating the country, region, city, etc. |
phone | Telephone |
note | Note on the office |
coord_x | Estimated latitude (wgs84) |
coord_y | Estimated longitude (wgs84) |
type | Type of PVZ: PVZ — SDEK warehouse, POSTAMAT — SDEK postamat |
owner_code | Company office affiliation: CDEK— the office belongs to SDEK Degrees — the office belongs to the Degrees company Teleport office belongs to Teleport company Tastamat — the office belongs to the Tastamat company Halva office belongs to Halva company PickPoint — the office belongs to the PickPoint company OmniCDEK — the office belongs to OmniCDEK OmniCDEK (franchise) — the office belongs to OmniCDEK (franchisee) OmniCDEK (self-employed) — the office belongs to OmniCDEK (self—employed) No brand - the office belongs to a company without a brand |
is_dressing_room | The presence of a fitting room can take on the following values: 1, true - yes; 0, false - no. |
have_cashless | There is a cashless payment |
have_cash | There is a cash acceptance |
allowed_cod | Cash on delivery is allowed in the PVZ |
take_only | Is the office only a pick-up point, it can take the values: 1, true - yes; 0, false - no. |
is_handout | Is the point of issue, can take the values: 1, true - yes; 0, false - no. |
is_reception | Is there an order acceptance in the office, it can take the values: 1, true - yes; 0, false - no. |
fulfillment | Does the office work with Fulfillment? Parish: 1, true - yes; 0, false - no. |
nearest_station | The nearest station/transport stop |
metro_station | The nearest metro station |
site | Link to this office on the SDEC website |
Email address | |
address_comment | Location Description |
fias_guid | FIAS Area Code |
weight_limit | The maximum weight in kg that an office can accept (values greater than 0 - offices that accept this weight are transmitted; 0 - offices with zero weight are not transmitted; value is not specified - all offices). The minimum weight in kg that the office accepts (when the value is passed, offices with a minimum weight up to the specified value will be displayed) |
work_time_y | Work schedule for the week. A nested tag with the attributes day and periods. |
phone_detail | Phone list |
office_image | All photos of the office (except photos of how to get there). |
work_time_exceptions | Exceptions to the office work schedule |
dimensions | List of maximum cell sizes (only for type = POSTAMAT) |
History of changes
8448 | 2024-07-25 23:00 |
8654 | 2024-07-26 23:00 |
8643 | 2024-07-29 23:00 |
8637 | 2024-07-30 23:00 |
8629 | 2024-08-02 23:00 |
8632 | 2024-08-05 05:40 |
8625 | 2024-08-06 05:40 |
8619 | 2024-08-07 05:40 |
8617 | 2024-08-08 05:40 |
8622 | 2024-08-09 05:40 |
8617 | 2024-08-10 05:40 |
8627 | 2024-08-13 05:40 |
8647 | 2024-08-14 05:40 |
8643 | 2024-08-15 05:40 |
8644 | 2024-08-16 05:40 |
8648 | 2024-08-19 05:40 |
8635 | 2024-08-20 05:40 |
8642 | 2024-08-21 05:40 |
8633 | 2024-08-22 05:40 |
8645 | 2024-08-23 05:40 |
8641 | 2024-08-24 05:40 |
8642 | 2024-08-26 05:40 |
8624 | 2024-08-27 05:40 |
8620 | 2024-08-28 05:40 |
8639 | 2024-08-30 05:40 |
8638 | 2024-08-31 05:40 |
8643 | 2024-09-02 05:40 |
8638 | 2024-09-03 05:40 |
8637 | 2024-09-04 05:40 |
8674 | 2024-09-05 05:40 |
8668 | 2024-09-06 05:40 |
8661 | 2024-09-07 05:40 |
8664 | 2024-09-09 05:40 |
8646 | 2024-09-10 05:40 |
8660 | 2024-09-11 05:40 |
8667 | 2024-09-13 05:40 |
8659 | 2024-09-14 05:40 |
8661 | 2024-09-16 05:40 |
8658 | 2024-09-17 05:40 |
8660 | 2024-09-18 05:40 |
8671 | 2024-09-19 05:40 |
8673 | 2024-09-20 05:40 |
8671 | 2024-09-21 05:40 |
8674 | 2024-09-23 05:40 |
8682 | 2024-09-24 05:40 |
8690 | 2024-09-25 05:40 |
8698 | 2024-09-26 05:40 |
8691 | 2024-09-27 05:40 |
8693 | 2024-09-28 05:40 |
8694 | 2024-09-30 05:40 |
8698 | 2024-10-01 05:40 |
8699 | 2024-10-02 05:40 |
8697 | 2024-10-03 05:40 |
8695 | 2024-10-04 05:40 |
8657 | 2024-10-05 05:40 |
8658 | 2024-10-07 05:40 |
8650 | 2024-10-08 05:40 |
8648 | 2024-10-09 05:40 |
8646 | 2024-10-10 05:40 |
8644 | 2024-10-11 05:40 |
8653 | 2024-10-12 05:40 |
8658 | 2024-10-14 05:40 |
8657 | 2024-10-15 05:40 |
8661 | 2024-10-16 05:40 |
8660 | 2024-10-17 05:40 |
8667 | 2024-10-18 05:40 |
8688 | 2024-10-19 05:40 |
8691 | 2024-10-21 05:40 |
8690 | 2024-10-22 05:40 |
8704 | 2024-10-23 05:40 |
8713 | 2024-10-24 05:40 |
8717 | 2024-10-25 05:40 |
8719 | 2024-10-28 05:40 |
8724 | 2024-10-29 05:40 |
8729 | 2024-10-30 05:40 |
8731 | 2024-10-31 05:40 |
8730 | 2024-11-01 05:40 |
8734 | 2024-11-02 05:40 |
8724 | 2024-11-03 05:40 |
8727 | 2024-11-05 05:40 |
8728 | 2024-11-06 05:40 |
8741 | 2024-11-08 05:40 |
8737 | 2024-11-09 05:40 |
8740 | 2024-11-11 05:40 |
8746 | 2024-11-12 05:40 |
8745 | 2024-11-13 05:40 |
8743 | 2024-11-14 05:40 |
8750 | 2024-11-15 05:40 |
8743 | 2024-11-16 05:40 |
8742 | 2024-11-18 05:40 |
8755 | 2024-11-19 05:40 |
8764 | 2024-11-20 05:40 |
8770 | 2024-11-22 05:40 |
8767 | 2024-11-23 05:40 |
8765 | 2024-11-25 05:40 |
8772 | 2024-11-26 05:40 |
8776 | 2024-11-27 05:40 |
8781 | 2024-11-28 05:40 |
8782 | 2024-11-29 05:40 |
8776 | 2024-12-03 05:40 |
8781 | 2024-12-04 05:40 |
8794 | 2024-12-05 05:40 |
8808 | 2024-12-06 05:40 |
8811 | 2024-12-07 05:40 |
8815 | 2024-12-09 05:40 |
8818 | 2024-12-10 05:40 |
8825 | 2024-12-11 05:40 |
8830 | 2024-12-12 05:40 |
8635 | 2024-12-13 05:40 |
8631 | 2024-12-16 05:40 |
8637 | 2024-12-17 05:40 |
8642 | 2024-12-18 05:40 |
8651 | 2024-12-19 05:40 |
8668 | 2024-12-20 05:40 |
8670 | 2024-12-21 05:40 |
8669 | 2024-12-22 05:40 |
8671 | 2024-12-23 05:40 |
8675 | 2024-12-24 05:40 |