Hi guys,
Im work in a integration with nuvemshop.com and a try to create products in my pipedrive. And its return 400:
def add_produto_pipe():
url_add_product = "https://api.pipedrive.com/v1/products?api_token="MYTOKEN_HERE""
payload_product = {
"name": "Test_name",
"code": "SKU_code",
"tax": "0",
"active_flag": "1",
"prices":[{"price":123, "currency":"USD"}]
}
response = requests.post(url_add_product, payload_product)
print(response)
add_produto_pipe()
however, when i remove the LINE: “prices":[{“price”:123, “currency”:“USD”}]” the code runs well! i’ve alredy tried “price”:123.00 - “price”:“123.00” - “price”:“123” , Does someone knows whats can be wrong?