Skip to content

Connecting WH-PMS

Set up the interface for WH-PMS in five steps and hand over invoices from the PMS to WBill.

E-invoice settings with contact, IBAN and payment term.
Overview image: the e-invoice settings. A dedicated screenshot of this feature will follow.
  • WBill is running and the company data is maintained.
  • The WH-PMS is reachable and can use a bearer token.
  • Network access requires a trusted LAN.
  1. Open Settings > Interface (WH-PMS).
  2. Turn on “Interface active” and enter the port (default 8081). Choose “Local only (127.0.0.1)” or “All network interfaces (0.0.0.0)” as the bind address. Save – the server starts or stops immediately and the status is shown next to it.
  3. Click “New token” and enter a name, e.g. “WH-PMS”. The token is shown only once; copy it with the copy button.
  4. Enter the token in WH-PMS as PMS_INVOICE_TOKEN. The PMS authenticates with it as a bearer token.
  5. Create an invoice in the PMS. It appears in the WBill invoice list with the “PMS” badge. Trigger corrections in the PMS; WBill additionally allows a cancellation that shows a warning.

The WH-PMS can submit invoices to WBill. The invoice list marks the origin with “PMS”, and the invoice detail names the folio and points to the PMS for corrections.

Field / term Meaning Required Default
Interface active Starts the embedded REST server No off
Port Port of the server Yes 8081
Bind address 127.0.0.1 (local only) or 0.0.0.0 (all interfaces) Yes 127.0.0.1
Status Shows “active on address” or “not active” – –
Token Bearer token for the PMS, shown in plain text only once Yes –
Scopes invoices:read, invoices:write, customers:write Yes all three
Problem Solution
The server does not start. Check whether the port is already in use and choose another port.
A second WBill instance exits immediately. Only one instance may run per data directory; stop the other instance or service.
The PMS receives 401. Check that the token is set correctly as a bearer token and has not been revoked.
Network access fails. Set the bind address to 0.0.0.0 and open the port in the firewall. Use this only in a trusted LAN.
A token has been lost. Revoke it in the token list and create a new one.

Report this page