API DOCUMENTATION
getCustomer (pOST)
Returns the customer information given the customer id.
Body params:
- id_customer (string, required): The id of the customer.
 
Request examples
CURL:
curl --location 'https://movin.cloud/api/real-estate/get-customer' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer SECRETOKEN'
Body example:
{
    “id_customer”: “21@#$2a”,
}
Response Example
{
    "data": {
        "general_info": {
            "id_customer": "MjQkMzYxMDM=",
            "name": "Carlos Juan",
            "nif_cif": "7ioy7ylalalalalololololol",
            "phone_number": "+34689456124",
            "whatsapp": 1,
            "language": "en",
            "email": "aaaasd@sasc.adf",
            "company": 1,
            "registration_date": "2020-01-13",
            "vip": 0,
            "active": 1,
            "geo_fullname": "Castelldefels, Província de Barcelona, Catalunya, ES",
            "pending_rental": 0,
            "payment_method_info": {
                "id_payment_method": 1,
                "name": "Transferencia"
            },
            "contact_source_info": {
                "contact_source": 14,
                "name": "Colaborador"
            },
            "contact_method_info": {
                "contact_method": 3,
                "name": null
            },
            "assigned_salesperson_info": {
                "id_assigned_salesperson": "MjQkNDEyMjA=",
                "name": "Aleix",
                "surnames": "4DMOVIN",
                "email": "aleix.serra@namastech.com",
                "phone_number": "690680630"
            },
            "potential_agency": 0,
            "no_resident": 0
        },
        "customer_relation_type_info": [
            {
                "id_customer_type": 1,
                "customer_type_name": "Arrendador"
            },
            {
                "id_customer_type": 2,
                "customer_type_name": "Colaborador"
            },
            {
                "id_customer_type": 3,
                "customer_type_name": "Comprador"
            },
            {
                "id_customer_type": 4,
                "customer_type_name": "Inquilino"
            },
            {
                "id_customer_type": 5,
                "customer_type_name": "Vendedor"
            },
            {
                "id_customer_type": 6,
                "customer_type_name": "Arrendador temporal"
            },
            {
                "id_customer_type": 12,
                "customer_type_name": "Empresa"
            },
            {
                "id_buyer_category": 1,
                "buyer_category_name": "A - Le urge comprar",
                "id_tenant_category": 7,
                "tenant_category_name": "A - Le urge alquilar",
                "id_owner_category": 30,
                "owner_category_name": "Lead propietario",
                "id_buyer_status": 5,
                "buyer_status_name": "1º visita",
                "id_tenant_status": 11,
                "tenant_status_name": "1º visita",
                "id_owner_status": 19,
                "owner_status_name": "Captación aprobada"
            }
        ],
        "contacts_company_info": [
            {
                "id_customer": "MjQkMzYxMTI=",
                "name": "Ángela",
                "surnames": "Ruíz Roca -",
                "job_title_info": {
                    "id_job_title": 2,
                    "name": "cargo 2"
                },
                "contact_email": "angelaruizroca@jmai.kom"
            },
            {
                "id_customer": "MjQkMzYxMTQ=",
                "name": "Belén",
                "surnames": "González Peñalba",
                "job_title_info": {
                    "id_job_title": 1,
                    "name": "cargo 1"
                },
                "contact_email": "asdasd@asdas.aaa"
            },
            {
                "id_customer": "MjckMTU0ODk=",
                "name": "TEST JAN 55"
            },
            {
                "id_customer": "MjckMTY3MDM=",
                "name": "test 110324",
                "surnames": "waaa"
            },
            {
                "id_customer": "MjckMjgzMDc=",
                "name": "efvdfvdxv",
                "job_title_info": {
                    "id_job_title": 1,
                    "name": "cargo 1"
                }
            },
            {
                "id_customer": "MjckMjgzMDg=",
                "name": "m,m,m,m,"
            },
            {
                "id_customer": "MjckMjgzMDk=",
                "name": "m,m,m,m,"
            },
            {
                "id_customer": "MjckMjgzMTA=",
                "name": "m,m,m,m,"
            },
            {
                "id_customer": "MjckMjgzMTM=",
                "name": "TEST JAN 9080"
            },
            {
                "id_customer": "MjckMjgzMTQ=",
                "name": "JJJOJJJO"
            },
            {
                "id_customer": "MjckMzk5MDI=",
                "name": "Pep"
            },
            {
                "id_customer": "MjckMzk5MDM=",
                "name": "Pep"
            },
            {
                "id_customer": "MjckNDExMDk=",
                "name": "Pep",
                "surnames": "Ferrer Ventura",
                "contact_address": "sdfg",
                "contact_phone_number": "534545322",
                "contact_email": "3fwfe4gr@dgdf.dr"
            },
            {
                "id_customer": "MjckNDQxNzA=",
                "name": "Test",
                "surnames": "Postman 3",
                "job_title_info": {
                    "id_job_title": 1,
                    "name": "cargo 1"
                },
                "contact_address": "Testtttt",
                "contact_phone_number": "109439309",
                "contact_email": "psdo@sdofi.es"
            }
        ]
    }
}
