Extract Waybill with Rust SDK — OCR with Reqwest

Learn how to extract Waybill data programmatically using Rust SDK — OCR with Reqwest. Extract data from national waybills: shipper, receiver, goods, route, dates. Includes code, field mapping, and API integration.

Why Extract Waybill with Rust

Logistics companies process thousands of Waybill documents monthly. Using Rust to automate Waybill data extraction eliminates manual entry, reduces errors, and speeds up document processing from minutes to seconds. With the Cargoffer OCR API, you can integrate Waybill extraction into any Rust application in under 10 lines of code.

Setting Up the Rust Client

First, get your free API key from the dashboard. Then install the HTTP client for Rust and configure authentication. The API uses Bearer token auth — pass your key in the Authorization header.

Uploading a Waybill Document

Use the POST /api/upload endpoint to send the document file. The system auto-detects Waybill format and routes it to the best extraction model. Upload in PDF, image, or Excel format.

Extracted Data Fields

document_number, shipper, receiver, loading_point, unloading_point, loading_date, goods_description, weight, vehicle_plate, driver_name, signatures.

Rust Code Example

The complete Rust integration code handles file upload, extraction request, polling for results, and error management. Error types: 401 (invalid key), 402 (quota exceeded — upgrade your plan), 429 (rate limit — wait and retry), 422 (malformed request).

Pricing & Volume

Each Waybill extraction costs from 0.002 EUR per page. The free plan includes 1 page. The Pro plan (49 EUR/month) covers 1,000 pages — enough for 500000 Waybill documents. Manual Waybill data entry costs 3-15 EUR per document — OCR saves 99%.

Related Integrations

See also: [Waybill with Python](https://ocr.cargoffer.com/tutorials/documents/waybill-extraction/integration/python) | [Waybill with JavaScript](https://ocr.cargoffer.com/tutorials/documents/waybill-extraction/integration/javascript) | [Waybill with Java](https://ocr.cargoffer.com/tutorials/documents/waybill-extraction/integration/java) | [Waybill via REST API](https://ocr.cargoffer.com/tutorials/documents/waybill-extraction)

Ready to try it?

Start Free →