POST api/Entity/CreateClient

Método para crear cliente

Request Information

URI Parameters

None.

Body Parameters

ClientModel
NombreDescripciónTipoInformación Adicional
IdentityDocument

Número de Documento de Identidad.

string

Required

IdentityDocumentType

Tipo de Documento de Identidad (DNI: 1 - RUC: 2)

integer

Required

Address

Dirección.

string

Required

AddressInteriorNumber

Número de Interior.

string

Required

AddressNumber

Número de Dirección.

string

Required

Block

Bloque.

string

Required

CorporateName

Nombre Corporativo.

string

Required

EconomicActivityId

Actividad Economica.

integer

Required

Lot

Lote.

string

Required

PersonType

Tipo de Cliente.

string

Required

PhantasyName

Nombre Comercial.

string

Required

StreetTypeId

Tipo de Calle.

integer

Required

SunatId

Tipo de Actividad Sunat.

integer

Required

UrbanizationDescription

Nombre de Urbanización.

string

Required

UrbanizationTypeId

Tipo de Urbanización.

integer

Required

UbigeoCode

Codigo de Ubigeo [Departamento (2) + Provincia (2) + Distrito (2)].

string

Required

String length: inclusive between 0 and 6

Request Formats

application/json, text/json

Sample:
{
  "IdentityDocument": "sample string 1",
  "IdentityDocumentType": 2,
  "Address": "sample string 3",
  "AddressInteriorNumber": "sample string 4",
  "AddressNumber": "sample string 5",
  "Block": "sample string 6",
  "CorporateName": "sample string 7",
  "EconomicActivityId": 8,
  "Lot": "sample string 9",
  "PersonType": "sample string 10",
  "PhantasyName": "sample string 11",
  "StreetTypeId": 12,
  "SunatId": 13,
  "UrbanizationDescription": "sample string 14",
  "UrbanizationTypeId": 15,
  "UbigeoCode": "sample string 16"
}

application/xml, text/xml

Sample:
<ClientModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Sanitas.ServicesWeb.Outside.Models">
  <Address>sample string 3</Address>
  <AddressInteriorNumber>sample string 4</AddressInteriorNumber>
  <AddressNumber>sample string 5</AddressNumber>
  <Block>sample string 6</Block>
  <CorporateName>sample string 7</CorporateName>
  <EconomicActivityId>8</EconomicActivityId>
  <IdentityDocument>sample string 1</IdentityDocument>
  <IdentityDocumentType>2</IdentityDocumentType>
  <Lot>sample string 9</Lot>
  <PersonType>sample string 10</PersonType>
  <PhantasyName>sample string 11</PhantasyName>
  <StreetTypeId>12</StreetTypeId>
  <SunatId>13</SunatId>
  <UbigeoCode>sample string 16</UbigeoCode>
  <UrbanizationDescription>sample string 14</UrbanizationDescription>
  <UrbanizationTypeId>15</UrbanizationTypeId>
</ClientModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ClientModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.