Failing to add product from python

I’m sending this POST request with python (which works when using the endpoint test interface from PD’s documentation):


But I keep getting this error:

Any ideas?

Hi Michael,
the format of the body is correct.

I’m not a Python expert, but from a quick search it looks like you probably just need to change this:
response =, data = body)
to this
response =, json = body)

Let me know if it works :slight_smile:


Great catch! Thanks!

1 Like