POST SofygestApi/Cliente/Posible
Insertamos un nuevo posible cliente
Request Information
URI Parameters
None.
Body Parameters
Dto con los datos del nuevo posible cliente
ClientePosibleDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| IdLocal | integer |
None. |
|
| Numero | integer |
None. |
|
| NombreFiscal | string |
String length: inclusive between 0 and 50 |
|
| NombreComercial | string |
String length: inclusive between 0 and 50 |
|
| Nif | string |
String length: inclusive between 0 and 20 |
|
| string |
String length: inclusive between 0 and 50 |
||
| MovilSms | string |
String length: inclusive between 0 and 15 |
|
| Contacto | string |
String length: inclusive between 0 and 50 |
|
| Observaciones | string |
String length: inclusive between 0 and 4000 |
|
| Comentarios | string |
String length: inclusive between 0 and 200 |
|
| EstaEnDesuso | boolean |
None. |
|
| EnviarPorMail | boolean |
None. |
|
| Agente | BusquedaDto |
None. |
|
| Zona | BusquedaDto |
None. |
|
| Actividad | BusquedaDto |
None. |
|
| Grupo | BusquedaDto |
None. |
|
| Empresa | BusquedaDto |
None. |
|
| Direccion | DireccionPosibleDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"IdLocal": 2,
"Numero": 3,
"NombreFiscal": "sample string 4",
"NombreComercial": "sample string 5",
"Nif": "sample string 6",
"EMail": "sample string 7",
"MovilSms": "sample string 8",
"Contacto": "sample string 9",
"Observaciones": "sample string 10",
"Comentarios": "sample string 11",
"EstaEnDesuso": true,
"EnviarPorMail": true,
"Agente": {
"$id": "2",
"Id": 1,
"IdLocal": 2,
"Nombre": "sample string 3"
},
"Zona": {
"$ref": "2"
},
"Actividad": {
"$ref": "2"
},
"Grupo": {
"$ref": "2"
},
"Empresa": {
"$ref": "2"
},
"Direccion": {
"$id": "3",
"Id": 1,
"IdLocal": 2,
"Domicilio": "sample string 3",
"CodigoPostal": "sample string 4",
"Poblacion": "sample string 5",
"Provincia": {
"$ref": "2"
},
"Pais": {
"$ref": "2"
},
"Telefono1": "sample string 6",
"Telefono2": "sample string 7",
"Fax": "sample string 8"
}
}
application/x-www-form-urlencoded
Sample:
Sample not available.
application/xml, text/xml
Sample:
<ClientePosibleDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Comunes">
<Actividad z:Id="2">
<Id>1</Id>
<IdLocal>2</IdLocal>
<Nombre z:Id="3">sample string 3</Nombre>
</Actividad>
<Agente z:Ref="2" i:nil="true" />
<Comentarios z:Id="4">sample string 11</Comentarios>
<Contacto z:Id="5">sample string 9</Contacto>
<Direccion z:Id="6">
<CodigoPostal z:Id="7">sample string 4</CodigoPostal>
<Domicilio z:Id="8">sample string 3</Domicilio>
<Fax z:Id="9">sample string 8</Fax>
<Id>1</Id>
<IdLocal>2</IdLocal>
<Pais z:Ref="2" i:nil="true" />
<Poblacion z:Id="10">sample string 5</Poblacion>
<Provincia z:Ref="2" i:nil="true" />
<Telefono1 z:Id="11">sample string 6</Telefono1>
<Telefono2 z:Id="12">sample string 7</Telefono2>
</Direccion>
<EMail z:Id="13">sample string 7</EMail>
<Empresa z:Ref="2" i:nil="true" />
<EnviarPorMail>true</EnviarPorMail>
<EstaEnDesuso>true</EstaEnDesuso>
<Grupo z:Ref="2" i:nil="true" />
<Id>1</Id>
<IdLocal>2</IdLocal>
<MovilSms z:Id="14">sample string 8</MovilSms>
<Nif z:Id="15">sample string 6</Nif>
<NombreComercial z:Id="16">sample string 5</NombreComercial>
<NombreFiscal z:Id="17">sample string 4</NombreFiscal>
<Numero>3</Numero>
<Observaciones z:Id="18">sample string 10</Observaciones>
<Zona z:Ref="2" i:nil="true" />
</ClientePosibleDto>
Response Information
Resource Description
No devuelve contenido si la inserción es correcta
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.