I have checked the READ and WRITE for all the Requested Permissions. Is the webhook only triggered for inventory alone?
I have checked the READ and WRITE for all the Requested Permissions. Is the webhook only triggered for inventory alone?
We have webhooks for orders: https://docs.clover.com/docs/webhooks#event-type-keys
I would recommend rechecking your webhooks services and permissions. If you have recently changed your permissions you will have to generate a new OAuth token from your merchant so the permissions are synced.
I just rechecked my webhook and permissions. And I generated a new OAuth, checking every permission. Refreshed, and updated my API bearer with the token. And made several calls. But it's still the same. Only inventory triggers the webhook.
It sounds like you have not registered for the orders web hooks.
If you mean the Event Subscription when setting up the URL where webhook events will be sent, I had done that. In fact, I checked all the events.
If you updated your app's permissions after you initially installed it you need to uninstall/reinstall it and then generate a new oauth token, see https://docs.clover.com/docs/401-unauthorized.
Doesn't matter, the permissions on apps are set at the time of install. So if you changed them after the install the changes won't be reflected even if you obtain a new token.
I created a new app, I verified the web-hook, and set the permissions. But the web-hook is not triggered at all. Please what is going on. Your documentation isn't clear, and now your sandbox isn't working correctly.
If you set your apps permissions correctly, register for the webhooks you are interested in, properly install the app (https://docs.clover.com/docs/installing-your-app-to-your-test-merchant), and are creating/editing orders for the correct merchant (the merchant you installed the app to) you will receive webhooks.
@AnayoOleru it is documented in a few places, one example - https://docs.clover.com/docs/permissions.
"If you change app permissions after a merchant (including your test merchant) downloads your app, the new permissions don't take effect until the merchant uninstalls and reinstalls the app."
Another example:
https://docs.clover.com/docs/401-unauthorized#check-your-apps-permissions
It seems that you have set up a webhook to be triggered when you create inventory in your system. However, you are facing an issue where the webhook is not triggered when you create a new order or edit an existing order.
Here are some possible reasons for this issue:
Webhook Configuration: Double-check the webhook configuration to ensure that it is set up correctly to respond to order creation and order update events. Make sure that the correct endpoints and event triggers are specified.
Event Trigger Settings: Verify that the events for order creation and order update are correctly configured to trigger the webhook. If the events are not properly configured, the webhook won't be called when those actions occur.
Authorization and Authentication: Ensure that the webhook endpoint is accessible and properly authenticated to receive the webhook notifications. If there are authentication issues, the webhook may fail to trigger.
Error Handling: Check if there are any errors occurring during the webhook execution. Make sure that the webhook endpoint can handle the data sent from the system and respond with an appropriate status code to confirm receipt.
Webhook Service Reliability: Confirm that the webhook service or the server hosting the webhook endpoint is reliable and operational. If the webhook service is down or facing issues, it won't be able to receive and process webhook requests.
Log and Monitor: Implement logging and monitoring for the webhook to track incoming requests and responses. This can help you identify any issues or errors that might be occurring during the webhook process.
Test and Debug: If possible, try testing the webhook manually using tools like Postman to ensure it works as expected. Debugging the webhook setup can help you identify and resolve any issues.
If you have reviewed all the above points and are still experiencing issues with the webhook not triggering for order creation or updates, consider reaching out to the webhook provider or consulting their documentation or support resources for further assistance.
Thanks @ parquet76 and everyone. The issue was uninstalling the app and reinstalling it when permissions change.
8 People are following this question.