Core


Click here for a complete list of operations.

InsertTicket

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/InsertTicket"

<?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>
    <InsertTicket xmlns="http://tempuri.org/">
      <subscriber>
        <Sus_Id>int</Sus_Id>
        <TaxId>string</TaxId>
        <SenderName>string</SenderName>
        <Ident>int</Ident>
        <Branch>
          <Suc_Id>int</Suc_Id>
          <BranchName>string</BranchName>
        </Branch>
      </subscriber>
      <ticket>
        <Tck_Id>int</Tck_Id>
        <TicketNumber>string</TicketNumber>
        <TicketDate>dateTime</TicketDate>
        <Status>O or P or C or F or N or P_T or B or R or M or _0 or MT or O_T or E</Status>
        <SubTotal>decimal</SubTotal>
        <Discount>decimal</Discount>
        <TotalTaxes>decimal</TotalTaxes>
        <Rate>decimal</Rate>
        <Total>decimal</Total>
        <PaymentMethod>string</PaymentMethod>
        <PaymentWay>string</PaymentWay>
        <IdDocumentType>int</IdDocumentType>
        <Currency>string</Currency>
        <ExchangeRate>decimal</ExchangeRate>
        <Taxes>
          <Tax>
            <Type>string</Type>
            <Rate>decimal</Rate>
            <Amount>decimal</Amount>
            <TaxType>Transferred or Retention</TaxType>
            <TaxBase>decimal</TaxBase>
          </Tax>
          <Tax>
            <Type>string</Type>
            <Rate>decimal</Rate>
            <Amount>decimal</Amount>
            <TaxType>Transferred or Retention</TaxType>
            <TaxBase>decimal</TaxBase>
          </Tax>
        </Taxes>
        <Items>
          <Item>
            <Description>string</Description>
            <Quantity>decimal</Quantity>
            <UnitPrice>decimal</UnitPrice>
            <Amount>decimal</Amount>
            <Type>string</Type>
            <UnitMeasurement>string</UnitMeasurement>
            <ProductServiceKey>string</ProductServiceKey>
            <UnitKey>string</UnitKey>
            <Discount>decimal</Discount>
            <RequirementNumber>string</RequirementNumber>
            <InternalIdentifier>string</InternalIdentifier>
            <SKU>string</SKU>
            <Taxes xsi:nil="true" />
            <ObjTax>string</ObjTax>
            <ImportRequests xsi:nil="true" />
          </Item>
          <Item>
            <Description>string</Description>
            <Quantity>decimal</Quantity>
            <UnitPrice>decimal</UnitPrice>
            <Amount>decimal</Amount>
            <Type>string</Type>
            <UnitMeasurement>string</UnitMeasurement>
            <ProductServiceKey>string</ProductServiceKey>
            <UnitKey>string</UnitKey>
            <Discount>decimal</Discount>
            <RequirementNumber>string</RequirementNumber>
            <InternalIdentifier>string</InternalIdentifier>
            <SKU>string</SKU>
            <Taxes xsi:nil="true" />
            <ObjTax>string</ObjTax>
            <ImportRequests xsi:nil="true" />
          </Item>
        </Items>
        <TicketFile>
          <Content>base64Binary</Content>
          <Extension>string</Extension>
          <FileName>string</FileName>
        </TicketFile>
        <Version>string</Version>
        <IdentificationNumber>string</IdentificationNumber>
        <IsComplete>boolean</IsComplete>
        <CFDISerie>string</CFDISerie>
        <CFDINumber>int</CFDINumber>
        <ErrorMessage>string</ErrorMessage>
        <IsCancelation>boolean</IsCancelation>
        <GlobalIdentifier>string</GlobalIdentifier>
        <TotalCharges>decimal</TotalCharges>
        <DetailsComplement>string</DetailsComplement>
        <GenerateInvoice>boolean</GenerateInvoice>
        <TaxId>string</TaxId>
        <Serie>string</Serie>
        <Folio>string</Folio>
        <BlockMessage>string</BlockMessage>
        <Propina>decimal</Propina>
        <Export>string</Export>
        <Customs>
          <Custom>
            <Location>int</Location>
            <Label>string</Label>
            <Value>string</Value>
          </Custom>
          <Custom>
            <Location>int</Location>
            <Label>string</Label>
            <Value>string</Value>
          </Custom>
        </Customs>
        <RelatedTicket>
          <TcksRel>string</TcksRel>
          <SucRel>string</SucRel>
          <DateRel>dateTime</DateRel>
        </RelatedTicket>
        <LocalTax>
          <Tax>
            <Type>string</Type>
            <Rate>decimal</Rate>
            <Amount>decimal</Amount>
            <TaxType>Transferred or Retention</TaxType>
            <TaxBase>decimal</TaxBase>
          </Tax>
          <Tax>
            <Type>string</Type>
            <Rate>decimal</Rate>
            <Amount>decimal</Amount>
            <TaxType>Transferred or Retention</TaxType>
            <TaxBase>decimal</TaxBase>
          </Tax>
        </LocalTax>
        <TicketCustoms>
          <Custom>
            <Location>int</Location>
            <Label>string</Label>
            <Value>string</Value>
          </Custom>
          <Custom>
            <Location>int</Location>
            <Label>string</Label>
            <Value>string</Value>
          </Custom>
        </TicketCustoms>
        <Issuer>
          <PlaceIssue>
            <Street>string</Street>
            <OutSideNumber>string</OutSideNumber>
            <InnerNumber>string</InnerNumber>
            <Colony>string</Colony>
            <ZipCode>string</ZipCode>
            <Location>string</Location>
            <Town>string</Town>
            <State>string</State>
            <Country>string</Country>
          </PlaceIssue>
        </Issuer>
        <Receiver>
          <Email>string</Email>
          <CFDIUsage>string</CFDIUsage>
          <TaxIdentityNumber>string</TaxIdentityNumber>
        </Receiver>
      </ticket>
      <invoice>
        <FechaEmisionFG>dateTime</FechaEmisionFG>
        <Descuento>decimal</Descuento>
        <CertNumber>string</CertNumber>
        <TipoFactura>int</TipoFactura>
        <Suc_Id>int</Suc_Id>
        <Iva>decimal</Iva>
        <UUID>guid</UUID>
        <Fac_Id>int</Fac_Id>
        <Tck_Id>int</Tck_Id>
        <Sus_Id>int</Sus_Id>
        <Fec_Emi>dateTime</Fec_Emi>
        <Status>string</Status>
        <Fec_Can>dateTime</Fec_Can>
        <Usu_Can>string</Usu_Can>
        <Serie>string</Serie>
        <Folio>long</Folio>
        <Cer_Id>int</Cer_Id>
        <Sell_Id>int</Sell_Id>
        <RFC>string</RFC>
        <Nombre>string</Nombre>
        <Calle>string</Calle>
        <NoExt>string</NoExt>
        <NoInt>string</NoInt>
        <Colonia>string</Colonia>
        <Localidad>string</Localidad>
        <Municipio>string</Municipio>
        <Estado>string</Estado>
        <Pais>string</Pais>
        <CodPost>string</CodPost>
        <EmailCFDI>string</EmailCFDI>
        <IdTipoDocumento>int</IdTipoDocumento>
        <Monto>decimal</Monto>
        <UsoCFDI>string</UsoCFDI>
        <RegimenFiscal>string</RegimenFiscal>
      </invoice>
    </InsertTicket>
  </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>
    <InsertTicketResponse xmlns="http://tempuri.org/">
      <InsertTicketResult>string</InsertTicketResult>
    </InsertTicketResponse>
  </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>
    <InsertTicket xmlns="http://tempuri.org/">
      <subscriber>
        <Sus_Id>int</Sus_Id>
        <TaxId>string</TaxId>
        <SenderName>string</SenderName>
        <Ident>int</Ident>
        <Branch>
          <Suc_Id>int</Suc_Id>
          <BranchName>string</BranchName>
        </Branch>
      </subscriber>
      <ticket>
        <Tck_Id>int</Tck_Id>
        <TicketNumber>string</TicketNumber>
        <TicketDate>dateTime</TicketDate>
        <Status>O or P or C or F or N or P_T or B or R or M or _0 or MT or O_T or E</Status>
        <SubTotal>decimal</SubTotal>
        <Discount>decimal</Discount>
        <TotalTaxes>decimal</TotalTaxes>
        <Rate>decimal</Rate>
        <Total>decimal</Total>
        <PaymentMethod>string</PaymentMethod>
        <PaymentWay>string</PaymentWay>
        <IdDocumentType>int</IdDocumentType>
        <Currency>string</Currency>
        <ExchangeRate>decimal</ExchangeRate>
        <Taxes>
          <Tax>
            <Type>string</Type>
            <Rate>decimal</Rate>
            <Amount>decimal</Amount>
            <TaxType>Transferred or Retention</TaxType>
            <TaxBase>decimal</TaxBase>
          </Tax>
          <Tax>
            <Type>string</Type>
            <Rate>decimal</Rate>
            <Amount>decimal</Amount>
            <TaxType>Transferred or Retention</TaxType>
            <TaxBase>decimal</TaxBase>
          </Tax>
        </Taxes>
        <Items>
          <Item>
            <Description>string</Description>
            <Quantity>decimal</Quantity>
            <UnitPrice>decimal</UnitPrice>
            <Amount>decimal</Amount>
            <Type>string</Type>
            <UnitMeasurement>string</UnitMeasurement>
            <ProductServiceKey>string</ProductServiceKey>
            <UnitKey>string</UnitKey>
            <Discount>decimal</Discount>
            <RequirementNumber>string</RequirementNumber>
            <InternalIdentifier>string</InternalIdentifier>
            <SKU>string</SKU>
            <Taxes xsi:nil="true" />
            <ObjTax>string</ObjTax>
            <ImportRequests xsi:nil="true" />
          </Item>
          <Item>
            <Description>string</Description>
            <Quantity>decimal</Quantity>
            <UnitPrice>decimal</UnitPrice>
            <Amount>decimal</Amount>
            <Type>string</Type>
            <UnitMeasurement>string</UnitMeasurement>
            <ProductServiceKey>string</ProductServiceKey>
            <UnitKey>string</UnitKey>
            <Discount>decimal</Discount>
            <RequirementNumber>string</RequirementNumber>
            <InternalIdentifier>string</InternalIdentifier>
            <SKU>string</SKU>
            <Taxes xsi:nil="true" />
            <ObjTax>string</ObjTax>
            <ImportRequests xsi:nil="true" />
          </Item>
        </Items>
        <TicketFile>
          <Content>base64Binary</Content>
          <Extension>string</Extension>
          <FileName>string</FileName>
        </TicketFile>
        <Version>string</Version>
        <IdentificationNumber>string</IdentificationNumber>
        <IsComplete>boolean</IsComplete>
        <CFDISerie>string</CFDISerie>
        <CFDINumber>int</CFDINumber>
        <ErrorMessage>string</ErrorMessage>
        <IsCancelation>boolean</IsCancelation>
        <GlobalIdentifier>string</GlobalIdentifier>
        <TotalCharges>decimal</TotalCharges>
        <DetailsComplement>string</DetailsComplement>
        <GenerateInvoice>boolean</GenerateInvoice>
        <TaxId>string</TaxId>
        <Serie>string</Serie>
        <Folio>string</Folio>
        <BlockMessage>string</BlockMessage>
        <Propina>decimal</Propina>
        <Export>string</Export>
        <Customs>
          <Custom>
            <Location>int</Location>
            <Label>string</Label>
            <Value>string</Value>
          </Custom>
          <Custom>
            <Location>int</Location>
            <Label>string</Label>
            <Value>string</Value>
          </Custom>
        </Customs>
        <RelatedTicket>
          <TcksRel>string</TcksRel>
          <SucRel>string</SucRel>
          <DateRel>dateTime</DateRel>
        </RelatedTicket>
        <LocalTax>
          <Tax>
            <Type>string</Type>
            <Rate>decimal</Rate>
            <Amount>decimal</Amount>
            <TaxType>Transferred or Retention</TaxType>
            <TaxBase>decimal</TaxBase>
          </Tax>
          <Tax>
            <Type>string</Type>
            <Rate>decimal</Rate>
            <Amount>decimal</Amount>
            <TaxType>Transferred or Retention</TaxType>
            <TaxBase>decimal</TaxBase>
          </Tax>
        </LocalTax>
        <TicketCustoms>
          <Custom>
            <Location>int</Location>
            <Label>string</Label>
            <Value>string</Value>
          </Custom>
          <Custom>
            <Location>int</Location>
            <Label>string</Label>
            <Value>string</Value>
          </Custom>
        </TicketCustoms>
        <Issuer>
          <PlaceIssue>
            <Street>string</Street>
            <OutSideNumber>string</OutSideNumber>
            <InnerNumber>string</InnerNumber>
            <Colony>string</Colony>
            <ZipCode>string</ZipCode>
            <Location>string</Location>
            <Town>string</Town>
            <State>string</State>
            <Country>string</Country>
          </PlaceIssue>
        </Issuer>
        <Receiver>
          <Email>string</Email>
          <CFDIUsage>string</CFDIUsage>
          <TaxIdentityNumber>string</TaxIdentityNumber>
        </Receiver>
      </ticket>
      <invoice>
        <FechaEmisionFG>dateTime</FechaEmisionFG>
        <Descuento>decimal</Descuento>
        <CertNumber>string</CertNumber>
        <TipoFactura>int</TipoFactura>
        <Suc_Id>int</Suc_Id>
        <Iva>decimal</Iva>
        <UUID>guid</UUID>
        <Fac_Id>int</Fac_Id>
        <Tck_Id>int</Tck_Id>
        <Sus_Id>int</Sus_Id>
        <Fec_Emi>dateTime</Fec_Emi>
        <Status>string</Status>
        <Fec_Can>dateTime</Fec_Can>
        <Usu_Can>string</Usu_Can>
        <Serie>string</Serie>
        <Folio>long</Folio>
        <Cer_Id>int</Cer_Id>
        <Sell_Id>int</Sell_Id>
        <RFC>string</RFC>
        <Nombre>string</Nombre>
        <Calle>string</Calle>
        <NoExt>string</NoExt>
        <NoInt>string</NoInt>
        <Colonia>string</Colonia>
        <Localidad>string</Localidad>
        <Municipio>string</Municipio>
        <Estado>string</Estado>
        <Pais>string</Pais>
        <CodPost>string</CodPost>
        <EmailCFDI>string</EmailCFDI>
        <IdTipoDocumento>int</IdTipoDocumento>
        <Monto>decimal</Monto>
        <UsoCFDI>string</UsoCFDI>
        <RegimenFiscal>string</RegimenFiscal>
      </invoice>
    </InsertTicket>
  </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>
    <InsertTicketResponse xmlns="http://tempuri.org/">
      <InsertTicketResult>string</InsertTicketResult>
    </InsertTicketResponse>
  </soap12:Body>
</soap12:Envelope>