POST api/dynamics/clients
Crear cliente
Request Information
URI Parameters
None.
Body Parameters
GrantorCrmModelApiName | Description | Type | Additional information |
---|---|---|---|
client | ClientModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "client": { "client_id": "sample string 1", "tax_id": "sample string 2", "PersonTypeId": 1, "tradename": "sample string 3", "business_name": "sample string 4", "Email": "sample string 5", "contact": { "name": "sample string 1", "email": "sample string 2", "cellphone": "sample string 3", "phone": "sample string 4" }, "address": { "postal_code": "sample string 1", "country": "sample string 2", "state": "sample string 3", "city": "sample string 4", "suburb": "sample string 5", "street": "sample string 6", "internal_number": "sample string 7", "external_number": "sample string 8" }, "recurrences": { "recurrence_id": "sample string 1", "package_id": "sample string 2", "name": "sample string 3", "price": 4.0, "services": [ { "service_id": "sample string 1", "transaction_limit": 2, "value": "sample string 3", "serviceid_ext": "sample string 4" }, { "service_id": "sample string 1", "transaction_limit": 2, "value": "sample string 3", "serviceid_ext": "sample string 4" } ] } } }
application/xml, text/xml
Sample:
<GrantorCrmModelApi xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <client> <client_id>sample string 1</client_id> <tax_id>sample string 2</tax_id> <PersonTypeId>1</PersonTypeId> <tradename>sample string 3</tradename> <business_name>sample string 4</business_name> <Email>sample string 5</Email> <contact> <name>sample string 1</name> <email>sample string 2</email> <cellphone>sample string 3</cellphone> <phone>sample string 4</phone> </contact> <address> <postal_code>sample string 1</postal_code> <country>sample string 2</country> <state>sample string 3</state> <city>sample string 4</city> <suburb>sample string 5</suburb> <street>sample string 6</street> <internal_number>sample string 7</internal_number> <external_number>sample string 8</external_number> </address> <recurrences> <recurrence_id>sample string 1</recurrence_id> <package_id>sample string 2</package_id> <name>sample string 3</name> <price>4</price> <services> <ServicesModel> <service_id>sample string 1</service_id> <transaction_limit>2</transaction_limit> <value>sample string 3</value> <serviceid_ext>sample string 4</serviceid_ext> </ServicesModel> <ServicesModel> <service_id>sample string 1</service_id> <transaction_limit>2</transaction_limit> <value>sample string 3</value> <serviceid_ext>sample string 4</serviceid_ext> </ServicesModel> </services> </recurrences> </client> </GrantorCrmModelApi>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseModelApiOfObjectName | Description | Type | Additional information |
---|---|---|---|
success |
Indica si la solicitud se procesó de manera satisfactoria |
boolean |
None. |
message |
Mensaje de la solicitud |
string |
None. |
messageDetail |
Lista de mensajes |
Collection of string |
None. |
failureCode |
Código de error en caso de existir |
string |
None. |
data |
Layout de respuesta de la solicitud |
Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "success": true, "message": "sample string 2", "messageDetail": [ "sample string 1", "sample string 2" ], "failureCode": "sample string 3", "data": {} }
application/xml, text/xml
Sample:
<ResponseModelApiOfObject xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <success>true</success> <message>sample string 2</message> <messageDetail> <string>sample string 1</string> <string>sample string 2</string> </messageDetail> <failureCode>sample string 3</failureCode> <data /> </ResponseModelApiOfObject>