Forum Discussion

SamJones's avatar
SamJones
Contributing User
3 years ago

Woocommerce Sync to MYOB for invoicing

Hi Everyone,

 

Sometimes, when orders are placed on our website they do not sync with MYOB to produce an invoice. Woocommerce alerts me that error 400 has occured when trying to sync to MYOB. This has happened 4 times out of the last 9 orders and there does not seem to be any pattern. Can anyone help with this please?

  • Hannah_B's avatar
    Hannah_B
    MYOB Moderator

    Hi SamJones

     

    Thanks for reaching out, 400 bad requests is the standard response code when the API hasn't recognized your request. This is a common error that is hard to narrow down without the full error message. 

     

    An example of a 400 bad request error message is:

     

    {
    "Name" : "TransactionsCannotBeDeleted",
    "Message" : "Transactions cannot be deleted and must be reversed",
    "AdditionalDetails" : "[Path]",
    "ErrorCode" : 25003,
    "Severity" : "Error"
    }A  

     I would recommend going back to Woocommerce, if they have any issues with producing the full error message they would be able to reach out to us HERE  and with the full HTTP trace we can view our logs to obtain more details.