Contactos

Crear un contacto

Endpoint que permite crear un contacto en la aplicación

post/contacts

Request

  • Base URL
    https://api.alegra.com/api/v1
  • URL
    https://api.alegra.com/api/v1/contacts
  • Auth
    HTTP basic

Request body

OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR

Example request

{
  "summary": "Creación de contactos para versiones genéricas",
  "value": {
    "name": "Acrecer",
    "identification": "963.654.988",
    "email": "prueba2@alegra.com",
    "phonePrimary": "111 11 11",
    "phoneSecondary": "",
    "fax": "",
    "mobile": "(333) 555-55-55",
    "type": [
      "client"
    ],
    "address": {
      "address": "Avenida Madison",
      "city": "New York, USA"
    },
    "seller": "52",
    "term": "2",
    "priceList": "1",
    "creditLimit": 0,
    "internalContacts": [
      {
        "id": "1",
        "name": "Lina",
        "lastName": "Montoya",
        "email": "prueba4@alegra.com",
        "phone": "123 45 67 ext 25",
        "mobile": "(333) 333 33 33",
        "sendNotifications": "no"
      }
    ]
  }
}

Response

Se crea el contacto exitosamente

0 required(unresolved $ref)
OR
1 required(unresolved $ref)
OR
2 required(unresolved $ref)
OR
3 required(unresolved $ref)
OR
4 required(unresolved $ref)
OR
5 required(unresolved $ref)
OR
6 required(unresolved $ref)
OR
7 required(unresolved $ref)
OR
8 required(unresolved $ref)
OR
9 required(unresolved $ref)
OR
11 required(unresolved $ref)
OR
12 required(unresolved $ref)
OR
13 required(unresolved $ref)
OR
14 required(unresolved $ref)
OR
15 required(unresolved $ref)
OR
16 required(unresolved $ref)
OR
17 required(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.