Skip to content
LumosCloud
Lumos WMS documentationSettings

Host messages

Connect a customer’s ERP to Lumos: send master data and orders in, receive warehouse results by webhook, and verify both directions.

On this page

Before you start

On the Lumos WMS website, open Host Messages.

  • ERP → Lumos is incoming to WMS; Lumos → ERP is outgoing from WMS. Set up and test each direction separately.
  • Coordinate a WMS administrator who can view and update Host Messages with an ERP developer who can send HTTP requests and implement a webhook receiver.
  • Prepare the Lumos API address reachable from ERP and the ERP HTTPS webhook endpoint reachable from Lumos. Each legal entity has its own switches, secrets, and URL.
  • Use a test environment with the warehouse, units, categories, and SKUs needed for the test records.

Configure incoming: ERP → Lumos

  1. Open Settings for ERP → Lumos

    Open Lumos menu → Host Messages. Select Settings at 1.1 in the list toolbar to open the incoming connection settings.

    Host Messages page and the Settings button
    • 1.1 = Settings
    Host Messages page and the Settings button

    Scroll to see the rest of the image · Press Esc to close

  2. Enable messages from ERP and set the incoming secret

    In Host message settings, check Company code. Turn on Accept incoming messages at 2.1, enter Incoming secret at 2.2, then select Save settings at 2.3. A successful save closes the dialog and returns to the list.

    • Agree the incoming secret with the ERP team and send it in the x-host-secret header. The screenshot uses a masked example value.
    • Leave Incoming secret blank to keep a previously saved secret.
    • Settings belong to the selected legal entity. Select the correct company before opening Settings if there are several.
    Initial form: ERP → Lumos settings
    Initial form: ERP → Lumos settings

    Scroll to see the rest of the image · Press Esc to close

    Completed example: ERP → Lumos settings
    • 2.1 = Accept incoming messages
    • 2.2 = Incoming secret
    • 2.3 = Save settings
    Completed example: ERP → Lumos settings

    Scroll to see the rest of the image · Press Esc to close

With incoming acceptance and its secret saved, open API guide to configure ERP requests to Lumos.

Send data from ERP to Lumos

  1. Open API guide for ERP → Lumos

    On Host Messages, after saving incoming settings, select API guide at 3.1 in the top toolbar to open connection instructions and examples for ERP requests.

    Host Messages page and the API guide button
    • 3.1 = API guide
    Host Messages page and the API guide button

    Scroll to see the rest of the image · Press Esc to close

  2. Copy the ERP → Lumos URL and headers

    In API guide, select ERP → Lumos, then Connect. Give the POST URL and headers shown here to the ERP team to configure the customer’s system.

    • Use /api/v1/wms/host-messages/incoming on the Lumos API address reachable from ERP. Confirm that the host shown by the guide is correct.
    • If the guide shows a server-address placeholder or localhost, ask the Lumos administrator for the API address reachable from ERP before sending.
    • x-company-code is the login company code. x-host-secret is the Incoming secret saved in the previous task.
    • For multiple legal entities, include the destination company’s x-legal-entity-code. Omitting it selects the default company.
    • Entering a secret in API guide only fills example code. It does not save settings or send a request.
    ERP → Lumos API guide on the Connect tab
    ERP → Lumos API guide on the Connect tab

    Scroll to see the rest of the image · Press Esc to close

  3. Choose a message type and send a test from ERP

    In the ERP → Lumos guide, select the required document tab, such as Inbound order for INBOUND_ORDER. Choose curl, Postman, PowerShell, JavaScript, or Python for your tool, then use Copy at 5.1 on the request example. Replace its data and send it from the ERP team’s tool.

    • Prepare the Category, Quantity unit, Warehouse, and SKU referenced by the payload in Lumos. Warehouse and unit names must match existing records.
    • Start with one record in a test environment: sending the request creates or updates real data. Copy in API guide does not send the request.
    • Use an eventId that is unique across documents and retain it with the ERP referenceNo. After a timeout with an unknown outcome, retry the same data with the same eventId.
    • Check both HTTP status and data.responseCode. Code 00 means successful processing. Open the WMS order and compare its reference; the message-history task below explains how to inspect the log.
    INBOUND_ORDER example in API guide
    • 5.1 = Copy request example
    INBOUND_ORDER example in API guide

    Scroll to see the rest of the image · Press Esc to close

After confirming ERP requests produce the intended WMS records, configure outgoing delivery so Lumos can send warehouse results back to ERP.

Configure outgoing: Lumos → ERP

  1. Return to Host Messages to configure outgoing delivery

    Close API guide to return to Host Messages. Select Settings at 6.1 to configure where ERP receives warehouse results. Incoming and outgoing connections share this settings dialog.

    Host Messages page and the Settings button
    • 6.1 = Settings
    Host Messages page and the Settings button

    Scroll to see the rest of the image · Press Esc to close

  2. Set the ERP endpoint that receives webhooks

    Have the ERP team prepare an HTTPS endpoint that accepts POST from Lumos. In Host message settings, enable Send documents to the customer at 7.1, enter the ERP endpoint in Webhook url at 7.2, and select Save settings at 7.3.

    • Replace https://erp.example.com/lumos/webhook with the real ERP endpoint reachable from Lumos.
    • The first URL setup shows a generated webhook key after saving. Copy it in the next step before closing the dialog.
    • If a URL and key already exist, an ordinary save closes the dialog without showing the key again. Enabling deliveries does not send documents completed before it was enabled.
    Initial form: Lumos → ERP settings
    Initial form: Lumos → ERP settings

    Scroll to see the rest of the image · Press Esc to close

    Completed example: Lumos → ERP settings
    • 7.1 = Send documents to the customer
    • 7.2 = Webhook url
    • 7.3 = Save settings
    Completed example: Lumos → ERP settings

    Scroll to see the rest of the image · Press Esc to close

  3. Store the webhook key on the ERP side

    After the first URL save, the same dialog shows the webhook key. Select Copy key and store it in the ERP system’s secret storage for verifying messages from Lumos. Select Close to return to the list.

    • The webhook key is separate from Incoming secret. Lumos generates it and shows it once. The screenshot displays an example placeholder.
    • If the key is lost, open Settings, select Make a new webhook key when I save, and save. Configure the new key in ERP; the old key cannot verify new deliveries after rotation.
    One-time webhook key dialog, showing an example placeholder
    One-time webhook key dialog, showing an example placeholder

    Scroll to see the rest of the image · Press Esc to close

With the URL saved and the key stored, use API guide to implement signature verification and document mapping in ERP.

Prepare ERP to receive Lumos results

  1. Open API guide for Lumos → ERP

    After storing the webhook key and closing Settings, return to Host Messages and select API guide at 9.1 to open the ERP receiver instructions.

    Host Messages page and the API guide button
    • 9.1 = API guide
    Host Messages page and the API guide button

    Scroll to see the rest of the image · Press Esc to close

  2. Open the ERP webhook verification instructions

    In API guide, select Lumos → ERP, then Connect. Read the headers and Node.js or Python signature-verification example, and have the ERP team implement it in the configured endpoint.

    • Read the exact raw request body before parsing JSON. Verify x-lumos-signature using the webhook key and HMAC-SHA256(timestamp + "." + rawBody), and validate x-lumos-timestamp.
    • After signature verification, check companyCode and legalEntity.code and prevent duplicate posting using the document’s eventId.
    • Return HTTP 2xx after durably storing the data or placing it in the ERP processing queue. Response and retry details are in the ERP reference section below.
    Lumos → ERP API guide on the Connect tab
    Lumos → ERP API guide on the Connect tab

    Scroll to see the rest of the image · Press Esc to close

  3. Map received goods to ERP documents

    In the Lumos → ERP guide, select Inbound receiving to inspect INBOUND_RECEIVING. Have the ERP team map receivingNo and orderNo to the corresponding documents, with each line’s SKU, unit, and receivedQty.

    • This message is generated when the Receiving completes after all lines are put away. Each Receiving has one eventId.
    • Creating or releasing an inbound order does not trigger this message. Test the receiving and put-away process through to completion.
    INBOUND_RECEIVING on the Inbound receiving tab
    INBOUND_RECEIVING on the Inbound receiving tab

    Scroll to see the rest of the image · Press Esc to close

  4. Map shipped goods to ERP documents

    In the Lumos → ERP guide, select Outbound shipping to inspect OUTBOUND_SHIPPING. Map shippingNo, orderNo, and each line’s SKU, unit, and shippedQty to the ERP shipping documents.

    • The message is generated when the shipping leaves the warehouse. Each Shipping has one eventId and excludes cancelled lines.
    • If an order has several Shipping records, process each shippingNo and eventId separately before aggregating by orderNo.
    OUTBOUND_SHIPPING on the Outbound shipping tab
    OUTBOUND_SHIPPING on the Outbound shipping tab

    Scroll to see the rest of the image · Press Esc to close

Once the ERP receiver can verify and accept messages, send WEBHOOK_TEST before exercising receiving and shipping.

Test webhook delivery and inspect the result

  1. Open Settings to test ERP delivery

    Once the ERP endpoint and webhook key are configured, close API guide to return to Host Messages. Select Settings at 13.1 to access the webhook test.

    Host Messages page and the Settings button
    • 13.1 = Settings
    Host Messages page and the Settings button

    Scroll to see the rest of the image · Press Esc to close

  2. Send WEBHOOK_TEST to ERP

    In Host message settings, check the saved Webhook url and Send documents to the customer switch. Select Send a test document at 14.1 in Test the webhook near the bottom. After the queued message appears, close the dialog and return to history.

    • If the button is disabled, save the webhook URL with outgoing messages enabled, then reopen Settings.
    • The button sends WEBHOOK_TEST to exercise delivery and signature verification. ERP should not create real stock receipts or shipments for this message type.
    • The queued notification does not confirm ERP receipt. Check the result in the next step.
    Send a test document in Host message settings
    • 14.1 = Send a test document
    Send a test document in Host message settings

    Scroll to see the rest of the image · Press Esc to close

  3. Open the WEBHOOK_TEST history record

    After closing Settings, return to the Host Messages list and find the OUT WEBHOOK_TEST record for the time you sent it. Select its eye icon at 15.1 to open details. Scroll the table to the right if the icon is not visible.

    Host Messages page and the View message button
    • 15.1 = View host message
    Host Messages page and the View message button

    Scroll to see the rest of the image · Press Esc to close

  4. Check delivery and confirm with the ERP team

    In the WEBHOOK_TEST details opened above, check for response 00 with Delivered. Have the ERP team find the request at the same time, confirm successful signature verification, and retain its eventId in the ERP log.

    • If it stays pending, have the Lumos operator check that the webhook worker is running and can reach ERP.
    • After the test passes, exercise INBOUND_RECEIVING and OUTBOUND_SHIPPING in a test environment and reconcile both systems before using live data.
    Successful WEBHOOK_TEST delivery result
    Successful WEBHOOK_TEST delivery result

    Scroll to see the rest of the image · Press Esc to close

After testing both directions, use the next task to inspect message history and investigate delivery or processing failures.

Find and open message details

  1. Open Host Messages

    From the Lumos menu, open Host Messages and find the message. The eye icon at 17.1 opens that message’s details.

    Host Messages page overview
    • 17.1 = Eye icon to view details
    Host Messages page overview

    Scroll to see the rest of the image · Press Esc to close

  2. Find the Host message

    On the Host Messages list, filter Direction to IN for ERP → Lumos or OUT for Lumos → ERP. Use Sender, Message type, or the time range to find the relevant record.

    • IN: response 00 means Lumos processed the message successfully. Also check the resulting document in WMS.
    • OUT: response 00 with Delivered means the ERP endpoint returned HTTP 2xx. Still check that ERP recorded the data against the correct document.
    • An outgoing message marked pending may still be queued or retrying. Check again after the worker processes it.
    Host Message list
    Host Message list

    Scroll to see the rest of the image · Press Esc to close

  3. Inspect the payload and processing result

    Select the eye icon at the end of the row. Read Message, timestamps, and Response, then compare referenceNo or the document code with WMS and ERP. For failures, use responseCode and responseText with the response table below.

    • An HTTP 401 before acceptance may leave no history row. Check Company code, the legal entity code, Incoming secret, and Accept incoming messages.
    • After a recorded failure, correct the data and check existing documents before submitting a new eventId. Reusing the old eventId returns its earlier outcome.
    Host Message details
    Host Message details

    Scroll to see the rest of the image · Press Esc to close

Check the result

ERP can create or update the intended WMS records, and can verify, accept, and reconcile receiving and shipping webhooks without duplicate posting.

ERP integration message types

IN and OUT are relative to Lumos. INBOUND_ORDER is the order ERP sends in; INBOUND_RECEIVING is the actual receiving result Lumos sends back. They are different message types.

Direction / message typeWho initiates itResult to use
ERP → Lumos / ITEM_MASTERERP sends HTTP POSTCreate or update items and SKUs using existing Lumos categories and units.
ERP → Lumos / INBOUND_ORDERERP sends HTTP POSTCreate an inbound order for subsequent receiving and put-away.
ERP → Lumos / OUTBOUND_ORDERERP sends HTTP POSTCreate an outbound order for subsequent picking and shipping.
Lumos → ERP / INBOUND_RECEIVINGLumos sends a webhook when Receiving completesERP records actual receivedQty.
Lumos → ERP / OUTBOUND_SHIPPINGLumos sends a webhook when Shipping leaves the warehouseERP records actual shippedQty.
Lumos → ERP / WEBHOOK_TESTAn administrator selects Send a test documentCheck the connection without posting real receipts or shipments.

ERP → Lumos request example for developers

Replace <…> placeholders with company data and use the real Lumos API URL. x-legal-entity-code selects a legal entity; omit it to use the default company.

This example sends one INBOUND_ORDER. expectedQty is a string, and warehouseName, quantityUnitName, and sku must refer to existing Lumos records. Use the in-system API guide for examples of other message types.

Method, URL, and headers

POST https://wms.example.com/api/v1/wms/host-messages/incoming
Content-Type: application/json
x-company-code: <COMPANY_CODE>
x-host-secret: <INCOMING_SECRET>
x-legal-entity-code: <LEGAL_ENTITY_CODE>

Example JSON body

{
  "eventId": "erp-inbound-example-0001",
  "sender": "CUSTOMER_ERP",
  "messageType": "INBOUND_ORDER",
  "messageText": {
    "warehouseName": "<WAREHOUSE_NAME>",
    "expectedAt": "2026-10-07T02:00:00.000Z",
    "sourceType": "SUPPLIER",
    "referenceNo": "ERP-PO-0001",
    "lines": [
      {
        "sku": "<SKU>",
        "quantityUnitName": "<UNIT_NAME>",
        "expectedQty": "120"
      }
    ]
  }
}

Example successful processing response

{
  "code": 200,
  "message": "Success",
  "data": {
    "id": "<HOST_MESSAGE_ID>",
    "responseCode": "00",
    "responseText": "Inbound order created: <INBOUND_ORDER_ID>"
  }
}

Read incoming responses and diagnose failures

Document outcomes are in data.responseCode and data.responseText. An HTTP 200 response can still contain a processing failure.

ResultMeaning / what to check
HTTP 401Check company code, legal entity, incoming secret, and incoming acceptance. Rejected calls may have no history row.
HTTP 400Check JSON structure, eventId, sender, messageType, and messageText.
HTTP 403Check that the company has an active WMS entitlement.
HTTP 409The same eventId may still be processing. Wait and check again with that eventId.
00Processed successfully; check the created or updated WMS document.
01The messageType is not supported.
02Data validation failed; read responseText and correct the data.
03Referenced data, such as a warehouse, unit, or SKU, was not found.
04Processing failed; read responseText and check documents before resubmitting.

ERP webhook endpoint requirements

The ERP team must provide a POST endpoint and verify signatures with the webhook key copied after saving. Node.js and Python examples are in API guide → Lumos → ERP → Connect.

  • Preserve the exact raw request body before parsing JSON. Changing whitespace or key order changes the signature.
  • Read x-lumos-timestamp. Compute HMAC-SHA256 over timestamp + "." + rawBody using the webhook key, then compare sha256=<hex digest> with x-lumos-signature in constant time. Reject timestamps outside the ERP receiver’s accepted age window.
  • After verification, identify the company using companyCode and legalEntity.code. Use the body eventId to prevent duplicate posting; x-lumos-event-id must match the document eventId.
  • Durably store the data or queue entry before returning HTTP 2xx. If the same eventId was already accepted, return 2xx without posting it again.
  • WEBHOOK_TEST checks delivery; INBOUND_RECEIVING and OUTBOUND_SHIPPING carry transaction results. Retain the mapping between WMS document IDs and ERP references from the original order submission.
ERP responseWhat Lumos does
HTTP 2xxMarks delivery to the endpoint as successful and shows 00 / Delivered in history.
HTTP 408, 429, 5xx, or a connection failureRetries with increasing gaps. Defaults are a 10-second timeout and up to 8 total attempts; operators can configure these values.
Other HTTP 4xxStops delivery and records failure.
HTTP 3xx redirectDoes not follow redirects and records failure. Configure the final endpoint URL directly.
All guides

Search WMS documentation

Start with these articles
↑ ↓ Select an articleEnter OpenEsc Close