Contact
Create Contact

Create contact

Creates a new Contact object.

POST/contact/create

Parameters

name - string required
The contact's name.


email - string required unique
The contact's email.


enterprise_identifier - string or integer required
The attribute for attach contact to an exisiting enterprise. This can be the enterprise cif, name, email or id .


More parameters

  • surname - string
  • surname_2 - string
  • phone - string
  • phone_2" - string
  • position - string
  • nif - string
  • skype - string
  • linkedin - string
  • facebook - string
  • instagram - string
  • comments - string

We are still working on the definitions of each parameter.

Example (using cif as enterprise_identifier)
{
  "name": "Contact",
  "surname": "Test",
  "surname_2": null,
  "email": "contact@salesly.app",
  "enterprise_identifier": "G1234DD6789",
  "phone": "938206362",
  "phone_2": null,
  "nif": "4455332D",
  "position": null,
  "skype": null,
  "linkedin": null,
  "instagram": null,
  "facebook": null,
  "comments": null
}

Response

status 200

Full contact object created.

Response
{
    "name": "Contact",
    "surname": "Test",
    "surname_2": null,
    "email": "contact@salesly.app",
    "phone": "938206362",
    "position": null,
    "skype": null,
    "phone_2": null,
    "linkedin": null,
    "instagram": null,
    "facebook": null,
    "comments": null,
    "updated_at": "2023-10-24 15:57:02",
    "created_at": "2023-10-24 15:57:02",
    "id": 17,
    "enterprises": [
        {
            "id": 15,
            "name": "Salesly2.app",
            "email": "test@salesly.app",
            "comments": null,
            "cif": "G1234DD6789",
            "phone": "938206362",
            "phone_2": null,
            "iban": null,
            "web": null,
            "public": 0,
            "last_event": null,
            "next_event": null,
            "last_opportunity_sale_date": null,
            "state": 0,
            "type": 1,
            "no_user": 0,
            "created_at": "2023-10-24 15:41:15",
            "updated_at": "2023-10-24 15:41:15",
            "deleted_at": null,
            "extra_field": null,
            "contacted": null,
            "mailchimp_unsubscribed": null,
            "fiscal_equal_commercial": true,
            "fiscal_name": null,
            "fiscal_address": null,
            "store_discount": null,
            "instagram": null,
            "facebook": null,
            "pivot": {
                "contact_id": 17,
                "enterprise_id": 15,
                "created_at": "2023-10-24 15:57:02",
                "updated_at": "2023-10-24 15:57:02"
            }
        }
    ]
}