JSON Input was invalid. POST Item

darryl_ssdarryl_ss Member Posts: 63

Hi,

I keep getting a 400 error when trying to post an item.

The response is that the JSON data is invalid.

This very same data posted via Insomnia works fine?

I'm using axios in node, I can update fine, get fine, but POST fails, why?

Tags:

1 comment

  • LeahLeah Moderator, Lightspeed Staff Posts: 187 moderator

    Hi @darryl_ss If it is working fine in Insomnia as raw JSON data, then the problem must be something in your code. I don't have any experience with Axios, but if you share your code, maybe another member of the community might be able to help out.

    API Support
    Lightspeed HQ
Sign In or Register to comment.