SDEK Logistics Service Integration into Mobile App

NOVASOLUTIONS.TECHNOLOGY is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
SDEK Logistics Service Integration into Mobile App
Medium
~3-5 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    756
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1052
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    862
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

SDEK Logistics Services Integration into Mobile Apps

SDEK is one of Russia's largest logistics providers with well-documented APIs. Integration at first glance is standard: request rates, create order, track shipment. But SDEK has authentication quirks, legacy and current API versions simultaneously, and multiple endpoints for different tasks.

API v2 vs v1: What to Use

SDEK supports two API versions in parallel. api.cdek.ru/v2/—current, REST with OAuth2. api.cdek.ru/v1/—legacy, XML/SOAP, still works, but new features not added. Use only v2.

Authentication in v2—OAuth2 client credentials flow:

POST https://api.cdek.ru/v2/oauth/token
grant_type=client_credentials&client_id=...&client_secret=...

Returns access_token with TTL 3600 seconds. Cache token on client, refresh 60 seconds before expiry. Don't request new token per request—slow and violates rate limits.

Test environment: api.edu.cdek.ru/v2/ with test credentials EMscd6r9JnFiQ3bLoyjJY6eM78JV9wbo / PjLZkKBHEiLK3YsjtNrt3TGNG0ahs3kG from docs. Always develop in test environment.

Key Endpoints

Calculate tariff:

POST /v2/calculator/tariff
{
  "from_location": {"code": 44},  // SDEK city code, not FIAS
  "to_location": {"code": 270},
  "packages": [{"weight": 1000, "length": 20, "width": 15, "height": 10}]
}

Returns delivery cost per tariff. SDEK city codes—proprietary reference, not matching KLADR. City list: GET /v2/location/cities.

List pickup points:

GET /v2/deliverypoints?city_code=44&type=PVZ

Returns GeoJSON-compatible list with coordinates—directly put markers on map.

Create order:

POST /v2/orders

Minimum required fields: tariff, sender, recipient, items with weight/dimensions, delivery type (door or pickup point). Response contains uuid of order—save for tracking.

Track:

GET /v2/orders?uuid=...

or by track:

GET /v2/orders?cdek_number=...

Returns statuses—event array with timestamp and Russian description.

iOS Implementation

URLSession or Alamofire. Create CDEKApiClient with methods getToken(), calculateTariff(), getPickupPoints(), createOrder(), trackOrder(). Store token in Keychain via KeychainWrapper. Not in UserDefaults—those are credentials.

Pickup point list—cache for a day in Core Data: points change rarely, but requesting on every screen open—unnecessary API load.

Android Implementation

Retrofit + OkHttp. Interceptor for automatic Authorization: Bearer {token} injection in every request. On 401 response—Authenticator refreshes token and automatically retries. This frees business logic from manual token management.

class TokenAuthenticator(private val tokenRepo: TokenRepository) : Authenticator {
    override fun authenticate(route: Route?, response: Response): Request? {
        val newToken = runBlocking { tokenRepo.refreshToken() }
        return response.request.newBuilder()
            .header("Authorization", "Bearer $newToken")
            .build()
    }
}

Pickup Point Map

Display points on Google Maps with clustering (ClusterManager). Tap marker—BottomSheetDialog with address, hours, photo. Find nearest PVZ—ST_DWithin if filtering on server, or locally via sort by Location.distanceTo().

Timeline: three-five days—authentication, tariff calculation, order creation, tracking, PVZ map.