POST api/estancos
Request Information
URI Parameters
None.
Body Parameters
EstancoBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| idEmpresa | integer |
None. |
|
| nif | string |
Required String length: inclusive between 9 and 10 |
|
| nombre | string |
Required String length: inclusive between 2 and 100 |
|
| propietario | string |
Required String length: inclusive between 2 and 100 |
|
| direccion | string |
Required String length: inclusive between 2 and 100 |
|
| poblacion | string |
Required String length: inclusive between 2 and 45 |
|
| cp | string |
Required String length: inclusive between 5 and 5 |
|
| provincia | string |
Required String length: inclusive between 2 and 100 |
|
| telefono | string |
String length: inclusive between 0 and 15 |
|
| fax | string |
String length: inclusive between 0 and 15 |
|
| movil | string |
String length: inclusive between 0 and 15 |
|
| string |
Data type: EmailAddress String length: inclusive between 0 and 100 |
||
| lat | decimal number |
None. |
|
| lng | decimal number |
None. |
|
| idComisionado | string |
String length: inclusive between 0 and 10 |
|
| stratorPDV_code | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"idEmpresa": 1,
"nif": "sample string 2",
"nombre": "sample string 3",
"propietario": "sample string 4",
"direccion": "sample string 5",
"poblacion": "sample string 6",
"cp": "sample string 7",
"provincia": "sample string 8",
"telefono": "sample string 9",
"fax": "sample string 10",
"movil": "sample string 11",
"email": "sample string 12",
"lat": 1.1,
"lng": 1.1,
"idComisionado": "sample string 13",
"stratorPDV_code": 1
}
application/xml, text/xml
Sample:
<EstancoBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VendingAPI.Models"> <cp>sample string 7</cp> <direccion>sample string 5</direccion> <email>sample string 12</email> <fax>sample string 10</fax> <idComisionado>sample string 13</idComisionado> <idEmpresa>1</idEmpresa> <lat>1.1</lat> <lng>1.1</lng> <movil>sample string 11</movil> <nif>sample string 2</nif> <nombre>sample string 3</nombre> <poblacion>sample string 6</poblacion> <propietario>sample string 4</propietario> <provincia>sample string 8</provincia> <stratorPDV_code>1</stratorPDV_code> <telefono>sample string 9</telefono> </EstancoBindingModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |