POST api/Invoice/Issue/{InvoiceDocumentTypeId}

Emitir CFDI o recibo

Request Information

URI Parameters

NameDescriptionTypeAdditional information
InvoiceDocumentTypeId

Tipo de documento

InvoiceDocumentType

Default value is Factura

Body Parameters

Parametros de emisión

InvoiceParamModelApi
NameDescriptionTypeAdditional information
xml

Xml

string

None.

CustomerContactInfoesId

Identificador del contacto

globally unique identifier

None.

SellerId

Código del vendedor

globally unique identifier

None.

ExchangeRateTypeId

Tipo de cambio

integer

None.

BranchId

Código de la sucursal

integer

None.

DocumentCategoryCode

Código de la categoría

string

None.

InvoiceId

Identificador

integer

None.

Parciality

Parcialidades

InvoiceParcialityModelApi

None.

Validation

Validacion sincrona

boolean

None.

ExternalId

Identificador externo del documento

string

None.

EmittedBy

string

None.

AutoIssuance

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "xml": "sample string 1",
  "CustomerContactInfoesId": "08dd2e4b-0a48-1738-ba1f-9f167cb485bd",
  "SellerId": "08dd2e4b-0a48-1738-ba1f-9f167cb485be",
  "ExchangeRateTypeId": 1,
  "BranchId": 1,
  "DocumentCategoryCode": "sample string 2",
  "InvoiceId": 1,
  "Parciality": {
    "NoParciality": 1,
    "FrequencyId": 2,
    "Tax": 1,
    "ParcialityType": 1,
    "VariableParciality": [
      {
        "Date": "2025-01-06T06:09:58.640505-06:00",
        "Percentage": 2.0
      },
      {
        "Date": "2025-01-06T06:09:58.640505-06:00",
        "Percentage": 2.0
      }
    ]
  },
  "Validation": true,
  "ExternalId": "sample string 3",
  "EmittedBy": "sample string 4",
  "AutoIssuance": true
}

application/xml, text/xml

Sample:
<InvoiceParamModelApi xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <xml>sample string 1</xml>
  <CustomerContactInfoesId>08dd2e4b-0a48-1738-ba1f-9f167cb485bd</CustomerContactInfoesId>
  <SellerId>08dd2e4b-0a48-1738-ba1f-9f167cb485be</SellerId>
  <ExchangeRateTypeId>1</ExchangeRateTypeId>
  <BranchId>1</BranchId>
  <DocumentCategoryCode>sample string 2</DocumentCategoryCode>
  <InvoiceId>1</InvoiceId>
  <Parciality>
    <NoParciality>1</NoParciality>
    <FrequencyId>2</FrequencyId>
    <Tax>1</Tax>
    <ParcialityType>1</ParcialityType>
    <VariableParciality>
      <VariableParcialityInfoModel>
        <Date>2025-01-06T06:09:58.640505-06:00</Date>
        <Percentage>2</Percentage>
      </VariableParcialityInfoModel>
      <VariableParcialityInfoModel>
        <Date>2025-01-06T06:09:58.640505-06:00</Date>
        <Percentage>2</Percentage>
      </VariableParcialityInfoModel>
    </VariableParciality>
  </Parciality>
  <Validation>true</Validation>
  <ExternalId>sample string 3</ExternalId>
  <EmittedBy>sample string 4</EmittedBy>
  <AutoIssuance>true</AutoIssuance>
</InvoiceParamModelApi>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'InvoiceParamModelApi'.

Response Information

Resource Description

ResponseModelApiOfString
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

string

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": "sample string 4"
}

application/xml, text/xml

Sample:
<ResponseModelApiOfString 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>sample string 4</data>
</ResponseModelApiOfString>