Forum Discussion

rickybarker's avatar
3 years ago

FreightTaxCode not validate with MYOB

Hi,

 

We use the WooCommerce plugin to sync orders from Woo to MYOB.

 

We have the file connected however we are getting this error:

 

An error has occurred when syncing your order with MYOB.
Oops! We had a problem processing your order.
Here is the posible errors:
Error code: 400
Name: SerializationError
Message:
Error Type: FreightTaxCode not validate with MYOB

 

Any ideas? all tax codes are set to S15 and i have just eneabled the "I charge freight on sales" via the "Linked Account" menu.

 

We dont actually charge any shipping with our orders. Everything was working fine up untill a couple of days ago, nothing has been changed in Woo or MYOB.

5 Replies

Replies have been turned off for this discussion
  • kjm's avatar
    kjm
    Trusted Cover User
    3 years ago

    from https://woocommerce.com/document/myob/


    SerializationError kinda gives it away. trying to serialize a null is probably your problem

    “Name”: “SerializationError”
    “Message”: null
    “AdditionalDetails”
    “Error converting value {null} to type ‘System.Guid’. Path ‘Lines[0].Item.UID’, line 1, position 454.”,
    “ErrorCode”: 50,
    “Severity”: “Error”,
    “LearnMore”: null

    Ordered items are not found in the MYOB dashboard and under WooCommerce >Settings > MYOB AccountRight  “Create Product in MYOB if Not Found” option is disabled.

    Enable “Create Product in MYOB if Not Found”. 

     

  • Hi kjm,

     

    The "Create Product in MYOB if Not Found" is ticked and selected in WooCom settings.

     

    I have unselected the option and tried to resync invoice manually, and it still produces the same error.

     

    The products already exist in MYOB as the integration has been working.

     

    I have removed the item from MYOB directly, and still same error.

     

    Cheers

     

  • kjm's avatar
    kjm
    Trusted Cover User
    3 years ago

    have you put fiddler or postman on the request to see what your sending?

     

    if you capture the request from WooCommerce using Fiddler, browser or something (sorry no experience with Woo) then send that request using Postman to your API you might find some more info. 

     

    Atleast you'd be able to see if the TaxCode in the request from Woo is null or not or if it is a different data type to what MYOB is expecting

     

    On what object is the FreightTax Code?

  • kjm's avatar
    kjm
    Trusted Cover User
    3 years ago

    I see it on the Invoice/Item Object. 

     

    So you're creating an ITEM?
    The request out of Woo into MYOB should look lik this then Item (myob.com)

    Check the FreightTaxCode that is being sent from Woo and using postman then do a GET on it and see if it comes back

  • Sean_DC's avatar
    Sean_DC
    Former Staff
    3 years ago

    Hi rickybarker 

    Thank you for your post. For any API error integration related queries we recommend raising a support request via the following link: https://apisupport.myob.com/hc/en-us/requests/new

     

     

    Please feel free to post again. I'm happy to assist further.

     

    If my response has answered your enquiry please click "Accept as Solution" to assist other users to find this information.