PUT api/Grantor/PreferenceEmission
Actualizar datos de preferencias de emisión.
Request Information
URI Parameters
None.
Body Parameters
Datos
InvoiceSettingApiModelName | Description | Type | Additional information |
---|---|---|---|
GrantorTaxId |
RFC de la empresa |
string |
None. |
TaxationId |
Regimén fiscal (código SAT) |
string |
Required |
Serial |
Serie para CFDI de ingreso |
string |
Max length: 25 |
CpagoSerial |
Serie para CFDI de pagos |
string |
Max length: 25 |
PacId |
Identificador del Pac |
integer |
None. |
FlagWithLogo |
Integrar logotipo en representación gráfica PDF |
boolean |
Required |
FlagInvoiceGeneration |
Generar una factura al marcar un recibo como pagado |
boolean |
Required |
FlagInvoiceNotification |
Notificar la emisión de las facturas emitidas automáticamente al marcar un recibo como pagado |
boolean |
Required |
FlagVoucherPayment |
Emitir automáticamente un comprobante de pago al recibir un pago conciliado |
boolean |
Required |
MoralUseCfdiId |
Uso del CFDI persona moral (código SAT) |
string |
Required |
SoleUseCfdiId |
Uso del CFDI persona física (código SAT) |
string |
Required |
OutcomeSerial |
Serie para CFDI de egreso |
string |
Max length: 25 |
TransferSerial |
Serie para CFDI de traslado |
string |
Max length: 25 |
PayrollSerial | string |
Max length: 25 |
|
PrimarySectorSerial |
Serie para sector primario (CFDI de ingreso) |
string |
Max length: 25 |
IsFullyConfigured |
Indica si las configuraciones para emisión estan completas |
boolean |
None. |
ExternalId |
Identificador externo para emisión |
string |
None. |
FlagGlobalRep |
Emitir comprobante de pago global, para pagos de multiples documentos |
boolean |
None. |
Request Formats
application/json, text/json
{ "GrantorTaxId": "sample string 1", "TaxationId": "sample string 2", "Serial": "sample string 3", "CpagoSerial": "sample string 4", "PacId": 1, "FlagWithLogo": true, "FlagInvoiceGeneration": true, "FlagInvoiceNotification": true, "FlagVoucherPayment": true, "MoralUseCfdiId": "sample string 7", "SoleUseCfdiId": "sample string 8", "OutcomeSerial": "sample string 9", "TransferSerial": "sample string 10", "PayrollSerial": "sample string 11", "PrimarySectorSerial": "sample string 12", "IsFullyConfigured": true, "ExternalId": "sample string 14", "FlagGlobalRep": true }
application/xml, text/xml
<InvoiceSettingApiModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <GrantorTaxId>sample string 1</GrantorTaxId> <TaxationId>sample string 2</TaxationId> <Serial>sample string 3</Serial> <CpagoSerial>sample string 4</CpagoSerial> <PacId>1</PacId> <FlagWithLogo>true</FlagWithLogo> <FlagInvoiceGeneration>true</FlagInvoiceGeneration> <FlagInvoiceNotification>true</FlagInvoiceNotification> <FlagVoucherPayment>true</FlagVoucherPayment> <MoralUseCfdiId>sample string 7</MoralUseCfdiId> <SoleUseCfdiId>sample string 8</SoleUseCfdiId> <OutcomeSerial>sample string 9</OutcomeSerial> <TransferSerial>sample string 10</TransferSerial> <PayrollSerial>sample string 11</PayrollSerial> <PrimarySectorSerial>sample string 12</PrimarySectorSerial> <IsFullyConfigured>true</IsFullyConfigured> <ExternalId>sample string 14</ExternalId> <FlagGlobalRep>true</FlagGlobalRep> </InvoiceSettingApiModel>
application/x-www-form-urlencoded
Response Information
Resource Description
ResponseModelApiOfInvoiceSettingApiModelName | 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 |
InvoiceSettingApiModel |
None. |
Response Formats
application/json, text/json
{ "success": true, "message": "sample string 2", "messageDetail": [ "sample string 1", "sample string 2" ], "failureCode": "sample string 3", "data": { "GrantorTaxId": "sample string 1", "TaxationId": "sample string 2", "Serial": "sample string 3", "CpagoSerial": "sample string 4", "PacId": 1, "FlagWithLogo": true, "FlagInvoiceGeneration": true, "FlagInvoiceNotification": true, "FlagVoucherPayment": true, "MoralUseCfdiId": "sample string 7", "SoleUseCfdiId": "sample string 8", "OutcomeSerial": "sample string 9", "TransferSerial": "sample string 10", "PayrollSerial": "sample string 11", "PrimarySectorSerial": "sample string 12", "IsFullyConfigured": true, "ExternalId": "sample string 14", "FlagGlobalRep": true } }
application/xml, text/xml
<ResponseModelApiOfInvoiceSettingApiModel 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> <TaxationId>sample string 2</TaxationId> <Serial>sample string 3</Serial> <CpagoSerial>sample string 4</CpagoSerial> <PacId>1</PacId> <FlagWithLogo>true</FlagWithLogo> <FlagInvoiceGeneration>true</FlagInvoiceGeneration> <FlagInvoiceNotification>true</FlagInvoiceNotification> <FlagVoucherPayment>true</FlagVoucherPayment> <MoralUseCfdiId>sample string 7</MoralUseCfdiId> <SoleUseCfdiId>sample string 8</SoleUseCfdiId> <OutcomeSerial>sample string 9</OutcomeSerial> <TransferSerial>sample string 10</TransferSerial> <PayrollSerial>sample string 11</PayrollSerial> <PrimarySectorSerial>sample string 12</PrimarySectorSerial> <IsFullyConfigured>true</IsFullyConfigured> <ExternalId>sample string 14</ExternalId> <FlagGlobalRep>true</FlagGlobalRep> </data> </ResponseModelApiOfInvoiceSettingApiModel>