POST api/clientes/crear
Request Information
URI Parameters
None.
Body Parameters
Cliente| Name | Description | Type | Additional information |
|---|---|---|---|
| clienteid | integer |
None. |
|
| nombre | string |
Required String length: inclusive between 0 and 100 |
|
| rnc | string |
Required String length: inclusive between 0 and 20 |
|
| balance_prepago | decimal number |
None. |
|
| status | string |
String length: inclusive between 0 and 3 |
|
| industriaid | integer |
None. |
|
| limite_prepago | decimal number |
None. |
|
| tiponcf | integer |
None. |
|
| correo | string |
Required String length: inclusive between 0 and 100 |
|
| direccion1 | string |
String length: inclusive between 0 and 100 |
|
| direccion2 | string |
String length: inclusive between 0 and 100 |
|
| direccion3 | string |
String length: inclusive between 0 and 100 |
|
| balance_credito | decimal number |
None. |
|
| limite_credito | decimal number |
None. |
|
| clave | string |
Required String length: inclusive between 0 and 100 |
|
| dia_factura | integer |
None. |
|
| dias_limite | integer |
None. |
|
| webpage | string |
String length: inclusive between 0 and 50 |
|
| logo | string |
String length: inclusive between 0 and 50 |
|
| Tipo | string |
String length: inclusive between 0 and 45 |
Request Formats
application/json, text/json
Sample:
{
"clienteid": 1,
"nombre": "sample string 2",
"rnc": "sample string 3",
"balance_prepago": 1.0,
"status": "sample string 4",
"industriaid": 1,
"limite_prepago": 1.0,
"tiponcf": 1,
"correo": "sample string 5",
"direccion1": "sample string 6",
"direccion2": "sample string 7",
"direccion3": "sample string 8",
"balance_credito": 1.0,
"limite_credito": 1.0,
"clave": "sample string 9",
"dia_factura": 1,
"dias_limite": 1,
"webpage": "sample string 10",
"logo": "sample string 11",
"Tipo": "sample string 12"
}
application/xml, text/xml
Sample:
<Cliente xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MagyCorpServicesApi.Models"> <Tipo>sample string 12</Tipo> <balance_credito>1</balance_credito> <balance_prepago>1</balance_prepago> <clave>sample string 9</clave> <clienteid>1</clienteid> <correo>sample string 5</correo> <dia_factura>1</dia_factura> <dias_limite>1</dias_limite> <direccion1>sample string 6</direccion1> <direccion2>sample string 7</direccion2> <direccion3>sample string 8</direccion3> <industriaid>1</industriaid> <limite_credito>1</limite_credito> <limite_prepago>1</limite_prepago> <logo>sample string 11</logo> <nombre>sample string 2</nombre> <rnc>sample string 3</rnc> <status>sample string 4</status> <tiponcf>1</tiponcf> <webpage>sample string 10</webpage> </Cliente>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.