Hey there,
In postman I tried sending a post request to my dolibarr API URL, alongside with the auth API in params of postman, DOLAPIKEY and value of my API_key
in the body I gave the json structure for creating a third-party i.e. {“name”:[“Example party”], “address”:[“Example address”]
}
Upon sending it is returning me internal server error 500 error message and nothing is in return body.
I also tried using the dolibarr module in python with which the entry is being created of a third-party when send the request, but I don’t know how it is duplicating those entries, Like if I run this code
def create_third_party():
# Connection to Dolibarr
dolibarr_inst = Dolibarr(api_url, api_key)
# Create Third-Party
params = {
'name': "Tyrian Lannister Technologies Pvt Ltd.",
# Add more parameters as needed
}
ret_val = dolibarr_inst.call_create_api('thirdparties', params)
print(ret_val)
and it is creating 2,4 or 6 entries upon running this function of the same name.
Kindly help me resolve this.
Thankyou in advance!
Best,
Vivek