GET api/Grantor/PreferenceEmission/{GrantorTaxId}

Obtener preferencias de emisión.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
GrantorTaxId

RFC de la empresa

string

Required

Body Parameters

None.

Response Information

Resource Description

ResponseModelApiOfInvoiceSettingApiModel
NameDescriptionTypeAdditional 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

Sample:
{
  "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

Sample:
<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>