Core


Click here for a complete list of operations.

CancelMultInvoice

Método para cancelar multiples facturas

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /Core.asmx HTTP/1.1
Host: v2.dsconsulting.mx
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/CancelMultInvoice"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CancelMultInvoice xmlns="http://tempuri.org/">
      <dataInvoiceCancels>
        <DataInvoiceCancel>
          <Sus_Id>int</Sus_Id>
          <Fac_Id>long</Fac_Id>
          <Tck_Id>int</Tck_Id>
          <Usuario>string</Usuario>
          <MostrarPropinaFactura>boolean</MostrarPropinaFactura>
          <IdTipoDocumento>int</IdTipoDocumento>
          <BlockTicket>boolean</BlockTicket>
          <Reason>string</Reason>
          <ReplacementUUID>string</ReplacementUUID>
        </DataInvoiceCancel>
        <DataInvoiceCancel>
          <Sus_Id>int</Sus_Id>
          <Fac_Id>long</Fac_Id>
          <Tck_Id>int</Tck_Id>
          <Usuario>string</Usuario>
          <MostrarPropinaFactura>boolean</MostrarPropinaFactura>
          <IdTipoDocumento>int</IdTipoDocumento>
          <BlockTicket>boolean</BlockTicket>
          <Reason>string</Reason>
          <ReplacementUUID>string</ReplacementUUID>
        </DataInvoiceCancel>
      </dataInvoiceCancels>
    </CancelMultInvoice>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CancelMultInvoiceResponse xmlns="http://tempuri.org/">
      <CancelMultInvoiceResult>
        <OutCancelInvoice>
          <xml_file>string</xml_file>
          <pdf_file>string</pdf_file>
          <CodErr>int</CodErr>
          <Message>string</Message>
        </OutCancelInvoice>
        <OutCancelInvoice>
          <xml_file>string</xml_file>
          <pdf_file>string</pdf_file>
          <CodErr>int</CodErr>
          <Message>string</Message>
        </OutCancelInvoice>
      </CancelMultInvoiceResult>
    </CancelMultInvoiceResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /Core.asmx HTTP/1.1
Host: v2.dsconsulting.mx
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <CancelMultInvoice xmlns="http://tempuri.org/">
      <dataInvoiceCancels>
        <DataInvoiceCancel>
          <Sus_Id>int</Sus_Id>
          <Fac_Id>long</Fac_Id>
          <Tck_Id>int</Tck_Id>
          <Usuario>string</Usuario>
          <MostrarPropinaFactura>boolean</MostrarPropinaFactura>
          <IdTipoDocumento>int</IdTipoDocumento>
          <BlockTicket>boolean</BlockTicket>
          <Reason>string</Reason>
          <ReplacementUUID>string</ReplacementUUID>
        </DataInvoiceCancel>
        <DataInvoiceCancel>
          <Sus_Id>int</Sus_Id>
          <Fac_Id>long</Fac_Id>
          <Tck_Id>int</Tck_Id>
          <Usuario>string</Usuario>
          <MostrarPropinaFactura>boolean</MostrarPropinaFactura>
          <IdTipoDocumento>int</IdTipoDocumento>
          <BlockTicket>boolean</BlockTicket>
          <Reason>string</Reason>
          <ReplacementUUID>string</ReplacementUUID>
        </DataInvoiceCancel>
      </dataInvoiceCancels>
    </CancelMultInvoice>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <CancelMultInvoiceResponse xmlns="http://tempuri.org/">
      <CancelMultInvoiceResult>
        <OutCancelInvoice>
          <xml_file>string</xml_file>
          <pdf_file>string</pdf_file>
          <CodErr>int</CodErr>
          <Message>string</Message>
        </OutCancelInvoice>
        <OutCancelInvoice>
          <xml_file>string</xml_file>
          <pdf_file>string</pdf_file>
          <CodErr>int</CodErr>
          <Message>string</Message>
        </OutCancelInvoice>
      </CancelMultInvoiceResult>
    </CancelMultInvoiceResponse>
  </soap12:Body>
</soap12:Envelope>