Crear Cliente
Esta funcionalidad permite crear un tercero, sea cliente, proveedor u otro.
| Nombre | Tipo | Descripción | Características |
|---|---|---|---|
| type | String | Campo para identificar el tipo de cliente. | Campo opcional, con 3 tipos: "Customer", "Supplier", "Other". Por defecto es "Customer". |
| person_type | String, required | Identifica si el tercero es "person" o "company". | Campo obligatorio, solo acepta "person" o "company". |
| id_type | string, required | Código del tipo de documento. | Campo obligatorio, 13 para cédula y 31 para NIT. |
| identification | String | Número de identificación del cliente. | Campo obligatorio, sin caracteres especiales, máximo 50 caracteres. Solo se permite una identificación ya existente si es una nueva sucursal. |
| check_digit | String | Dígito de verificación. | Campo opcional, números del 0 al 9. |
| name | String, required | Razón social o nombres y apellidos. | Obligatorio. Company: un solo campo; Person: array de 2 campos. Máx 100 caracteres por campo. |
| commercial_name | String | Nombre comercial o de fantasía. | Campo opcional, alfanumérico, permite espacios y caracteres especiales. |
| branch_office | number | Sucursal | Campo opcional. Entero entre 0 y 999. Por defecto 0. |
| active | boolean | Estado del cliente | Campo opcional. Por defecto "true". |
| vat_responsible | boolean | Responsable de IVA | Campo opcional. Por defecto "false". |
| fiscal_responsibilities.code | string, required | Código de responsabilidad fiscal. | Campo obligatorio, comúnmente "R-99-PN". |
| address.address | string, required | Dirección del cliente. | Obligatorio. Alfanumérico, máximo 256 caracteres. |
| address.city.country_code | string, required | Código del país. | Consultar en Siigo Nube. Ejemplo: CO. |
| address.city.state_code | string, required | Código del departamento. | Consultar en Siigo Nube. Ejemplo: 11. |
| address.city.city_code | string, required | Código de la ciudad. | Consultar en Siigo Nube. Ejemplo: 11001. |
| address.postal_code | string | Código postal. | Campo opcional. Alfanumérico, sin espacios, máx 10 caracteres. |
| phones.indicative | string | Indicativo del teléfono | Campo opcional. Numérico, sin espacios ni caracteres especiales, máx 10 caracteres. |
| phones.number | string | Número de contacto | Campo opcional. Numérico, sin espacios ni caracteres especiales, máx 10 caracteres. |
| phones.extension | string | Extensión del número de contacto | Campo opcional. Numérico, sin espacios ni caracteres especiales, máx 10 caracteres. |
| Contacts.first_name | string, required | Nombres del contacto | Campo obligatorio. Máx 50 caracteres, alfanumérico, permite espacios y caracteres especiales. |
| Contacts.last_name | string | Apellidos del contacto | Campo opcional. Máx 50 caracteres, alfanumérico, permite espacios y caracteres especiales. |
| Contacts.email | string | Correo del contacto | Campo opcional. Alfanumérico, sin espacios ni caracteres especiales, máx 100 caracteres. |
| Contacts.phone.indicative | string | Indicativo del teléfono del contacto | Campo opcional. Numérico, sin espacios ni caracteres especiales, máx 10 caracteres. |
| Contacts.phone.number | string | Número de teléfono del contacto | Campo opcional. Numérico, sin espacios ni caracteres especiales, máx 10 caracteres. |
| Contacts.phone.extension | string | Extensión del contacto | Campo opcional. Numérico, sin espacios ni caracteres especiales, máx 10 caracteres. |
| comments | string | Observaciones adicionales | Campo opcional. Alfanumérico, permite espacios y caracteres especiales. Máx 4000 caracteres. |
| seller_id | number | Usuario vendedor asignado al cliente | Campo opcional. Debe existir previamente en Siigo Nube. Consultable con GET a API SIIGO. |
| collector_id | number | Usuario cobrador | Campo opcional. Debe existir previamente en Siigo Nube. Consultable con GET a API SIIGO. |
¿Como consultar terceros en Siigo Nube?
Parámetros para Colombia
| ID | Tipo de identificación | Características del campo "identification" |
|---|---|---|
| 13 | Cédula de ciudadanía | Campo numérico, registro >= 3 y <= 13 únicamente |
| 31 | NIT | Campo numérico, registro >= 3 y <= 13 únicamente |
| 22 | Cédula de extranjería | Alfanumérico, longitud entre 1 y 20 dígitos |
| 42 | Documento de identificación extranjero | Alfanumérico, longitud entre 1 y 20 dígitos |
| 50 | NIT de otro país | Alfanumérico, longitud entre 1 y 20 dígitos |
| R-00-PN | No obligado a registrarse en el RUT PN | Alfanumérico, longitud entre 1 y 20 dígitos |
| 91 | NUIP | Alfanumérico, longitud entre 1 y 20 dígitos |
| 41 | Pasaporte | Alfanumérico, longitud entre 1 y 20 dígitos |
| 47 | Permiso especial de permanencia PEP | Alfanumérico, longitud entre 1 y 20 dígitos |
| 11 | Registro civil | Campo numérico, registro >= 3 y <= 13 únicamente |
| 43 | Sin identificación del exterior o uso DIAN | Alfanumérico, longitud entre 1 y 20 dígitos |
| 21 | Tarjeta de extranjería | Alfanumérico, longitud entre 1 y 20 dígitos |
| 12 | Tarjeta de identidad | Alfanumérico, máximo hasta 20 dígitos |
| 89 | Salvoconducto de permanencia | Alfanumérico, longitud entre 1 y 20 dígitos |
| 48 | Permiso protección temporal PPT | Alfanumérico, longitud entre 1 y 20 dígitos |
| Ciudad | Country Code | State Code | City Code |
|---|---|---|---|
| Bogotá | CO | 11 | 11001 |
| Medellín | CO | 05 | 05001 |
| Nueva York | US | 01 | 0101 |
Aquí encontrarás la Lista de Ciudades que puedes utilizar en Siigo API.
| Código | Responsabilidades fiscales |
|---|---|
| R-99-PN | No Aplica - Otros* |
| O-13 | Gran contribuyente |
| O-15 | Autorretenedor |
| O-23 | Agente de retención IVA |
| O-47 | Régimen simple de tributación |
Authorization
Authorization<token>In: header
Partner-Id<token>In: header
Request Body
application/jsonOptionalRepresents the request with the customer information.
typestringRepresents the customer type (this type can be 'Customer', 'Supplier 'and 'Other'), this field will be 'Customer' by default.
person_typeRepresents the person type, this type can be a 'Person' or 'Company'.
id_typeRepresents the code of type id.
identificationRepresents the identification number of customer. For example, the identifitication number '13832081'.
check_digitstringRepresents the check digit, this digit will be calculated automatically.
nameContains a list of strings with information about customer this information will be commercial_name (or first name and last name, depnding of customer) branch_office, active and vat_responsible
commercial_namestringRepresents the commercial name of customer organization. For example, 'Siigo'.
branch_officeintegerRepresents the branch office of customer, this value by default will be 0.
"int32"activebooleanRepresents the state of customer. This value can be 'true' or 'false', by default will be true.
vat_responsiblebooleanRepresents whether a person is responsible for VAT. This value can be 'true' or 'false', by default will be false.
fiscal_responsibilitiesarray<object>Represents a list of tax responsibilities of a person, by default will be 'R-99-PN'.
addressobjectphonesarray<object>Represents the phones of the customer.
contactsarray<object>Represents the associated contantacts of customer.
commentsstringRepresents additional comments or observations.
related_usersobjectcustom_fieldsarray<object>Allows you to send the purchase order and delivery order fields.
Success