This is an old revision of the document!


Billig Shipping Script

The Billig shipping script, named 'Export_Billig' in the Airtox File, is for sending shipping orders to Billig (BA) for processing. It runs as a MW script and uses CURL to send shipping orders over tcp/http. It is triggered by selecting Sales Invoices and pressing the “Export Billig” button.

Technical documentation

Key features:

  • MW Sales Invoice Sending: Sends selected sales invoices to the Billig API.
  • Checks Sales Invoices not already processed: Uses Transaction field user_4. Puts a timestamp if already sent. err:err text if error.
  • Validates Delivery Addresses: Checks the delivery address meets criteria. More info below
  • Validates Country 2 Char representation: Billig API uses 2 Char country digits for addresses. Uses JSON file to verify.
  • TODO: Add more feature text

BILLIG API Information:

The API is what can be deduced as a Microsoft Dynamics 365 API.  The API is very basic and not very ideal.  It has been rock solid for 3 years despite its shortcomings.

Entry point:

main.rs calls `start_server` which runs the main service loop.

Edit this page