Notification System#
Four Way Shop includes a feature that allows notifications to be sent via a POST request to a specified endpoint, with optional access credentials. This functionality is automatically triggered in real-time based on predefined triggers, such as the issuance of a sales receipt from the POS (Point of Sale) app. Users can define which documents or processes should trigger notifications and the level of detail required (complete or minimal information).To enable notifications, please contact our support team for assistance.
Trigger Events#
The notification system can be configured to trigger on specific events. Initially, the focus will be on sales transactions processed through the POS app, specifically:Sales Receipts: Commercial sales documents.
Return/Cancellation Receipts: Documents for returns or cancellations.
Invoices: Commercial invoices.
Configuration Options#
1.
Documents/Processes to Notify: Users can specify which types of documents or processes should trigger notifications.
2.
Detail Level: Users can choose the level of detail included in the notifications, opting for either complete information or minimal details.
Notification Payload#
Notifications are sent in JSON format. Below are examples of JSON payloads for each type of notification:Example Extended JSON Payloads#
Example Minimal JSON Payloads#
These JSON payloads serve as templates to illustrate the structure of the notifications. The actual implementation may require adjustments based on specific use cases and endpoint requirements.You can check what you receive when one of the desired events triggers using the services provided by
https://webhook.site/.
Copy the endpoint and use it as the URL for the notification service configuration.