Forum Discussion

MartinDeveloper's avatar
22 days ago

WooCommerce integration with MYOB AccountRight frequently fails during API sync

We are currently experiencing an issue with our WooCommerce integration with MYOB AccountRight on the website using the OPMC plugin.

While the initial connection and validation work correctly, the plugin frequently fails during API syncs or token refresh with intermittent 401 errors.


We initially assumed no firewall was in place. However, upon further investigation and external scans, it’s clear that the server is behind a WAF (Web Application Firewall), likely powered by OpenResty.


How do we allow the connection to the MYOB API server established for this integration to work?

Any assistance or advice is greatly appreciated.

1 Reply

  • JeremyF's avatar
    JeremyF
    Trusted User
    22 days ago

    Check the expiry time used to refresh the token.

    cut 60 seconds off what ever the returned expiry time is to calculate when you need to get a new token.