How it connects to Profit4
The website handles what customers see. Profit4 stays the system for stock, accounts and invoicing. This page shows the proposed data flow. Details are to be confirmed with WPWS and OGL.
Data flow
Loading diagram…
- Supplier files are uploaded on the website. Staff review the changes and apply them to the website catalogue.
- Customers order on the website. Each order is sent to Profit4 as a sales order.
- Card payments are taken by Stripe or PayPal. The payment reference goes with the order to Profit4.
- Profit4 sends stock levels and customer accounts back to the website.
Which system owns what
| Data | Owner | Notes |
|---|---|---|
| Products for display (names, categories, descriptions, search words) | Website | Built from supplier files and enrichment; staff can edit. |
| Stock records (stock codes) | Profit4 | Only for products WPWS chooses to sell. |
| Supplier list prices | To confirm with WPWS and OGL | Supplier price lists could load into the website or into Profit4. |
| Contract prices | To confirm with WPWS and OGL | Does Profit4 hold them today? The website keeps them separate and never changes them on import. |
| Stock levels | Profit4 | Sent to the website on a schedule. |
| Orders | Website → Profit4 | Created on the website, then sent to Profit4 for fulfilment and invoicing. |
| Payments | Stripe / PayPal | Reference stored with the order and sent to Profit4. |
| Customer accounts | To confirm with WPWS and OGL | Company accounts, allowances and approvers. |
| VAT | Profit4 | VAT codes from the supplier file are shown as “to confirm”. |
Only products WPWS chooses to sell get a Profit4 stock record — not all 91,000 rows of the supplier catalogue. The website can show the wider catalogue and create the stock record when a product is first sold or listed.
Order message to Profit4
Proposed — to be confirmed with OGLThe latest demo order, WP-100005. Customer account, lines, prices, VAT, payment reference and delivery.
{
"messageType": "SalesOrder.Create",
"format": "Proposed — to be confirmed with OGL",
"source": "wpws-website (demo)",
"sentAt": "2026-11-22T10:37:52.724Z",
"order": {
"webReference": "WP-100005",
"channel": "company",
"status": "on-account",
"orderDate": "2026-11-22",
"customerAccount": {
"accountCode": "EXAMPLE-CONSTRUCTION (demo account)",
"name": "Taylor Example",
"email": "taylor@example-construction.test"
},
"delivery": {
"method": "Deliver to site",
"line1": "Example Construction Ltd, Site 4, Example Road",
"town": "Exampleton",
"postcode": "EX1 1AA"
},
"lines": [
{
"lineNo": 1,
"stockCode": "RS903 BLK S",
"style": "RS903",
"description": "Result Recycled Fleece Polarthermic Jacket, Black, S",
"quantity": 1,
"unitPrice": "14.75",
"priceRule": "contract",
"lineNet": "14.75",
"vatCode": "1",
"vatRate": 20
}
],
"totals": {
"net": "14.75",
"vat": "2.95",
"gross": "17.70",
"currency": "GBP"
},
"payment": {
"method": "On account (invoice from Profit4)"
}
}
}