Connecting WH-PMS
After this page you can:
Section titled “After this page you can:”Set up the interface for WH-PMS in five steps and hand over invoices from the PMS to WBill.
Prerequisites
Section titled “Prerequisites”- 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.
Step by step
Section titled “Step by step”- Open Settings > Interface (WH-PMS).
- 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.
- Click “New token” and enter a name, e.g. “WH-PMS”. The token is shown only once; copy it with the copy button.
- Enter the token in WH-PMS as
PMS_INVOICE_TOKEN. The PMS authenticates with it as a bearer token. - 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.
Result
Section titled “Result”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 reference
Section titled “Field reference”| 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 |
Troubleshooting
Section titled “Troubleshooting”| 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. |
