Hi,
I am wondering if it is possible. I specify both socid and fk_soc fields in the JSON payload, but it seems that they are ignored.
Kind regards
Hi,
I am wondering if it is possible. I specify both socid and fk_soc fields in the JSON payload, but it seems that they are ignored.
Kind regards
I do it using Python, Flask and the API.
I have a form that I use to have dance students register for dance classes in our little non profit. The form system finds the services inside Dolibarr, and exposes the right fields, text, questions, options, … based on settings inside Dolibarr service area. I could probably might as well use products, but when I made things by hand the products needed sizes and weight where as services does not.
After validating the form data I
I used the API explorer to figure out the minimum json that was needed to create a contact. Here’s what I found:
TEMPLATE_CONTACT_DICT = {
“entity”: “1”, # Ministry of Balboa
“lastname”: “”, # insert last_name here
“firstname”: “”, # insert first_name here
“email”: “”, # insert email here
“mail”: “”, # insert email here
“phone_mobile”: “”, # insert tel_one here
“address”: “”, # insert address here
“socid”: “” # insert thirdparty_id here
}
Many thanks. I create support accounts for allowing access to the ticket system.
Providing only socid seems to make it:
{
“lastname”: “Support-ABC”,
“email”: "helpdesk@x.y,
“socid”: “nn”
}