POST api/CollectionPolicy/Customer
Guardar politica de cobranza del cliente
Request Information
URI Parameters
None.
Body Parameters
Datos
CollectionPolicy_CustomerModelApiName | Description | Type | Additional information |
---|---|---|---|
GrantorTaxId |
RFC de la empresa |
string |
Required |
CustomerTaxId |
RFC del cliente |
string |
Required |
UseGeneralPolicy |
Usar política general |
boolean |
Required |
IsCreditRateAutomatic |
Notificación al SIC automática |
boolean |
Required |
DefaultNotificationSchemaId |
Plantilla de notificación de cobranza |
globally unique identifier |
Required |
NotificationTypeId |
Tipo de notificación |
integer |
Required |
ShowDocumentDetail |
El cliente puede ver el detalle de la factura |
boolean |
Required |
FlagAttachment |
Enviar documentos como archivos adjuntos |
boolean |
Required |
Request Formats
application/json, text/json
Sample:
{ "GrantorTaxId": "sample string 1", "CustomerTaxId": "sample string 2", "UseGeneralPolicy": true, "IsCreditRateAutomatic": true, "DefaultNotificationSchemaId": "08dd2e49-a1ff-98a1-ba1f-9f1e94b2bdfa", "NotificationTypeId": 1, "ShowDocumentDetail": true, "FlagAttachment": true }
application/xml, text/xml
Sample:
<CollectionPolicy_CustomerModelApi xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <GrantorTaxId>sample string 1</GrantorTaxId> <CustomerTaxId>sample string 2</CustomerTaxId> <UseGeneralPolicy>true</UseGeneralPolicy> <IsCreditRateAutomatic>true</IsCreditRateAutomatic> <DefaultNotificationSchemaId>08dd2e49-a1ff-98a1-ba1f-9f1e94b2bdfa</DefaultNotificationSchemaId> <NotificationTypeId>1</NotificationTypeId> <ShowDocumentDetail>true</ShowDocumentDetail> <FlagAttachment>true</FlagAttachment> </CollectionPolicy_CustomerModelApi>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseModelApiOfCollectionPolicy_CustomerModelApiName | 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 |
CollectionPolicy_CustomerModelApi |
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", "CustomerTaxId": "sample string 2", "UseGeneralPolicy": true, "IsCreditRateAutomatic": true, "DefaultNotificationSchemaId": "08dd2e49-a1ff-98a1-ba1f-9f1e94b2bdfb", "NotificationTypeId": 1, "ShowDocumentDetail": true, "FlagAttachment": true } }
application/xml, text/xml
Sample:
<ResponseModelApiOfCollectionPolicy_CustomerModelApi 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> <CustomerTaxId>sample string 2</CustomerTaxId> <UseGeneralPolicy>true</UseGeneralPolicy> <IsCreditRateAutomatic>true</IsCreditRateAutomatic> <DefaultNotificationSchemaId>08dd2e49-a1ff-98a1-ba1f-9f1e94b2bdfb</DefaultNotificationSchemaId> <NotificationTypeId>1</NotificationTypeId> <ShowDocumentDetail>true</ShowDocumentDetail> <FlagAttachment>true</FlagAttachment> </data> </ResponseModelApiOfCollectionPolicy_CustomerModelApi>