POST api/Empresas
Request Information
URI Parameters
None.
Body Parameters
EmpresasName | Description | Type | Additional information |
---|---|---|---|
RNC_O_CEDULA | string |
Required |
|
RazonSocial | string |
Required |
|
NombreComercial | string |
Required |
|
Actividad | integer |
Required |
|
FechaConstitucion | date |
Required |
|
EsZonaFranca | boolean |
None. |
|
DocRepLegal | string |
Required |
|
NombreRepLegal | string |
Required |
|
AQueSeDedica | string |
Required |
|
NombreContacto | string |
Required |
|
ValorInstalaciones | decimal number |
Required |
|
string |
Required Data type: EmailAddress |
||
Telefono | string |
Required Data type: PhoneNumber |
|
Provincia | string |
Required |
|
Municipio | string |
Required |
|
DistritoMunicipal | string |
Required |
|
Seccion | string |
Required |
|
Barrio | string |
Required |
|
Apartamento | string |
None. |
|
Numero | string |
None. |
|
CodigoPostal | string |
None. |
|
Calle | string |
None. |
|
PlazaComercial | string |
None. |
|
ReferenciaDireccion | string |
None. |
|
NSS | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "RNC_O_CEDULA": "sample string 1", "RazonSocial": "sample string 2", "NombreComercial": "sample string 3", "Actividad": 4, "FechaConstitucion": "2024-12-22T21:02:45.010397-04:00", "EsZonaFranca": true, "DocRepLegal": "sample string 7", "NombreRepLegal": "sample string 8", "AQueSeDedica": "sample string 9", "NombreContacto": "sample string 10", "ValorInstalaciones": 11.0, "Email": "sample string 12", "Telefono": "sample string 13", "Provincia": "sample string 14", "Municipio": "sample string 15", "DistritoMunicipal": "sample string 16", "Seccion": "sample string 17", "Barrio": "sample string 18", "Apartamento": "sample string 19", "Numero": "sample string 20", "CodigoPostal": "sample string 21", "Calle": "sample string 22", "PlazaComercial": "sample string 23", "ReferenciaDireccion": "sample string 24", "NSS": "sample string 25" }
text/xml
Sample:
<Empresas xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ovi.WebAPI.Models"> <AQueSeDedica>sample string 9</AQueSeDedica> <Actividad>4</Actividad> <Apartamento>sample string 19</Apartamento> <Barrio>sample string 18</Barrio> <Calle>sample string 22</Calle> <CodigoPostal>sample string 21</CodigoPostal> <DistritoMunicipal>sample string 16</DistritoMunicipal> <DocRepLegal>sample string 7</DocRepLegal> <Email>sample string 12</Email> <EsZonaFranca>true</EsZonaFranca> <FechaConstitucion>2024-12-22T21:02:45.010397-04:00</FechaConstitucion> <Municipio>sample string 15</Municipio> <NSS>sample string 25</NSS> <NombreComercial>sample string 3</NombreComercial> <NombreContacto>sample string 10</NombreContacto> <NombreRepLegal>sample string 8</NombreRepLegal> <Numero>sample string 20</Numero> <PlazaComercial>sample string 23</PlazaComercial> <Provincia>sample string 14</Provincia> <RNC_O_CEDULA>sample string 1</RNC_O_CEDULA> <RazonSocial>sample string 2</RazonSocial> <ReferenciaDireccion>sample string 24</ReferenciaDireccion> <Seccion>sample string 17</Seccion> <Telefono>sample string 13</Telefono> <ValorInstalaciones>11</ValorInstalaciones> </Empresas>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EmpresaResponseName | Description | Type | Additional information |
---|---|---|---|
RNL | string |
None. |
|
Errors | Collection of DbValidationError |
None. |
|
Flag | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "RNL": "sample string 1", "Errors": null, "Flag": 2, "Message": "sample string 3" }
text/xml
Sample:
<EmpresaResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ovi.WebAPI.Models"> <Flag>2</Flag> <Message>sample string 3</Message> <Errors xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Data.Entity.Validation" i:nil="true" /> <RNL>sample string 1</RNL> </EmpresaResponse>