API for Rail Freight

Parse CIM/SMGS rail consignment notes via API

Send any rail consignment note to the KabyTech API and receive 40+ validated fields as JSON. CIM and SMGS format support, China-Laos-Thailand corridor data extraction, and cross-border customs pre-clearance fields — one API call.

RCN API — Ingest
EndpointPOST /v1/parse/rcn
Content-Typemultipart/form-data
DocumentCLT-RCN-2026-1187.pdf
Format DetectedSMGS
LanguagesZH / TH / EN
Ingest

Accept CIM/SMGS documents in any format

Upload scanned rail consignment notes, PDF waybills, or electronic data interchange messages. The API detects CIM vs SMGS format automatically and applies the correct parsing rules. Chinese, Lao, Thai, and English text are all handled natively with multi-language OCR.

CIM formatSMGS formatMulti-language OCRPDF uploadImage scanAuto-detect
RCN Parsed Response
RCN NumberCLT-RCN-2026-1187
SenderKUNMING STEEL TRADING CO
ConsigneeTHAI METAL IMPORT CO LTD
Origin StationKunming South (CN)
Border CrossingMohan / Boten
Dest. StationLaem Chabang ICD (TH)
WagonKZH-441289
Weight52,000 KGS
Extract

40+ fields from rail waybills

The API extracts sender, consignee, border crossing stations, wagon numbers, container numbers, cargo description, weight, customs declaration references, and transit routing through every station on the China-Laos-Thailand corridor. CIM contract fields and SMGS regulatory data are parsed according to their respective standards.

Sender/ConsigneeWagon numbersBorder stationsCargo weightTransit routingCustoms refs
RCN Validation Report
Station CodesKunming / Boten / THLCH — VALID
Wagon NumberKZH-441289 — VERIFIED
Border CrossingMohan/Boten — CUSTOMS OK
Weight Check52,000 KGS — WITHIN LIMIT
Confidence97.8%
Validate

Cross-border validation for rail corridors

Station codes validated against China-Laos Railway and ASEAN rail network databases. Wagon numbers verified against rolling stock registries. Border crossing data for Mohan/Boten and Nong Khai/Thanaleng checkpoints is cross-referenced with customs transit requirements.

Station code checkWagon verificationBorder crossing dataCustoms transitWeight limitsGauge compatibility
API Performance

Rail consignment note API metrics

40+
Fields extracted per RCN
<3s
Average parse time
97.8%
Field-level accuracy
99.9%
API uptime SLA
FAQ

Rail Consignment Note API — Frequently Asked Questions

What is the difference between CIM and SMGS rail consignment notes?
CIM (Convention Internationale concernant le transport des Marchandises) is used for European rail freight. SMGS (Agreement on International Goods Transport by Rail) is used across Asia including the China-Laos-Thailand corridor. KabyTech detects the format automatically and applies the correct parsing rules.
Does the API handle Chinese and Thai text in the same document?
Yes. The API uses multi-language OCR that handles Chinese (Simplified), Thai, Lao, and English text within a single document. This is essential for China-Laos-Thailand corridor documents that typically contain text in multiple languages.
Which rail corridors are supported?
The API is optimized for the China-Laos-Thailand corridor via the Kunming-Vientiane Railway (Laos-China Railway). It also supports CIM waybills for European rail freight and SMGS documents for broader Asian rail networks.
How are border crossing stations validated?
Station codes are validated against the China-Laos Railway station database and ASEAN rail network registries. Border crossing pairs like Mohan/Boten and Nong Khai/Thanaleng are verified for customs transit compatibility.
Can the API handle multimodal shipments (rail + truck)?
Yes. The API extracts intermodal transfer data including container handover points, trucking legs from rail terminal to final destination, and the complete multimodal routing chain.

Ready to parse rail consignment notes via API?

Get your API key and start parsing CIM/SMGS documents. Full support for China-Laos-Thailand corridor.