PUT api/Grantor/AditionalService
Actualizar servicios adicionales.
Request Information
URI Parameters
None.
Body Parameters
Datos
PutAditionalServiceApiModelName | Description | Type | Additional information |
---|---|---|---|
GrantorTaxId |
RFC de la empresa |
string |
Required |
Services |
Lista de servivios adicionales |
Collection of PutComercialDetailsApiModel |
Required |
Request Formats
application/json, text/json
Sample:
{ "GrantorTaxId": "sample string 1", "Services": [ { "ServiceId": 1, "IsHired": true }, { "ServiceId": 1, "IsHired": true } ] }
application/xml, text/xml
Sample:
<PutAditionalServiceApiModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <GrantorTaxId>sample string 1</GrantorTaxId> <Services> <PutComercialDetailsApiModel> <ServiceId>1</ServiceId> <IsHired>true</IsHired> </PutComercialDetailsApiModel> <PutComercialDetailsApiModel> <ServiceId>1</ServiceId> <IsHired>true</IsHired> </PutComercialDetailsApiModel> </Services> </PutAditionalServiceApiModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseModelApiOfPutAditionalServiceApiModelName | 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 |
PutAditionalServiceApiModel |
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": { "GrantorTaxId": "sample string 1", "Services": [ { "ServiceId": 1, "IsHired": true }, { "ServiceId": 1, "IsHired": true } ] } }
application/xml, text/xml
Sample:
<ResponseModelApiOfPutAditionalServiceApiModel 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> <GrantorTaxId>sample string 1</GrantorTaxId> <Services> <PutComercialDetailsApiModel> <ServiceId>1</ServiceId> <IsHired>true</IsHired> </PutComercialDetailsApiModel> <PutComercialDetailsApiModel> <ServiceId>1</ServiceId> <IsHired>true</IsHired> </PutComercialDetailsApiModel> </Services> </data> </ResponseModelApiOfPutAditionalServiceApiModel>