GET GetContact

Obtener contacto por email

Request Information

URI Parameters

None.

Body Parameters

email, tipo y número de documento del adquirente, al que pertenece el contacto

GetContact
NameDescriptionTypeAdditional information
acquirerDocumentTypeCode

Tipo de documento del adquirente

string

Required

acquirerDocumentNumber

Número de documento del adquirente

string

Required

email

Correo electrónico del contacto

string

Required

Request Formats

application/json, text/json

Sample:
{
  "acquirerDocumentTypeCode": "sample string 1",
  "acquirerDocumentNumber": "sample string 2",
  "email": "sample string 3"
}

application/xml, text/xml

Sample:
<GetContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models">
  <acquirerDocumentNumber>sample string 2</acquirerDocumentNumber>
  <acquirerDocumentTypeCode>sample string 1</acquirerDocumentTypeCode>
  <email>sample string 3</email>
</GetContact>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Contact
NameDescriptionTypeAdditional information
documentTypeCode

Código de tipo de identificación del contacto.

string

String length: inclusive between 0 and 5

documentNumber

Número de identificación del contacto.

string

Required

String length: inclusive between 0 and 256

email

Correo electrónico del contacto

string

Required

Matching regular expression pattern: ^([\w+-.%]+@[\w.-]+\.[A-Za-z]{2,10})(;[\w+-.%]+@[\w.-]+\.[A-Za-z]{2,10})*$

String length: inclusive between 0 and 512

fullName

Nombre completo del contacto

string

Required

String length: inclusive between 0 and 256

address

Dirección del contacto

string

String length: inclusive between 0 and 256

phoneNumber

Número telefonico

string

Optional

cellphoneNumber

Número de celular

string

Optional

sendInvoice

Enviar facturas al adquirente

boolean

Required

contract

Contrato.

string

String length: inclusive between 0 and 50

position

Cargo dentro de la compañia del contacto

string

Optional

active

Estado del contacto en el sistema (activo o inactivo).

boolean

Required

Response Formats

application/json, text/json

Sample:
{
  "documentTypeCode": "sample string 1",
  "documentNumber": "sample string 2",
  "email": "sample string 3",
  "fullName": "sample string 4",
  "address": "sample string 5",
  "phoneNumber": "sample string 6",
  "cellphoneNumber": "sample string 7",
  "sendInvoice": true,
  "contract": "sample string 9",
  "position": "sample string 10",
  "active": true
}

application/xml, text/xml

Sample:
<Contact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIRestUBL21.Models">
  <active>true</active>
  <address>sample string 5</address>
  <cellphoneNumber>sample string 7</cellphoneNumber>
  <contract>sample string 9</contract>
  <documentNumber>sample string 2</documentNumber>
  <documentTypeCode>sample string 1</documentTypeCode>
  <email>sample string 3</email>
  <fullName>sample string 4</fullName>
  <phoneNumber>sample string 6</phoneNumber>
  <position>sample string 10</position>
  <sendInvoice>true</sendInvoice>
</Contact>