Skip to main content
From time to time, your payment terminal encounters an issue, or needs to perform maintenance. When this happens, the terminal generates an event notification. You can use event notifications in your POS app to inform your staff of the terminal’s availability and state. If your integration uses asynchronous cloud communications, you must set up event notifications. We then send the Terminal API responses to your endpoint. Here we describe how to set up event notifications. You can do this in your Customer Area or by using API calls. You then receive webhooks that include a Terminal API EventNotification and, if applicable, a Terminal API asynchronous SaleToPOIResponse. You can use the received information to show a message in your POS app.

Set up event notifications in the Customer Area

To get event notifications and, if applicable, asynchronous Terminal API responses, you need to make sure you can receive HTTP callbacks (webhooks) on a specific endpoint. Then you need to provide the URL to that endpoint in your Customer Area. Make sure to acknowledge that your POS system successfully received an event notification from the terminal.
  1. Prepare your system. It needs to have:
    • An endpoint that can receive JSON messages.
    • For the test environment: an open TCP port for HTTP traffic (80, 8080, or 8888) or HTTPS traffic (443, 8443, or 8843) with TLSv1.2.
    • For the live environment: an open TCP port for HTTPS traffic (443, 8443, or 8843) with TLSv1.2.
  2. Log in to your test Customer Area.
  3. Switch to the merchant account, store, or terminal that you want to set up notifications for.
  4. Go to In-person payments > Terminal settings > Integrations.
  5. In the Terminal API section, select Decrypted.
  6. Under Event URLs, select Add new.
  7. Select the pencil icon **next to the field that appears.
    The Add URL dialog opens.
  8. Enter the details:
    • URL: the URL of the endpoint where you want to receive event notifications.
    • Username and Password (optional): the basic authentication credentials you set up on your server. We include these details in the header of the notification to authenticate with your server.
    • Public: select this option if the specified URL is on a public network.
    • Local: select this option if the specified URL is on a Local Area Network.
    • Enable encryption: select this if you want the message sent to this URL to be encrypted.
  9. Select Add URL.
  10. Select Save.
Event notifications will now be sent to the endpoint you specified. If you are using cloud communications with an asynchronous result, the Terminal API responses are also sent to this endpoint.

Set up event notifications using API calls

Instead of using your Customer Area, you can use our Management API to automate setting up display notifications. To get display notifications, make sure you can receive HTTP callbacks (webhooks) on a specific endpoint. You then need to provide the URL to that endpoint in the PATCH request. Make sure to acknowledge that your POS system successfully received an event notification from the terminal. To set up event notifications, you need to have the following role:
  • Management API—Terminal Advanced settings read and write
Proceed as follows:
  1. Prepare your system. It needs to have:
    • An endpoint that can receive JSON messages.
    • For the test environment: an open TCP port for HTTP traffic (80, 8080, or 8888) or HTTPS traffic (443, 8443, or 8843) with TLSv1.2.
    • For the live environment: an open TCP port for HTTPS traffic (443, 8443, or 8843) with TLSv1.2.
  2. Optional. To see what display notification settings have already been configured, make a GET request to the /terminalSettings endpoint for the company account, merchant account, store or terminal, and check the nexo.eventUrls object. When removing settings, you need to know the settings that will be inherited from the next higher level.
  3. Make a PATCH request to the /terminalSettings endpoint on the company account, merchant account, store or terminal level.
    In the request body, inside the nexo object, specify:
    • eventLocalUrls: an array with one or more local URLs. Use this if the specified URL is on a Local Area Network. This includes:
    Set up a local URL on a terminal level
  4. When you receive the response, note that this returns the entire configuration at the level where you made the request. Response with the entire configuration on a terminal level

Accept event notifications

We require you to acknowledge that your POS system successfully received an event notification from the terminal with a successful HTTP response status code, for example 202. This prevents the terminal or our backend from repeatedly re-sending the same notification. When your POS system receives an event notification:
  1. Store the event notification in your database.
  2. Acknowledge the event notification with a successful HTTP response status code, for example 202.
  3. Apply your business logic.
    Make sure that you acknowledge the event notification before you apply any business logic, because an error in your business logic can prevent event notifications with important updates from reaching your system.

Event notification types

Each notification contains a unique DeviceID and a EventToNotify value. You can use EventToNotify to show a message in your POS app informing your staff of the terminal’s state.

Event notification examples

Shutdown

Shutdown

BeginMaintenance

Example notification

EndMaintenance

Example notification

OutOfOrder

Example notification

Initialised

Example notification

NetworkConnected

Example notification

NetworkDisconnected

Example notification

Reject

Example notification

SaleWakeUp

Example notification

UseAnotherCardForPreauth

Example notification

Asynchronous Terminal API responses

If you use cloud communications and send your Terminal API requests to an asynchronous endpoint, we send the Terminal API responses to your event notifications endpoint (provided you have set that up). These responses are exactly the same as the responses you’d receive in a Terminal API integration using local communications, or using cloud communications with a synchronous endpoint. The example below is a payment response.

Next steps

Terminal API fundamentals

Required. Learn about our Terminal API.

Display notifications

Keep your staff informed of the progress of the transaction.

Platform-generated webhooks

Receive standard webhooks generated by our platform.