API DOCUMENTATION
addDemand (pOST)
Adds a demand of a customer.
Body params:
- activity_title (string, optional): The title of the demand. The default value is ‘Nueva demanda API’.
- activity_type (string, required): The type of the demand. You can get the types with the call getActivityTypes and the field “demand-type”: 1 in the body.
- start_date (date time, required): Date when the demand starts.
- end_date (date time, required): Date when the demand ends.
- customer_name (string, required): The name of the customer associated with the demand.
- customer_surnames (string, optional): The surnames of the customer associated with the demand. The default value is null.
- nif_cif (string, optional): The identification document of the customer. The default value is null.
- phone_number (string, optional): The phone number of the customer. The default value is null.
- whatsapp (boolean, optional): Boolean indicating if the customer wants to be contacted via WhatsApp. The default value is 0.
- language (string, optional): The language to communicate with the customer. You can get the languages with the call getLanguages. The default value is ‘es’.
- email (string, optional): The email address of the customer. The default value is null.
- id_property (string, optional): The property id. The default value is null.
- types(array, optional): Array that contains arrays with the following fields:
- id_customer_type (integer,optional): The customer type id. The types can be found in the section Customer types.
- id_buyer_category (integer,optional): The buyer category id.
- id_tenant_category (integer,optional): The tenant category id.
- id_owner_category (integer,optional): The owner category id.
- id_industrial_category (integer,optional): The industrial category id.
- id_buyer_status (string,optional): The buyer status id.
- id_tenant_status (string,optional): The buyer status id.
- id_owner_status (string,optional): The owner status id.
- The categories can be found in the section Customer categories. The statuses can be found with the call getCustomerStatuses.
Request example
CURL:
curl --location 'https://movin.cloud/api/real-estate/add-demand' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer SECRETOKEN'
Body example:
{
"activity_title": "Demanda en curso",
"activity_type": “MKfe!fsi&23”
"start_date": "2024-06-17 16:33:09",
"end_date": "2024-06-17 17:33:09”,
"customer_name": "Pep",
"customer_surnames": "Ferrer Ventura",
"nif_cif": "87473278F",
"phone_number": "7987987879",
"whatsapp": 1,
"language": ‘es’,
"email": "kajdas@sdsd.sd",
“id_property”: “132@~$1”
"types": [
{
"id_customer_type": 3,
"id_buyer_category": 1
}
],}
…
Response Example
{
“data”: [
“id_activity”: “Mkd%24w8”
,
"id_customer": "Mkf4$fo95="
]
}