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:
nulltypestring
Example:
customersidentity_document_type_idstring
Example:
1numberstringrequired
Example:
72346556namestringrequired
Example:
Pedro Diaztrade_namestring
Example:
Nombre Comercialcountry_idstring
Example:
PEdepartment_idstring
Example:
nullprovince_idstring
Example:
nulldistrict_idstring
Example:
nulladdressstring
Example:
Urb Sesquicentenario Vipol Callaotelephonestring
Example:
954533737conditionstring
Example:
nullstatestring
Example:
nullemailstring
Example:
nullperception_agentboolean
Example:
falsepercentage_perceptionfloat
Example:
0more_addressstring[]
Example:
[]location_idstring[]
Example:
[]Body
required
- JSON A ENVIAR
idstring
Example:
nulltypestring
Example:
customersidentity_document_type_idstring
Example:
1numberstringrequired
Example:
72346556namestringrequired
Example:
Pedro Diaztrade_namestring
Example:
Nombre Comercialcountry_idstring
Example:
PEdepartment_idstring
Example:
nullprovince_idstring
Example:
nulldistrict_idstring
Example:
nulladdressstring
Example:
Urb Sesquicentenario Vipol Callaotelephonestring
Example:
954533737conditionstring
Example:
nullstatestring
Example:
nullemailstring
Example:
nullperception_agentboolean
Example:
falsepercentage_perceptionfloat
Example:
0more_addressstring[]
Example:
[]location_idstring[]
Example:
[]Body
required
- JSON A ENVIAR
idstring
Example:
nulltypestring
Example:
customersidentity_document_type_idstring
Example:
1numberstringrequired
Example:
72346556namestringrequired
Example:
Pedro Diaztrade_namestring
Example:
Nombre Comercialcountry_idstring
Example:
PEdepartment_idstring
Example:
nullprovince_idstring
Example:
nulldistrict_idstring
Example:
nulladdressstring
Example:
Urb Sesquicentenario Vipol Callaotelephonestring
Example:
954533737conditionstring
Example:
nullstatestring
Example:
nullemailstring
Example:
nullperception_agentboolean
Example:
falsepercentage_perceptionfloat
Example:
0more_addressstring[]
Example:
[]location_idstring[]
Example:
[]Responses
- 200
- 400
- 422
JSON RESPUESTA
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
successboolean
Example:
truemsgstring
Example:
Cliente registrado con éxitodata
object
idinteger
Example:
55descriptionstring
Example:
72346556 - Pedro Diaznamestring
Example:
Pedro Diaznumberstring
Example:
72346556identity_document_type_idstring
Example:
1identity_document_type_codestring
Example:
nulladdressstring
Example:
Urb Sesquicentenario Vipol Callaoemailstring
Example:
nulltelephonestring
Example:
954533737country_idstring
Example:
PEdistrict_idstring
Example:
nullselectedboolean
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:
truemsgstring
Example:
Cliente registrado con éxitodata
object
idinteger
Example:
55descriptionstring
Example:
72346556 - Pedro Diaznamestring
Example:
Pedro Diaznumberstring
Example:
72346556identity_document_type_idstring
Example:
1identity_document_type_codestring
Example:
nulladdressstring
Example:
Urb Sesquicentenario Vipol Callaoemailstring
Example:
nulltelephonestring
Example:
954533737country_idstring
Example:
PEdistrict_idstring
Example:
nullselectedboolean
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