Cannot add product to cloud zoo as an issuer

Hi,

I’ve been trying to implementing a cloud zoo based license for a grasshopper plugin by following these guidelines.

I’m posting a sample code for adding products, which returns me a https 400 non-sucessful response with the following message:

Blockquote
{“Error”:“ErrorData”,“Description”:“The data received is badly formed or incomplete.”,
“Details”:{“newProduct”:
{“_errors”:[{“k__BackingField”:
{“ClassName”:“System.MissingMethodException”,
“Message”:“Cannot create an abstract class.”,
… other long error messages

Which is weird since i was trying to pass the same payload object as in the example. What am I doing wrong here?

SamplePostProduct_CloudZoo.py (1.9 KB)

The payload needs to be sent as JSON. Try this…

r = session.post(api_url, json=payload, headers=header)