Crear Cliente
POST/api/person
Su propósito es crear un nuevo cliente.
Ejemplo:
- Método: POST
- URL: https://empresa1.demo3pro6.ibu.pe/api/person
- TOKEN: HOHYgwd4atPalTxqi2IIspythpLAU7eP239oByfjk9VuveiOpfUTm4Yg0Szt
Request
- application/json
- application/xml
- application/x-www-form-urlencoded
Body
required
- JSON A ENVIAR
idstring
Example:
null
typestring
Example:
customers
identity_document_type_idstring
Example:
1
numberstringrequired
Example:
72346556
namestringrequired
Example:
Pedro Diaz
trade_namestring
Example:
Nombre Comercial
country_idstring
Example:
PE
department_idstring
Example:
null
province_idstring
Example:
null
district_idstring
Example:
null
addressstring
Example:
Urb Sesquicentenario Vipol Callao
telephonestring
Example:
954533737
conditionstring
Example:
null
statestring
Example:
null
emailstring
Example:
null
perception_agentboolean
Example:
false
percentage_perceptionfloat
Example:
0
more_addressstring[]
Example:
[]
location_idstring[]
Example:
[]
Body
required
- JSON A ENVIAR
idstring
Example:
null
typestring
Example:
customers
identity_document_type_idstring
Example:
1
numberstringrequired
Example:
72346556
namestringrequired
Example:
Pedro Diaz
trade_namestring
Example:
Nombre Comercial
country_idstring
Example:
PE
department_idstring
Example:
null
province_idstring
Example:
null
district_idstring
Example:
null
addressstring
Example:
Urb Sesquicentenario Vipol Callao
telephonestring
Example:
954533737
conditionstring
Example:
null
statestring
Example:
null
emailstring
Example:
null
perception_agentboolean
Example:
false
percentage_perceptionfloat
Example:
0
more_addressstring[]
Example:
[]
location_idstring[]
Example:
[]
Body
required
- JSON A ENVIAR
idstring
Example:
null
typestring
Example:
customers
identity_document_type_idstring
Example:
1
numberstringrequired
Example:
72346556
namestringrequired
Example:
Pedro Diaz
trade_namestring
Example:
Nombre Comercial
country_idstring
Example:
PE
department_idstring
Example:
null
province_idstring
Example:
null
district_idstring
Example:
null
addressstring
Example:
Urb Sesquicentenario Vipol Callao
telephonestring
Example:
954533737
conditionstring
Example:
null
statestring
Example:
null
emailstring
Example:
null
perception_agentboolean
Example:
false
percentage_perceptionfloat
Example:
0
more_addressstring[]
Example:
[]
location_idstring[]
Example:
[]
Responses
- 200
- 400
- 422
JSON RESPUESTA
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
msgstring
Example:
Cliente registrado con éxito
data
object
idinteger
Example:
55
descriptionstring
Example:
72346556 - Pedro Diaz
namestring
Example:
Pedro Diaz
numberstring
Example:
72346556
identity_document_type_idstring
Example:
1
identity_document_type_codestring
Example:
null
addressstring
Example:
Urb Sesquicentenario Vipol Callao
emailstring
Example:
null
telephonestring
Example:
954533737
country_idstring
Example:
PE
district_idstring
Example:
null
selectedboolean
Example:
false
{
"success": true,
"msg": "Cliente registrado con éxito",
"data": {
"id": 55,
"description": "72346556 - Pedro Diaz",
"name": "Pedro Diaz",
"number": "72346556",
"identity_document_type_id": "1",
"identity_document_type_code": null,
"address": "Urb Sesquicentenario Vipol Callao",
"email": null,
"telephone": "954533737",
"country_id": "PE",
"district_id": null,
"selected": false
}
}
- Schema
- Example (from schema)
Schema
successboolean
Example:
true
msgstring
Example:
Cliente registrado con éxito
data
object
idinteger
Example:
55
descriptionstring
Example:
72346556 - Pedro Diaz
namestring
Example:
Pedro Diaz
numberstring
Example:
72346556
identity_document_type_idstring
Example:
1
identity_document_type_codestring
Example:
null
addressstring
Example:
Urb Sesquicentenario Vipol Callao
emailstring
Example:
null
telephonestring
Example:
954533737
country_idstring
Example:
PE
district_idstring
Example:
null
selectedboolean
Example:
false
<root>
<success>true</success>
<msg>Cliente registrado con éxito</msg>
<data>
<id>55</id>
<description>72346556 - Pedro Diaz</description>
<name>Pedro Diaz</name>
<number>72346556</number>
<identity_document_type_id>1</identity_document_type_id>
<identity_document_type_code/>
<address>Urb Sesquicentenario Vipol Callao</address>
<email/>
<telephone>954533737</telephone>
<country_id>PE</country_id>
<district_id/>
<selected>false</selected>
</data>
</root>
Invalid input
Validation exception