DEVELOPER

Centrum Deweloperów

Wszystko, czego potrzebujesz do integracji z naszą platformą — REST, GraphQL i MCP.

REST /api/v1/orders JSON
GQL query { orders { id } } GraphQL
MCP track_package(number) Tool
Centrum Deweloperów

Dokumentacja REST API

Przeglądaj, testuj i integruj nasze endpointy RESTful. Pełny Swagger UI z interaktywnym kreatorem żądań i obsługą uwierzytelniania.

Dokumentacja GraphQL API

Zapytaj dokładnie o dane, których potrzebujesz, za pomocą naszego API GraphQL. Interaktywny playground z eksploratorem schematu i testowaniem operacji.

Kolumna MCP

Agenci AI i klienci MCP: setup, profile bezpieczeństwa, zatwierdzenia i żywe narzędzia.

Przewodniki integracji

Cztery niezależne ścieżki. Każda jest kompletna sama w sobie: uwierzytelnienie, wycena, rezerwacja, etykieta lub płatność, śledzenie i lista testów. Zostań na ścieżce, którą otworzyłeś.

Wysyłka

Odbiór i dostawa (własna flota)

Utworzenie zamówienia odbioru lub dostawy, druk lokalnej etykiety, śledzenie i odbiór zdarzeń — własna flota, od początku do końca. Wycena jest opcjonalna.

Odbiór lub dostawa → lokalna etykieta → śledzenie → zdarzenia

Etykiety przewoźnika

Lista metod wysyłki, stawka, rezerwacja etykiety przewoźnika, pobranie PDF i śledzenie przesyłki.

Metody → stawka → zakup → PDF → śledzenie

Uniorder: jedno API dla każdej przesyłki

Wyceniaj, twórz, drukuj, śledź i anuluj każdą przesyłkę jednym zestawem endpointów, niezależnie od tego, czy dostarcza ją firma, czy kupowana jest etykieta przewoźnika.

Wycena → rate_id → zamówienie → etykieta → śledzenie → anulowanie

Wycena i zamówienie w jednym przepływie

Wyceń w jednym wywołaniu dostawę własną i wszystkie usługi etykiet przewoźników, a następnie utwórz zamówienie z rate_id wybranej stawki.

Wycena → rate_id → zamówienie → zakup etykiety → anulowanie

Usługi wysyłkowe

Własne usługi wysyłkowe firmy: lista, wycena, zamówienie, płatność i śledzenie.

Usługi → wycena → utworzenie → płatność → śledzenie

Magazynowanie i wydanie

Przyjmij towar do magazynu, opłać, a potem wyślij go na tej ścieżce.

Przyjęcie → płatność → wybór → wydanie → śledzenie
Operacje magazynowe

Operacje magazynowe

Odczyt stanów, awizacja dostaw, wysyłka zleceń wydania, planowanie pracy magazynu i odczyt rozliczeń przez REST, GraphQL i MCP.

Stany → przyjęcie → wydanie → planowanie → rozliczenia → agent AI

Kolumna MCP

MCP 291 tools

Dedykowany przewodnik dla agentów AI i klientów MCP: serwery User vs Developer, profile least-privilege, dry-run, zatwierdzenia i żywy katalog.

Profile i scope Zatwierdzenia ludzkie Zapisy dry-run Developer MCP

Webhooki — Przewodnik Integracji Webhook

Otrzymuj zdarzenia w czasie rzeczywistym od Superroute — zamówienia, zmiany statusu, aktualizacje śledzenia. Z podpisanymi payload-ami, automatycznymi ponowieniami i wbudowanym debuggerem.

WEBHOOKS

OTEP — Otwarty protokół zdarzenia śledzenia

Jedno zdarzenie. Nieskończenie wiele podróży. — Dostawa własna, dostawa zewnętrzna i przesyłki przewoźników łączą się w jedną uporządkowaną oś czasu zdarzeń dla każdego numeru śledzenia.

OTEP

Przewodnik po nowościach integracji

Wszystkie nowości w API i webhookach — idempotentne anulowanie, kanały uzgodnień, podpisy v2, nowe zdarzenia — z gotowymi przykładami. Wszystko w pełni wstecznie kompatybilne.

NEW

Postman Collection

Zawsze aktualna kolekcja generowana na żywo z dokumentacji API — zaimportuj do Postmana i zacznij wywoływać API.

JSON

Słownik i przepływ statusów zamówień

Pełny słownik statusów zamówień i diagramy przejść, generowane na żywo z wdrożonego kodu.

MARKDOWN

Kody zdarzeń śledzenia

Kody zdarzeń śledzenia (strona odbioru i dostawy), mapowanie OTEP, typowe przepływy oraz przewodnik po własnej stronie śledzenia z publicznym API.

TRACKING

Pierwsze kroki

1
Uzyskaj token API

Zaloguj się i przejdź do Ustawienia → Klucze API, aby wygenerować swój osobisty token dostępu.

2
Wybierz API

Użyj REST do standardowych operacji CRUD, GraphQL do elastycznych zapytań danych lub MCP do podłączenia asystentów AI bezpośrednio do danych logistycznych.

3
Zacznij budować

Otwórz interaktywną dokumentację, aby testować punkty końcowe w przeglądarce, a następnie skopiuj fragmenty kodu do swojej aplikacji.

Uwierzytelnianie

Wszystkie trzy API używają tego samego tokena Bearer (uzyskanego przez endpoint logowania). Niektóre endpointy są publiczne i nie wymagają uwierzytelnienia — w tym logowanie, publiczne śledzenie i samodzielna rejestracja kierowców.

Uzyskaj token przez endpoint logowania:

# POST /api/v1/user/login
{ "email": "you@example.com", "password": "••••••••" }

Nagłówek żądania

Authorization: Bearer YOUR_ACCESS_TOKEN
REST Wymagane dla większości endpointów. Logowanie, publiczne śledzenie i samodzielna rejestracja kierowców są publiczne (token nie jest potrzebny).
GQL Wymagany dla uwierzytelnionych operacji. Publiczne operacje (logowanie, śledzenie) działają bez tokenu.
MCP Opcjonalny. Publiczne narzędzia działają bez tokenu; ważny token odblokowuje dostęp do spersonalizowanych danych.
Bazowe URL-e

 

  • REST API https://api.miliexpress.com/api
  • GraphQL https://api.miliexpress.com/api/graphql
  • MCP https://api.miliexpress.com/api/mcp

Którego API użyć?

REST API

Standardowe operacje CRUD, webhooki, zarządzanie zamówieniami/trasami

GraphQL

Elastyczne zapytania, niestandardowe raporty, zagnieżdżone zapytania

MCP

Integracja asystenta AI (Claude, Cursor, Copilot itp.)

Integracja AI

Daj swojemu asystentowi AI logistyczne supermoce. Połącz się przez MCP bez pisania kodu, wywołaj nasze API bezpośrednio z agenta AI lub pobierz plik umiejętności dla pełnego przewodnictwa semantycznego.

Dostępne możliwości
Publiczne śledzenie

Sprawdź status dostawy, oś czasu zdarzeń i potwierdzenie dostawy (podpis/zdjęcie) dowolnej przesyłki po numerze śledzenia.

PUBLICZNE
Zdarzenia operacyjne

Uzyskaj pełną ścieżkę audytu zamówień — kto zmienił jaki status, kiedy, gdzie, ze współrzędnymi GPS i dołączonymi zdjęciami.

WYMAGANE UWIERZYTELNIENIE
Serwis etykiet

Pobierz wyceny wysyłki od przewoźników, twórz etykiety wysyłkowe, pobieraj PDF-y etykiet, anuluj przesyłki i składaj manifesty na koniec dnia.

WYMAGANE UWIERZYTELNIENIE
Dostawa lokalna

Twórz zamówienia dostawy/odbioru, buduj zoptymalizowane trasy dla wielu kierowców i zarządzaj pełnym przepływem dostawy ostatniej mili.

WYMAGANE UWIERZYTELNIENIE
END USER Serwer MCP dla użytkowników

Dla asystentów AI używanych przez Twoich klientów. Wklej konfigurację, a Twoje AI może natychmiast śledzić przesyłki — bez kodowania.

ENDPOINT
https://api.miliexpress.com/api/mcp
Dostępne narzędzia (291 żywych narzędzi)
track_package Track a package by its tracking number. Returns delivery status, trackin... PUBLICZNE
otep_tracking Get the unified OTEP (Open Tracking Event Protocol) timeline for a track... PUBLICZNE
get_capabilities List MCP tools available to the current connection, with risk level, req... PUBLICZNE
get_orders List orders with filtering and pagination. Returns order details includi... AUTH
get_order_detail Get full details of a specific order by ID, including address, status, p... AUTH
find_order Fuzzy-find orders across tracking number, external tracking, ref, recipi... AUTH
get_operation_events Get the full audit trail for orders — every status change, who performed... AUTH
create_order Create a delivery/pickup order. D=delivery (warehouse→customer), P=picku... AUTH
cancel_order Cancel an existing order by order ID. Only works for orders not yet deli... confirm
bulk_create_orders Create up to 100 delivery orders in one call. Returns a per-order succes... confirm
reroute_to_address Change the delivery address of an order that has not been picked up yet:... confirm
update_delivery_instruction Update only the delivery_instruction field on an existing order (PATCH).... AUTH
update_order_note Update only the internal note field on an existing order (PATCH). AUTH
update_time_window_by_refs Bulk-update delivery time windows (and optional schedule_date) for order... AUTH
hold_order Put an order on HOLD so it is not dispatched until release_order. HIGH-R... confirm
release_order Release an order from HOLD back to NEW_ORDER. HIGH-RISK: requires confir... confirm
propose_write Queue a write/high-risk tool for human approval instead of executing it.... AUTH
list_pending_approvals List pending MCP write approvals for this business (or mine_only). AUTH
approve_pending_write Approve and execute a pending write proposal. HIGH-RISK: requires confir... confirm
reject_pending_write Reject a pending write proposal without executing it. AUTH
get_routes List delivery routes with their status, assigned driver, and order count... AUTH
get_route_detail Get one route with its stop/order list. Prefer this over get_routes when... AUTH
get_drivers List drivers for the authenticated business (ids, names, capacity defaul... AUTH
get_driver_routes_today Orders assigned to a driver on a given date (defaults to today). Useful... AUTH
get_build_route_options List routing engines, balance modes, capacity types, and defaults before... AUTH
build_route Build/optimize a delivery route (POST /api/v3/client/build-route). HIGH-... confirm
order_snapshot One-call order context for support: order detail + operation events + pu... AUTH
list_exceptions List failed/returned/exception-like orders for a schedule date (default... AUTH
get_shipping_methods List available shipping carriers/methods. Returns IDs and names — use th... AUTH
get_shipping_rate Get a shipping cost quote. Dry-run — no label created. Returns rate opti... AUTH
create_shipping_label Book a shipment with a carrier and generate a shipping label with tracki... AUTH
quote_and_ship One-shot: rate across all enabled carriers, pick the best one by strateg... AUTH
compare_all_carriers Get rate quotes from every enabled carrier for the same shipment, in one... AUTH
search_address Search and resolve addresses by postal code or free-text query. Returns... AUTH
daily_digest One-call summary of today's logistics activity: total orders, by status,... AUTH
datacenter_subjects Data Center: the subjects the user may report on (orders, stops, runs, p... AUTH
datacenter_templates Data Center: ready-made report definitions (driver performance, delivery... AUTH
datacenter_query Data Center: run a report through the semantic layer under the user's ow... AUTH
datacenter_reports Data Center: the user's saved reports, each with its definition. AUTH
datacenter_run_report Data Center: run one of the user's saved reports now; its date preset (l... AUTH
datacenter_save_report Data Center: save a report for the user. definition = {request (as datac... AUTH
get_orders_summary Aggregate order metrics over a time window: counts by status, top carrie... AUTH
get_account_credits Get the authenticated customer's wallet balance, currency, and recent to... AUTH
get_warehouses List WMS warehouses available to the authenticated business. AUTH
get_inventory Query WMS inventory (POST /api/v1/wms/inventory). Pass filters supported... AUTH
wms_list_warehouses List the warehouses this login works in (staff) or stores goods in (good... AUTH
wms_list_locations List storage locations (shelf grids) of a warehouse with their zone, set... AUTH
wms_get_warehouse_settings Get a warehouse's WMS settings (receiving, putaway, picking and task opt... AUTH
wms_list_license_plates List license plates (pallets / totes) of a warehouse. (GET /api/v1/wms-c... AUTH
wms_get_license_plate Get one license plate with its contents and location. (GET /api/v1/wms-c... AUTH
wms_resolve_license_plate Find a license plate by its scanned code. (GET /api/v1/wms-core/license-... AUTH
wms_query_inventory Query stock on hand grouped by SKU, location, lot or goods owner, with a... AUTH
wms_list_movements List stock movements (the inventory ledger): every receipt, putaway, pic... AUTH
wms_get_allocation Stock allocation overview of a warehouse: which SKUs are reserved for or... AUTH
wms_get_sku_allocation Where one SKU's stock sits and which orders hold it. (GET /api/v1/wms-co... AUTH
wms_stock_aging Stock aging of a warehouse: how long stock has been on hand, by age band... AUTH
wms_expiry_report Lots that have expired or expire within the given days. (GET /api/v1/wms... AUTH
wms_trace Trace a serial number, or a lot of a SKU, through receipts, moves and sh... AUTH
wms_get_lot_tracking Lot / serial tracking settings and lots of one SKU. (GET /api/v1/wms-cor... AUTH
wms_get_lot_hold_impact What holding a lot would affect: stock, open orders and reservations. (G... AUTH
wms_list_stock_freezes List stock freezes (holds that stop stock from being picked or moved). (... AUTH
wms_get_stock_freeze Get one stock freeze with what it holds. (GET /api/v1/wms-core/stock-fre... AUTH
wms_list_stock_adjustments List stock adjustment requests and their review status. (GET /api/v1/wms... AUTH
wms_list_channel_stock Stock shared to each sales channel (store / platform) and its rules. (GE... AUTH
wms_get_channel_stock Stock and rules of one sales channel. (GET /api/v1/wms-core/channel-stoc... AUTH
wms_stock_days Daily stock on hand (for storage billing and trends). (GET /api/v1/wms-c... AUTH
wms_stock_months Monthly stock report: opening, in, out and closing per SKU. (GET /api/v1... AUTH
wms_replenishment_suggestions Suggested pick-face min / max per location from recent demand. (GET /api... AUTH
wms_list_replenishment_settings Pick-face min / max replenishment settings per location. (GET /api/v1/wm... AUTH
wms_list_pack_levels Pack levels (each, inner, case, pallet) of a SKU with dimensions and ver... AUTH
wms_dimension_repair_list SKUs whose weight or dimensions are missing or doubtful, to measure. (GE... AUTH
wms_my_stock Goods owner: my stock per SKU and warehouse. (GET /api/v1/wms-core/my-st... AUTH
wms_my_products Goods owner: my SKUs (item master). (GET /api/v1/wms-core/my-products) AUTH
wms_get_my_product Goods owner: one of my SKUs with its pack levels and stock. (GET /api/v1... AUTH
wms_my_movements Goods owner: stock movements of my goods. (GET /api/v1/wms-core/my-movem... AUTH
wms_my_notifications Goods owner: warehouse notifications about my goods (arrivals, differenc... AUTH
wms_list_inbound_orders List inbound orders (ASNs) with status and expected date. (GET /api/v1/w... AUTH
wms_get_inbound_order Get one inbound order with lines, received quantities, differences and a... AUTH
wms_list_inbound_cartons Cartons of an inbound order and which are received. (GET /api/v1/wms-cor... AUTH
wms_inbound_schedule Inbound arrivals and dock appointments of a warehouse on a day. (GET /ap... AUTH
wms_list_dock_parcels Parcels registered at the dock that are not yet matched to an inbound or... AUTH
wms_get_dock_parcel Get one dock parcel. (GET /api/v1/wms-core/dock-parcels/{dock_parcel_id}... AUTH
wms_list_inspections List quality inspections of received goods. (GET /api/v1/wms-core/inspec... AUTH
wms_get_inspection Get one quality inspection with its results. (GET /api/v1/wms-core/inspe... AUTH
wms_list_suppliers List suppliers, optionally with delivery scores. (GET /api/v1/wms-core/s... AUTH
wms_list_returns List customer returns received or expected at a warehouse. (GET /api/v1/... AUTH
wms_get_return Get one return with its lines and dispositions. (GET /api/v1/wms-core/re... AUTH
wms_list_outbound_requests List outbound requests (orders sent to the warehouse to ship). (GET /api... AUTH
wms_get_outbound_request Get one outbound request with its lines and status. (GET /api/v1/wms-cor... AUTH
wms_list_outbound_orders List outbound orders (picking documents) of the warehouses this login wo... AUTH
wms_get_outbound_order Get one outbound order with its lines (picked, remaining), packages, del... AUTH
wms_get_outbound_delivery Shipping state of an outbound order: carrier, labels, ship and handover.... AUTH
wms_get_outbound_parcels Parcels of an outbound order with tracking numbers. (GET /api/v1/wms-cor... AUTH
wms_get_outbound_fulfilment Fulfilment mode of an outbound order (parcel, bulk, replenish) and why.... AUTH
wms_get_outbound_handling_units Cartons and pallets of a bulk outbound order. (GET /api/v1/wms-core/outb... AUTH
wms_get_outbound_handover Pickup handover of an outbound order: who collects, what is ready. (GET... AUTH
wms_get_outbound_route Outbound queue, channel and split strategy chosen for an outbound order.... AUTH
wms_get_outbound_packages Packages an outbound order is split into for picking. (GET /api/v1/picki... AUTH
wms_list_problem_orders List outbound orders with problems (shortages, address, carrier, interce... AUTH
wms_get_problem_order Get one problem order with its history. (GET /api/v1/wms-core/problem-or... AUTH
wms_list_short_picks List short picks (lines picked less than ordered). (GET /api/v1/wms-core... AUTH
wms_fill_rate Order and line fill rate of a warehouse over a period. (GET /api/v1/wms-... AUTH
wms_list_cutoff_rules Carrier cutoff times of a warehouse. (GET /api/v1/wms-core/cutoff-rules) AUTH
wms_list_outbound_containers List outbound containers (cages / sacks of parcels for a carrier). (GET... AUTH
wms_get_outbound_container Get one outbound container with its parcels. (GET /api/v1/wms-core/outbo... AUTH
wms_list_loads List dock loads (trucks loading or unloading). (GET /api/v1/wms-core/loa... AUTH
wms_get_load Get one dock load with its units and progress. (GET /api/v1/wms-core/loa... AUTH
wms_routes_waiting_for_load Delivery routes whose parcels wait to be loaded. (GET /api/v1/wms-core/l... AUTH
wms_list_pack_sessions Open packing sessions of a warehouse. (GET /api/v1/wms-core/pack-session... AUTH
wms_list_pick_candidates Outbound orders ready to be grouped into a pick wave. (GET /api/v1/picki... AUTH
wms_list_pick_waves List pick waves of a warehouse. (GET /api/v1/picking/waves) AUTH
wms_get_pick_wave Get one pick wave with its batches and orders. (GET /api/v1/picking/wave... AUTH
wms_get_pick_wave_estimate Release estimate of a pick wave: pick time, walking and finish time. (GE... AUTH
wms_list_pick_batches Pick batches waiting or in progress. (GET /api/v1/picking/batches) AUTH
wms_get_pick_batch Get one pick batch with its pick lines. (GET /api/v1/picking/batches/{ba... AUTH
wms_list_outbound_queues Outbound queues and their rules. (GET /api/v1/outbound-routing/queues) AUTH
wms_list_tasks List warehouse tasks (putaway, replenishment, relocate, count). (GET /ap... AUTH
wms_list_task_orders List task orders (receive, putaway, pick, move work orders). (GET /api/v... AUTH
wms_get_task_order Get one task order with its lines and reservations. (GET /api/v1/wms-cor... AUTH
wms_task_order_estimates Finish-time estimates of open task orders with the given number of worke... AUTH
wms_list_task_reservations Stock reservations held by task orders. (GET /api/v1/wms-core/task-reser... AUTH
wms_list_cycle_counts List cycle counts of a warehouse. (GET /api/v1/wms-core/cycle-counts) AUTH
wms_get_cycle_count Get one cycle count with its lines and differences. (GET /api/v1/wms-cor... AUTH
wms_cycle_count_accuracy Cycle count accuracy by month. (GET /api/v1/wms-core/cycle-count-accurac... AUTH
wms_stock_accuracy Location accuracy summary of a warehouse (how often counts match the sys... AUTH
wms_stock_accuracy_locations Location accuracy per location, least accurate first. (GET /api/v1/wms-c... AUTH
wms_zone_load Zone load heatmap: expected work per zone and hour. (GET /api/v1/wms-cor... AUTH
wms_list_transfers List stock transfers between warehouses. (GET /api/v1/wms-core/transfers... AUTH
wms_get_transfer Get one transfer with its lines. (GET /api/v1/wms-core/transfers/{transf... AUTH
wms_transfers_in_transit Transfers on their way to a warehouse. (GET /api/v1/wms-core/transfers/i... AUTH
wms_list_assembly_orders List kitting / assembly orders. (GET /api/v1/wms-core/assembly-orders) AUTH
wms_get_assembly_order Get one assembly order. (GET /api/v1/wms-core/assembly-orders/{assembly_... AUTH
wms_assembly_suggestions Kits worth assembling ahead from demand and component stock. (GET /api/v... AUTH
wms_list_vas_orders List value-added service orders (labelling, bundling, inspection work).... AUTH
wms_get_vas_order Get one value-added service order. (GET /api/v1/wms-core/vas-orders/{vas... AUTH
wms_list_fba_relabel_orders List FBA relabel orders. (GET /api/v1/wms-core/fba-relabel-orders) AUTH
wms_get_fba_relabel_order Get one FBA relabel order. (GET /api/v1/wms-core/fba-relabel-orders/{fba... AUTH
wms_list_recalls List product recalls. (GET /api/v1/wms-core/recalls) AUTH
wms_get_recall Get one recall with the stock and shipments it covers. (GET /api/v1/wms-... AUTH
wms_list_put_walls Put walls of a warehouse and their slots. (GET /api/v1/wms-core/put-wall... AUTH
wms_list_slotting_runs Slotting runs of a warehouse, newest first: proposals to move SKUs to lo... AUTH
wms_get_slotting_run Get one slotting run with its proposals, best first: SKU, from and to lo... AUTH
wms_alerts Warehouse alerts: late tasks, stuck orders, stock problems. (GET /api/v1... AUTH
wms_dashboard The warehouse dashboard: open and overdue inbound, outbound, tasks, exce... AUTH
wms_labor_report Productivity report per worker and activity: lines, units, earned and ac... AUTH
wms_get_labor_standards A warehouse's labor standards (seconds per line and per unit by activity... AUTH
wms_get_release_estimate_coefficients Release-estimate coefficients for pick and task work (in use, defaults,... AUTH
wms_get_schedule_suggestion Suggested work schedule now: who does which open pick batch, task order... AUTH
wms_get_dock_slots The earliest free dock slots for a new inbound or outbound appointment,... AUTH
wms_preview_task_trip The mixed trip claiming a warehouse task or task order would build now:... AUTH
wms_get_task_trip One mixed trip: its tasks in walk order with their own status, the walk... AUTH
wms_list_docks A warehouse's docks with the floor plan dock fixture each is linked to,... AUTH
wms_get_dock Get one dock with its floor plan link, role, type and opening hours. (GE... AUTH
wms_list_shifts A warehouse's shifts: name, start, end (crossing midnight when the end i... AUTH
wms_get_shift Get one warehouse shift. (GET /api/v1/wms-core/shifts/{shift_id}) AUTH
wms_get_shift_roster One week of a warehouse's shift roster: who is on which shift, whether t... AUTH
wms_owner_health Per goods owner health: late inbound, shortages, problem orders. (GET /a... AUTH
wms_sla_report Outbound SLA report: shipped on time by day, carrier and owner. (GET /ap... AUTH
wms_callback_failures Failed callbacks to goods owners' systems. (GET /api/v1/wms-core/callbac... AUTH
wms_list_tickets List warehouse tickets (questions and issues between the warehouse and g... AUTH
wms_list_import_batches List the warehouse import batches (shelf, grid, SKU, replenishment, prod... AUTH
wms_get_import_batch Get one warehouse import batch: status, counts, errors and the import's... AUTH
wms_import_batch_errors The errors and warnings of one warehouse import batch. (GET /api/v1/wms-... AUTH
wms_list_customers List the client's customers that use the warehouse system (goods owners)... AUTH
wms_list_customer_candidates Customers of the client that do not use the warehouse system yet, to tur... AUTH
wms_get_ticket Get one ticket with its messages. (GET /api/v1/wms-core/tickets/{ticket_... AUTH
wms_list_billing_statements List warehouse billing statements (invoices to goods owners). (GET /api/... AUTH
wms_get_billing_statement Get one billing statement with totals by charge item. (GET /api/v1/wms-c... AUTH
wms_get_billing_statement_charges Every charge line of a billing statement. (GET /api/v1/wms-core/billing-... AUTH
wms_list_charges Warehouse charges accrued (storage, handling, value-added) over a period... AUTH
wms_list_charge_entries Manual charge entries (one-off fees and credits). (GET /api/v1/wms-core/... AUTH
wms_list_rate_cards List warehouse rate cards (price lists). (GET /api/v1/wms-core/rate-card... AUTH
wms_get_rate_card Get one rate card with its prices. (GET /api/v1/wms-core/rate-cards/{rat... AUTH
wms_resolve_rate_card Which rate card and prices apply to a goods owner in a warehouse. (GET /... AUTH
wms_internal_cost Internal cost of warehouse work over a period. (GET /api/v1/wms-core/int... AUTH
wms_my_prices Goods owner: the warehouse prices that apply to me. (GET /api/v1/wms-cor... AUTH
wms_create_inbound_order Create an inbound order (ASN): the goods a warehouse should expect. rele... AUTH
wms_update_inbound_order Change an inbound order that is not yet received. (PUT /api/v1/wms-core/... AUTH
wms_release_inbound_order Release a draft inbound order to the warehouse. (POST /api/v1/wms-core/i... AUTH
wms_cancel_inbound_order Cancel an inbound order that has nothing received. (POST /api/v1/wms-cor... confirm
wms_book_inbound_appointment Book or move the dock appointment of an inbound order. (PUT /api/v1/wms-... AUTH
wms_cancel_inbound_appointment Cancel the dock appointment of an inbound order. (DELETE /api/v1/wms-cor... AUTH
wms_create_supplier Create a supplier. (POST /api/v1/wms-core/suppliers) AUTH
wms_update_supplier Change a supplier. (PUT /api/v1/wms-core/suppliers/{supplier_id}) AUTH
wms_create_return Announce a customer return the warehouse should expect. (POST /api/v1/wm... AUTH
wms_quote_outbound_request Quote the shipping and warehouse charges of an outbound request before c... AUTH
wms_create_outbound_request Create an outbound request: goods the warehouse should pick, pack and sh... AUTH
wms_cancel_outbound_request Cancel an outbound request that has not shipped. (POST /api/v1/wms-core/... confirm
wms_change_outbound_route Change the outbound queue or shipping service of an outbound order, or r... AUTH
wms_change_fulfilment_mode Change the fulfilment mode (parcel, bulk, replenish) of an outbound orde... AUTH
wms_answer_problem_order Answer the question of a problem order (goods owner or staff) with one o... AUTH
wms_approve_problem_order Approve the proposed solution of a problem order. (POST /api/v1/wms-core... AUTH
wms_withdraw_problem_order Withdraw a problem order that is no longer a problem. (POST /api/v1/wms-... AUTH
wms_resolve_short_pick Decide what happens to a short-picked line. (POST /api/v1/wms-core/short... AUTH
wms_create_pick_wave Group outbound orders (or a day's route drivers) into a pick wave with a... AUTH
wms_release_pick_wave Release a pick wave: its batches become pickable on the handhelds. (POST... AUTH
wms_cancel_pick_wave Cancel a pick wave that has not been picked; its orders return to the ca... confirm
wms_plan_tasks Create the replenishment tasks a warehouse needs now (pick faces under t... AUTH
wms_save_labor_standards Set a warehouse's labor standards per activity (seconds per line and per... AUTH
wms_save_release_estimate_coefficients Adopt the last fit of the pick or task release-estimate coefficients, or... AUTH
wms_apply_schedule_suggestion Assign jobs of the schedule suggestion (items of job and user_id from wm... AUTH
wms_build_task_trip Claim a warehouse task or task order for the signed-in worker together w... AUTH
wms_drop_task_trip_item Drop one task of the worker's mixed trip before any of it is done; it go... AUTH
wms_save_dock Set a dock's floor plan dock fixture (its role), dock type and weekly op... AUTH
wms_create_shift Create a warehouse shift: name, start, end (an end before the start cros... AUTH
wms_update_shift Change a warehouse shift; only the fields sent change. (PUT /api/v1/wms-... AUTH
wms_delete_shift Delete a warehouse shift and take it off every roster week. (DELETE /api... AUTH
wms_save_shift_roster Set one week of a warehouse's shift roster (entries of shift_id and user... AUTH
wms_create_task_order Create a task order (move, putaway, pick or other work order) for the ha... AUTH
wms_assign_task_order Assign a task order to a worker. (POST /api/v1/wms-core/task-orders/{tas... AUTH
wms_cancel_task_order Cancel a task order and release its reservations. (POST /api/v1/wms-core... confirm
wms_create_cycle_count Create a cycle count of locations or a shelf; counting is done on the ha... AUTH
wms_plan_cycle_counts Create the cycle counts due by the warehouse's count plan (ABC frequency... AUTH
wms_cancel_cycle_count Cancel a cycle count; nothing counted is applied. (POST /api/v1/wms-core... confirm
wms_generate_slotting Generate slotting proposals for a warehouse (nothing moves). Replaces th... AUTH
wms_approve_slotting_recommendation Approve one slotting proposal: it is re-checked and creates relocate tas... AUTH
wms_reject_slotting_recommendation Reject one slotting proposal. Managers only. (POST /api/v1/wms-core/slot... AUTH
wms_approve_slotting_run Approve every still-proposed proposal of a slotting run; each creates re... confirm
wms_create_stock_freeze Freeze stock (a SKU, location, license plate, lot or serial) so it is no... confirm
wms_lift_stock_freeze Lift a stock freeze. (POST /api/v1/wms-core/stock-freezes/{freeze_id}/li... confirm
wms_hold_lot Hold a lot: it is not picked until released. Check wms_get_lot_hold_impa... confirm
wms_release_lot Release a held lot. (POST /api/v1/wms-core/lots/{lot_id}/release) confirm
wms_create_recall Open a recall of a lot: holds its stock and lists the shipments to notif... confirm
wms_create_transfer Create a stock transfer from one warehouse to another; picking and recei... AUTH
wms_cancel_transfer Cancel a transfer that has not shipped. (POST /api/v1/wms-core/transfers... confirm
wms_create_assembly_order Create a kitting / assembly order. (POST /api/v1/wms-core/assembly-order... AUTH
wms_release_assembly_order Release a draft assembly order to the floor. (POST /api/v1/wms-core/asse... AUTH
wms_cancel_assembly_order Cancel an assembly order. (POST /api/v1/wms-core/assembly-orders/{assemb... confirm
wms_create_vas_order Create a value-added service order (labelling, bundling, inspection work... AUTH
wms_create_ticket Open a ticket on a warehouse document (question or issue between the war... AUTH
wms_comment_ticket Add a message to a ticket. (POST /api/v1/wms-core/tickets/{ticket_id}/co... AUTH
wms_set_ticket_status Change the status of a ticket. (PUT /api/v1/wms-core/tickets/{ticket_id}... AUTH
wms_rerun_import_batch Queue a warehouse import batch again from its saved copy (a batch that d... AUTH
wms_delete_import_batch Roll a warehouse import batch back as a whole: records it created are de... confirm
wms_switch_customer Turn the warehouse system on or off for a customer (customer_id from wms... confirm
wms_create_my_product Goods owner: add a SKU to my item master. Weight and dimensions as figur... AUTH
wms_update_my_product Goods owner: change one of my SKUs. (PUT /api/v1/wms-core/my-products/{p... AUTH
list_datasets List custom datasets available to the business. AUTH
get_dataset Get one dataset by id (metadata/columns). AUTH
list_dataset_groups List groups inside a dataset. AUTH
search_dataset_records Search records across groups in a dataset (POST .../search). AUTH
list_alliances List alliances the authenticated business belongs to. AUTH
get_alliance Get one alliance by id. AUTH
list_alliance_members List members of an alliance. AUTH
list_accessible_clients List clients accessible via alliance partnerships. AUTH
quote_delivery Get the local delivery price for a shipment before creating the order (P... AUTH
print_local_label Get the printable label of a local delivery order as a base64 PDF, with... AUTH
bulk_create_orders_async Queue a large batch of delivery orders for creation (POST /api/v1/client... confirm
get_async_batch_result Read the status and per-order results of a batch queued with bulk_create... AUTH
get_shipping_detail Get the carrier shipping detail of a label order: tracking numbers, pric... confirm
download_shipping_label Download the label PDF of an order as base64 (POST /api/v1/shipping/getS... confirm
cancel_shipping_label Cancel (void) a carrier label with the carrier (POST /api/v1/labelservic... confirm
submit_shipping_information Submit the shipping information of one or more label orders to their car... confirm
end_of_day Close the day with the carriers: submit the shipping information of ever... confirm
uniorder_rate Quote one shipment across self delivery and, with quote_labels=true, eve... AUTH
uniorder_create Create an order at a rate_id from uniorder_rate (POST /api/v1/uniorder).... AUTH
uniorder_get Read one uniorder order in the uniorder shape (GET /api/v1/uniorder/{ord... AUTH
uniorder_label Get the label PDF of a uniorder order, base64 (GET /api/v1/uniorder/{ord... AUTH
uniorder_tracking Get the tracking timeline of a uniorder order (GET /api/v1/uniorder/{ord... AUTH
uniorder_cancel Cancel a uniorder order, self delivery or label (POST /api/v1/uniorder/{... confirm
uniorder_purchase_label Buy the carrier label of a uniorder label order that was kept without on... confirm
uniorder_rate_batch Quote up to 20 shipments in one call (POST /api/v1/uniorder/rate/batch).... AUTH
uniorder_create_batch Create up to 20 orders in one call, each at its own rate_id (POST /api/v... confirm
uniorder_rate_batch_async Queue up to 500 shipments to quote (POST /api/v1/uniorder/rate/batch-asy... AUTH
uniorder_create_batch_async Queue up to 500 orders to create, each at its own rate_id (POST /api/v1/... confirm
uniorder_job Read a queued uniorder batch and, once done, its results (GET /api/v1/un... AUTH
list_shipping_services List the shipping services the customer may order (GET /api/v1/customer/... AUTH
get_shipping_service_config Get one shipping service's order form: warehouses, surcharges, packaging... AUTH
estimate_shipping_order Estimate the price of a shipping order on a service (POST /api/v1/custom... AUTH
create_shipping_order Create a shipping order on a service (POST /api/v1/customer/shipping-ord... AUTH
pay_shipping_order Pay the full remaining balance of a shipping order from the customer wal... confirm
get_shipping_order Get one shipping order of the customer (GET /api/v1/customer/shipping-or... AUTH
list_shipping_orders List the customer's shipping orders on one service, paginated (GET /api/... AUTH
cancel_shipping_order Cancel a pending or confirmed shipping order of the customer (POST /api/... confirm
get_storage_order_config Get what a storage order form needs: warehouses, packaging, supplies, pi... AUTH
quote_storage_order Calculate the price of a storage order before creating it (POST /api/v1/... AUTH
create_storage_order Create a storage order (POST /api/v1/customer/storage-orders). Storage o... AUTH
pay_storage_order Pay a storage order from the customer wallet (POST /api/v1/customer/stor... confirm
get_storage_order Get one storage order of the customer, with can_edit, can_cancel and eac... AUTH
list_storage_orders List the customer's storage orders, paginated (GET /api/v1/customer/stor... AUTH
cancel_storage_order Cancel a storage order of the customer while its status allows it (POST... confirm
list_stored_packages List the customer's stored packages that can be shipped out: received, n... AUTH
list_shipout_services List the shipping services that ship out from a warehouse (GET /api/v1/c... AUTH
estimate_shipout Estimate the price of a ship-out (POST /api/v1/customer/shipout-orders/s... AUTH
create_shipout Create a ship-out of stored packages from one warehouse (POST /api/v1/cu... AUTH
pay_shipout Pay a priced ship-out from the customer wallet (POST /api/v1/customer/sh... confirm
get_shipout Get one ship-out of the customer with paid amount, remaining balance, ca... AUTH
list_shipouts List the customer's ship-outs, paginated (GET /api/v1/customer/shipout-o... AUTH
cancel_shipout Cancel a pending or confirmed ship-out and release its stored packages (... confirm
otep_client_tracking Get the OTEP timeline and details (addresses, dates, proof of delivery,... AUTH
otep_client_locker_storage Get the OTEP timeline (storage profile) and details of one of your locke... AUTH
// .mcp.json — agent ops z wąskim profilem { "mcpServers": { "superroute": { "type": "url", "url": "https://api.miliexpress.com/api/mcp", "headers": { "Authorization": "Bearer <token>", "X-MCP-Profile": "ops-readonly" } } } }
DEVELOPER Serwer MCP dla programistów

Dla asystentów kodowania AI (Claude Code, Cursor itp.), którzy pomagają w budowaniu integracji z Superroute. Twoje AI może bezpośrednio wywoływać API, testować endpointy i generować kod integracji.

ENDPOINT
https://api.miliexpress.com/api/mcp/developer
Dostępne narzędzia (25 żywych narzędzi)
track_package Śledź przesyłkę po numerze śledzenia PUBLICZNE
get_operation_events Pobierz ścieżkę audytu zamówienia AUTH
get_shipping_methods Lista dostępnych przewoźników AUTH
get_shipping_rate Pobierz wycenę stawki wysyłki AUTH
create_shipping_label Utwórz etykietę wysyłkową AUTH
get_shipping_label Szczegóły etykiety i pobieranie AUTH
create_order Utwórz zamówienie dostawy/odbioru AUTH
build_route Buduj zoptymalizowane trasy dostaw AUTH
get_build_route_options Get available options for building routes: routing engines with their balance modes, capacity ty... AUTH
get_api_endpoints Search the complete Superroute REST API catalog (the same OpenAPI spec that powers /api/document... PUBLICZNE
get_graphql_operations Search the Superroute GraphQL catalog — every query and mutation, grouped by category, each with... PUBLICZNE
run_graphql_query Execute a query or mutation against the Superroute GraphQL endpoint (POST /api/graphql) and retu... AUTH
get_otep_tracking Get a package's tracking history as an OTEP (Open Tracking Event Protocol) document — the normal... PUBLICZNE
validate_otep_payload Run an OTEP document or event through the live conformance validator (POST /api/v1/otep/validate... PUBLICZNE
check_skill_update Check if a newer version of the Superroute AI integration skill file is available. Returns curre... PUBLICZNE
get_integration_guide Pobierz przewodnik integracji PUBLICZNE
get_otep_guide Get the OTEP (Open Tracking Event Protocol) development guide — the What/When/Where/Why event mo... PUBLICZNE
get_webhook_guide Przewodnik integracji webhooków PUBLICZNE
verify_webhook_signature Verify whether an incoming webhook signature is valid. Pass the raw payload (string or JSON obje... PUBLICZNE
test_webhook_delivery Fire a real, properly-signed test webhook from Superroute servers to a URL the developer provide... AUTH
get_webhook_settings Read the caller's own webhook configuration — every per-event callback URL, the behaviour flags,... AUTH
update_webhook_settings Self-serve update of the caller's webhook configuration (PUT /api/v1/webhook-settings). Partial:... AUTH
get_order_audit_timeline Chronological audit timeline of ONE order across every source: web actions, driver app scans, wa... AUTH
get_webhook_delivery_logs List recorded webhook delivery attempts for the caller — event type, target URL, HTTP status, at... AUTH
replay_webhook_delivery Re-send a webhook that was already logged, by delivery-log id (get the id from get_webhook_deliv... AUTH
// .mcp.json — preferowany Bearer połączenia { "mcpServers": { "superroute-dev": { "type": "url", "url": "https://api.miliexpress.com/api/mcp/developer", "headers": { "Authorization": "Bearer <token>" } } } }

Po 2026-12-31 nie przekazuj api_token w argumentach. Użyj Authorization na połączeniu MCP.

Łączenie przez OAuth

Dodaj adres URL serwera jako konektor w Claude lub innym kliencie MCP, zaloguj się i zatwierdź uprawnienia. Nie trzeba wklejać tokenu. Dostęp aplikacji odwołasz w Tokeny API → Połączone aplikacje AI.

Istniejące połączenia działają dalej bez zmian: tokeny API, nagłówki profilu i zakresów oraz powyższe adresy URL serwerów.

Konektory

Mniejsze serwery z narzędziami jednego obszaru. Przyjmują tokeny API i logowanie OAuth.

Doręczenia · Narzędzia: 33
https://api.miliexpress.com/api/mcp/connectors/delivery
Wysyłka · Narzędzia: 28
https://api.miliexpress.com/api/mcp/connectors/shipping
Magazyn · Narzędzia: 37
https://api.miliexpress.com/api/mcp/connectors/warehouse
User MCP służy do zarządzania Superroute agentami; Developer MCP do integracji. Pełny model jest w kolumnie MCP. Otwórz kolumnę MCP → Polityka prywatności Warunki korzystania
AI Punkty końcowe wykrywania narzędzi

Ustrukturyzowane opisy możliwości agentów AI, systemów wywoływania narzędzi LLM i klientów MCP. Wszystkie punkty końcowe są publiczne i nie jest wymagane żadne uwierzytelnianie.

PRIMARY AI Manifest narzędzi

Kompletny manifest zawierający definicje narzędzi, schematy, informacje uwierzytelniające i przepływy pracy.

GET https://api.miliexpress.com/api/.well-known/ai-tools.json
Dostępne również: /llms.txt
FORMAT Eksport w wielu formatach

Uzyskaj definicje narzędzi w formacie natywnym dla Twojej platformy AI.

# OpenAI function calling GET https://api.miliexpress.com/api/ai/tools?format=openai # Anthropic Claude tool_use GET https://api.miliexpress.com/api/ai/tools?format=anthropic # MCP tools/list GET https://api.miliexpress.com/api/ai/tools?format=mcp # LangChain StructuredTool GET https://api.miliexpress.com/api/ai/tools?format=langchain
REST Rozszerzenia OpenAPI + AI

Specyfikacja OpenAPI wzbogacona o rozszerzenia x-ai-* (nazwy narzędzi, kiedy używać, kategorie).

GET https://api.miliexpress.com/api/ai/tools/openapi
GQL GraphQL + AI Wskazówki

Dokumentacja GraphQL wzbogacona o aiHints na każdą operację (kiedy używać, powiązane przepływy pracy).

GET https://api.miliexpress.com/api/ai/tools/graphql
Szybka integracja
Python (OpenAI SDK)
import requests, json tools = requests.get( "https://api.miliexpress.com/api/ai/tools?format=openai" ).json()["tools"] # Pass to OpenAI response = client.chat.completions.create( model="gpt-4", messages=messages, tools=tools )
Python (Claude SDK )
import requests, anthropic tools = requests.get( "https://api.miliexpress.com/api/ai/tools?format=anthropic" ).json()["tools"] # Pass to Claude response = client.messages.create( model="claude-sonnet-4-20250514", messages=messages, tools=tools )
Node.js (pobierz)
const res = await fetch( "https://api.miliexpress.com/api/ai/tools?format=openai" ); const { tools } = await res.json(); // Use with any LLM SDK console.log(`Loaded ${tools.length} tools`);
Podsumowanie możliwości: Aby uzyskać uproszczony przegląd (tylko kategorie i nazwy narzędzi), użyj GET https://api.miliexpress.com/api/ai/capabilities
AI Narzędzia Plac zabaw

Przetestuj narzędzia Superroute AI bezpośrednio w swojej przeglądarce. Wybierz narzędzie, uzupełnij parametry i zobacz na żywo odpowiedź API.

Wybierz opcję Narzędzie
track_package
Odpowiedź
Kliknij „Uruchom”, aby uruchomić narzędzie...
Buduj z REST lub GraphQL

Dla programistów budujących niestandardowe agenty AI, chatboty lub integracje programistyczne. Wywołuj nasze API bezpośrednio ze swojego kodu z pełnym dostępem do wszystkich możliwości logistycznych.

REST Punkty końcowe REST API
# Śledź przesyłkę (publiczne) GET https://api.miliexpress.com/api/v1/tracking/{number} # Zdarzenia operacyjne POST https://api.miliexpress.com/api/v1/tracking/operationevents # Pobierz stawkę wysyłki POST https://api.miliexpress.com/api/v1/labelservice/rate # Utwórz etykietę wysyłkową POST https://api.miliexpress.com/api/v1/labelservice/submitOrder # Utwórz zamówienie dostawy POST https://api.miliexpress.com/api/v1/client/orderCreate # Zbuduj zoptymalizowaną trasę POST https://api.miliexpress.com/api/v3/client/build-route # Skonfiguruj webhooki PUT https://api.miliexpress.com/api/v1/webhook-settings # Otwarta oś czasu śledzenia (OTEP) GET https://api.miliexpress.com/api/v1/otep/trackings/{number}
Pełna dokumentacja
GQL Operacje GraphQL
# Pojedynczy punkt końcowy POST https://api.miliexpress.com/api/graphql # Dostępne operacje trackingPublic ← Śledź przesyłkę (publiczne) trackingOperationevents ← Zdarzenia operacyjne labelserviceRate ← Pobierz stawkę wysyłki labelserviceSubmitOrder ← Utwórz etykietę wysyłkową clientOrderCreate ← Utwórz zamówienie dostawy clientBuildRoute ← Zbuduj zoptymalizowaną trasę webhookSettingsUpdate ← Skonfiguruj webhooki otepTracking ← Otwarta oś czasu śledzenia (OTEP)
Pełna dokumentacja
Zalecamy REST API dla większości integracji AI — jest łatwiejsze do debugowania i każdy endpoint jest samodzielny. Użyj GraphQL, gdy potrzebujesz elastycznych zapytań lub chcesz pobrać zagnieżdżone dane w jednym żądaniu.
Umiejętność integracji Superroute AI

Kompleksowy plik umiejętności z głęboką wiedzą z domeny logistycznej — co robi każde API, kiedy go używać, co oznaczają parametry w rzeczywistym kontekście biznesowym, jak interpretować wyniki i jak możliwości się ze sobą łączą.

Pobierz plik umiejętności (.md)
Jak używać pliku umiejętności
Claude Code
  • 1 Pobierz powyższy plik
  • 2 Umieść go w katalogu .claude/skills/ swojego projektu
  • 3 Wpisz /integrate w Claude Code, aby uruchomić interaktywny kreator
mkdir -p .claude/skills cp superroute-ai-integration.md .claude/skills/
Cursor
  • 1 Pobierz powyższy plik
  • 2 Umieść go w katalogu .cursor/rules/ swojego projektu
  • 3 Cursor automatycznie użyje go jako kontekstu, gdy zapytasz o integrację z Superroute
mkdir -p .cursor/rules cp superroute-ai-integration.md .cursor/rules/
Inne narzędzia AI
  • 1 Pobierz powyższy plik
  • 2 Wklej zawartość do promptu systemowego lub bazy wiedzy swojego narzędzia AI
  • 3 AI użyje opisów semantycznych do prowadzenia integracji
# Lub wklej do promptu systemowego cat superroute-ai-integration.md
Utrzymuj plik umiejętności na bieżąco
SZYBKO Aktualizacja jednym poleceniem

Pobierz najnowszą wersję pliku umiejętności bezpośrednio z serwera.

# Claude Code curl -sS https://api.miliexpress.com/api/ai-skill -o .claude/skills/superroute-ai-integration.md # Cursor curl -sS https://api.miliexpress.com/api/ai-skill -o .cursor/rules/superroute-ai-integration.md
API API sprawdzania wersji

Sprawdź najnowszą wersję na serwerze przed pobraniem. Porównaj hash z lokalnym plikiem.

GET https://api.miliexpress.com/api/ai-skill/version Odpowiedź: { "version": "1.0.0", "hash": "abc123...", "download_url": "..." }
MCP Automatyczna aktualizacja przez MCP

Jeśli masz podłączony serwer MCP dla deweloperów, Twój asystent AI może sprawdzać aktualizacje za pomocą narzędzia check_skill_update. Przekaż hash MD5 lokalnego pliku.

// Wywołanie przez serwer MCP dla deweloperów { "method": "tools/call", "params": { "name": "check_skill_update", "arguments": { "current_hash": "your_local_file_md5_hash" } } }
CRON Skrypt automatycznej aktualizacji (Cron / CI)

Dodaj ten skrypt do pipeline CI lub zadania cron, aby plik umiejętności był zawsze aktualny.

#!/bin/bash # auto-update-skill.sh SKILL_FILE=".claude/skills/superroute-ai-integration.md" BASE_URL="https://api.miliexpress.com" mkdir -p "$(dirname "$SKILL_FILE")" LOCAL_HASH=$(md5sum "$SKILL_FILE" 2>/dev/null | cut -d' ' -f1) SERVER_HASH=$(curl -s "$BASE_URL/api/ai-skill/version" | python3 -c "import sys,json; print(json.load(sys.stdin)['hash'])") if [ "$LOCAL_HASH" != "$SERVER_HASH" ]; then curl -sS "$BASE_URL/api/ai-skill" -o "$SKILL_FILE" echo "Updated!" fi
Plik umiejętności wykracza poza dokumentację API — uczy asystenta AI biznesowe znaczenie każdego parametru, jak interpretować odpowiedzi i jak łączyć możliwości dla złożonych przepływów logistycznych.

Przykłady kodu

REST REST API — Śledź paczkę
Śledź paczkę (bez tokenu)
curl https://api.miliexpress.com/api/v1/tracking/SR123456
Śledź paczkę (bez tokenu)
<?php $res = (new \GuzzleHttp\Client())->get('https://api.miliexpress.com/api/v1/tracking/SR123456'); print_r(json_decode($res->getBody(), true));
Śledź paczkę (bez tokenu)
import requests res = requests.get('https://api.miliexpress.com/api/v1/tracking/SR123456') print(res.json())
Śledź paczkę (bez tokenu)
resp, _ := http.Get("https://api.miliexpress.com/api/v1/tracking/SR123456") var result map[string]interface{} json.NewDecoder(resp.Body).Decode(&result)
Śledź paczkę (bez tokenu)
const res = await fetch('https://api.miliexpress.com/api/v1/tracking/SR123456'); const data = await res.json();
Śledź paczkę (bez tokenu)
HttpClient client = HttpClient.newHttpClient(); HttpRequest req = HttpRequest.newBuilder() .uri(URI.create("https://api.miliexpress.com/api/v1/tracking/SR123456")) .build(); HttpResponse<String> res = client.send(req, HttpResponse.BodyHandlers.ofString()); System.out.println(res.body());
Śledź paczkę (bez tokenu)
require 'net/http' puts Net::HTTP.get(URI('https://api.miliexpress.com/api/v1/tracking/SR123456'))
GQL GraphQL — Zapytaj o zamówienia
Zapytaj o zamówienia
curl -X POST https://api.miliexpress.com/api/graphql \ -H "Content-Type: application/json" \ -d '{"query":"query { trackingPublic(trackingNumber: \"SR123456\") { trackingNumber status events { timestamp description } } }"}'
Zapytaj o zamówienia
$query = 'query { trackingPublic(trackingNumber: "SR123456") { trackingNumber status } }'; $res = (new \GuzzleHttp\Client())->post('https://api.miliexpress.com/api/graphql', [ 'json' => ['query' => $query, 'variables' => []], ]); print_r(json_decode($res->getBody(), true));
Zapytaj o zamówienia
import requests query = 'query { trackingPublic(trackingNumber: "SR123456") { trackingNumber status } }' res = requests.post('https://api.miliexpress.com/api/graphql', json={'query': query, 'variables': {}}) print(res.json())
Zapytaj o zamówienia
payload, _ := json.Marshal(map[string]interface{}{ "query": `query { trackingPublic(trackingNumber: "SR123456") { trackingNumber status } }`, "variables": map[string]interface{}{}, }) req, _ := http.NewRequest("POST", "https://api.miliexpress.com/api/graphql", bytes.NewBuffer(payload)) req.Header.Set("Content-Type", "application/json") resp, _ := http.DefaultClient.Do(req)
Zapytaj o zamówienia
const res = await fetch('https://api.miliexpress.com/api/graphql', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ query: `query { trackingPublic(trackingNumber: "SR123456") { trackingNumber status } }` }), }); const data = await res.json();
Zapytaj o zamówienia
String body = "{\"query\":\"query { trackingPublic(trackingNumber: \\\"SR123456\\\") { trackingNumber status } }\"}"; HttpRequest req = HttpRequest.newBuilder() .uri(URI.create("https://api.miliexpress.com/api/graphql")) .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString(body)).build(); HttpResponse<String> res = HttpClient.newHttpClient().send(req, HttpResponse.BodyHandlers.ofString());
Zapytaj o zamówienia
require 'net/http'; require 'json' uri = URI('https://api.miliexpress.com/api/graphql') req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json') req.body = JSON.dump({ query: 'query { trackingPublic(trackingNumber: "SR123456") { trackingNumber status } }' }) puts Net::HTTP.start(uri.hostname, uri.port) { |h| h.request(req) }.body
MCP MCP — Śledź przesyłkę
Śledź przesyłkę (bez tokenu)
curl -X POST https://api.miliexpress.com/api/mcp \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"track_package","arguments":{"tracking_number":"SR123456"}}}'
Śledź przesyłkę (bez tokenu)
$payload = [ 'jsonrpc' => '2.0', 'id' => 1, 'method' => 'tools/call', 'params' => ['name' => 'track_package', 'arguments' => ['tracking_number' => 'SR123456']], ]; $res = (new \GuzzleHttp\Client())->post('https://api.miliexpress.com/api/mcp', ['json' => $payload]); print_r(json_decode($res->getBody(), true));
Śledź przesyłkę (bez tokenu)
import requests payload = { 'jsonrpc': '2.0', 'id': 1, 'method': 'tools/call', 'params': {'name': 'track_package', 'arguments': {'tracking_number': 'SR123456'}}, } res = requests.post('https://api.miliexpress.com/api/mcp', json=payload) print(res.json())
Śledź przesyłkę (bez tokenu)
payload, _ := json.Marshal(map[string]interface{}{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": map[string]interface{}{ "name": "track_package", "arguments": map[string]interface{}{"tracking_number": "SR123456"}, }, }) req, _ := http.NewRequest("POST", "https://api.miliexpress.com/api/mcp", bytes.NewBuffer(payload)) req.Header.Set("Content-Type", "application/json") resp, _ := http.DefaultClient.Do(req)
Śledź przesyłkę (bez tokenu)
const res = await fetch('https://api.miliexpress.com/api/mcp', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'tools/call', params: { name: 'track_package', arguments: { tracking_number: 'SR123456' } }, }), }); const data = await res.json();
Śledź przesyłkę (bez tokenu)
String body = "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/call\",\"params\":{\"name\":\"track_package\",\"arguments\":{\"tracking_number\":\"SR123456\"}}}"; HttpRequest req = HttpRequest.newBuilder() .uri(URI.create("https://api.miliexpress.com/api/mcp")) .header("Content-Type", "application/json") .POST(HttpRequest.BodyPublishers.ofString(body)).build(); HttpResponse<String> res = HttpClient.newHttpClient().send(req, HttpResponse.BodyHandlers.ofString());
Śledź przesyłkę (bez tokenu)
require 'net/http'; require 'json' uri = URI('https://api.miliexpress.com/api/mcp') req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json') req.body = JSON.dump({ jsonrpc: '2.0', id: 1, method: 'tools/call', params: { name: 'track_package', arguments: { tracking_number: 'SR123456' } } }) puts Net::HTTP.start(uri.hostname, uri.port) { |h| h.request(req) }.body