Service
Click here for a complete list of operations.
SendInvoice2xDoc
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 /Service.asmx HTTP/1.1
Host: v1.dsconsulting.mx
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/SendInvoice2xDoc"
<?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>
<SendInvoice2xDoc xmlns="http://tempuri.org/">
<suscriptor>
<Id>int</Id>
<Type>string</Type>
</suscriptor>
<isPdf>boolean</isPdf>
<document>
<Id>int</Id>
<ApprovalNumber>string</ApprovalNumber>
<ApprovalYear>int</ApprovalYear>
<CertificateId>string</CertificateId>
<TypeId>int</TypeId>
<Serie>string</Serie>
<Folio>string</Folio>
<Status>string</Status>
<PaymentWay>string</PaymentWay>
<Export>string</Export>
<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>
<GlobalInformation>
<Period>string</Period>
<Month>string</Month>
<Year>string</Year>
</GlobalInformation>
<RelatedCfdis>
<CFDIRelated>
<RelationShipType>string</RelationShipType>
<UUID>guid</UUID>
</CFDIRelated>
<CFDIRelated>
<RelationShipType>string</RelationShipType>
<UUID>guid</UUID>
</CFDIRelated>
</RelatedCfdis>
<Items>
<CFDIDocumentItem>
<Code>string</Code>
<UnitCode>string</UnitCode>
<Unit>string</Unit>
<Description>string</Description>
<Quantity>decimal</Quantity>
<Price>decimal</Price>
<Amount>decimal</Amount>
<Discount>decimal</Discount>
<Taxes xsi:nil="true" />
<ImportRequest xsi:nil="true" />
<DateOfTheTicket>string</DateOfTheTicket>
<InternalIdentificationNumber>string</InternalIdentificationNumber>
<GlobalIdentifier>string</GlobalIdentifier>
<ReferenceNumber>string</ReferenceNumber>
<GTIN>string</GTIN>
<SKU>string</SKU>
<PedimentNumber>string</PedimentNumber>
<ObjTax>string</ObjTax>
</CFDIDocumentItem>
<CFDIDocumentItem>
<Code>string</Code>
<UnitCode>string</UnitCode>
<Unit>string</Unit>
<Description>string</Description>
<Quantity>decimal</Quantity>
<Price>decimal</Price>
<Amount>decimal</Amount>
<Discount>decimal</Discount>
<Taxes xsi:nil="true" />
<ImportRequest xsi:nil="true" />
<DateOfTheTicket>string</DateOfTheTicket>
<InternalIdentificationNumber>string</InternalIdentificationNumber>
<GlobalIdentifier>string</GlobalIdentifier>
<ReferenceNumber>string</ReferenceNumber>
<GTIN>string</GTIN>
<SKU>string</SKU>
<PedimentNumber>string</PedimentNumber>
<ObjTax>string</ObjTax>
</CFDIDocumentItem>
</Items>
<ExchangeRate>
<Currency>string</Currency>
<ConversionFactor>decimal</ConversionFactor>
</ExchangeRate>
<FiscalFields>
<PaymentWay>string</PaymentWay>
<PaymenthMethod>string</PaymenthMethod>
<IdentificationNumber>string</IdentificationNumber>
<SerieFFO>string</SerieFFO>
<FolioFO>string</FolioFO>
<AmountFFO>decimal</AmountFFO>
<DateFFO>dateTime</DateFFO>
<FiscalRegister>string</FiscalRegister>
</FiscalFields>
<ReceiptPayment>
<ReceiptPaymentDetail>
<ReceiptPaymentDetail xsi:nil="true" />
<ReceiptPaymentDetail xsi:nil="true" />
</ReceiptPaymentDetail>
<IdTransaction>int</IdTransaction>
<Version>string</Version>
<TaxAmountTotal>
<AmountPayment>decimal</AmountPayment>
<WithHeldAmountIVA>decimal</WithHeldAmountIVA>
<WithHeldAmountISR>decimal</WithHeldAmountISR>
<WithHeldAmountIEPS>decimal</WithHeldAmountIEPS>
<BaseTransferredTotalIVA16>decimal</BaseTransferredTotalIVA16>
<TaxTransferredTotalIVA16>decimal</TaxTransferredTotalIVA16>
<BaseTransferredTotalIVA8>decimal</BaseTransferredTotalIVA8>
<TaxTransferredTotalIVA8>decimal</TaxTransferredTotalIVA8>
<BaseTransferredTotalIVA0>decimal</BaseTransferredTotalIVA0>
<TaxTransferredTotalIVA0>decimal</TaxTransferredTotalIVA0>
<BaseTransferredTotalExempt>decimal</BaseTransferredTotalExempt>
</TaxAmountTotal>
</ReceiptPayment>
<CustomComplement>
<Custom>
<Location>int</Location>
<Label>string</Label>
<Value>string</Value>
</Custom>
<Custom>
<Location>int</Location>
<Label>string</Label>
<Value>string</Value>
</Custom>
</CustomComplement>
<AirLineComplement>
<Tua>decimal</Tua>
<TotalCharges>decimal</TotalCharges>
<Charges>
<AirlineCharge xsi:nil="true" />
<AirlineCharge xsi:nil="true" />
</Charges>
</AirLineComplement>
<DonatorComplement>
<AuthorizationNumber>int</AuthorizationNumber>
<OperationType>string</OperationType>
<Legend>string</Legend>
</DonatorComplement>
<IneComplement>
<ProcedureType>string</ProcedureType>
<CommitteeType>string</CommitteeType>
<AccountingId>string</AccountingId>
<Detail>
<IneDetail xsi:nil="true" />
<IneDetail xsi:nil="true" />
</Detail>
</IneComplement>
<Remarks>string</Remarks>
<Taxes>
<Tax>
<Name>string</Name>
<Type>Transferred or WithHeld</Type>
<Rate>decimal</Rate>
<Amount>decimal</Amount>
<Base>decimal</Base>
<Factor>string</Factor>
</Tax>
<Tax>
<Name>string</Name>
<Type>Transferred or WithHeld</Type>
<Rate>decimal</Rate>
<Amount>decimal</Amount>
<Base>decimal</Base>
<Factor>string</Factor>
</Tax>
</Taxes>
<LocalTaxes>
<Tax>
<Name>string</Name>
<Type>Transferred or WithHeld</Type>
<Rate>decimal</Rate>
<Amount>decimal</Amount>
<Base>decimal</Base>
<Factor>string</Factor>
</Tax>
<Tax>
<Name>string</Name>
<Type>Transferred or WithHeld</Type>
<Rate>decimal</Rate>
<Amount>decimal</Amount>
<Base>decimal</Base>
<Factor>string</Factor>
</Tax>
</LocalTaxes>
</document>
</SendInvoice2xDoc>
</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>
<SendInvoice2xDocResponse xmlns="http://tempuri.org/">
<SendInvoice2xDocResult>
<Status>Success or Failed or Warning</Status>
<Message>string</Message>
<DocumentId>guid</DocumentId>
<DocumentContent>string</DocumentContent>
<PdfDocumentContent>string</PdfDocumentContent>
<Totals>
<ConversionFactor>decimal</ConversionFactor>
<Currency>string</Currency>
<SubTotal>decimal</SubTotal>
<DiscountAmount>decimal</DiscountAmount>
<TaxAmount>decimal</TaxAmount>
<TransferredAmount>decimal</TransferredAmount>
<WithHeldAmount>decimal</WithHeldAmount>
<LocalTaxTransferredAmount>decimal</LocalTaxTransferredAmount>
<LocalTaxWithHeldAmount>decimal</LocalTaxWithHeldAmount>
<PaymenthValue>decimal</PaymenthValue>
</Totals>
<HasCreditNote>boolean</HasCreditNote>
<CreditNoteDocumentId>guid</CreditNoteDocumentId>
<CreditNoteDocumentContent>string</CreditNoteDocumentContent>
<CreditNotePdfDocumentContent>string</CreditNotePdfDocumentContent>
</SendInvoice2xDocResult>
</SendInvoice2xDocResponse>
</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 /Service.asmx HTTP/1.1
Host: v1.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>
<SendInvoice2xDoc xmlns="http://tempuri.org/">
<suscriptor>
<Id>int</Id>
<Type>string</Type>
</suscriptor>
<isPdf>boolean</isPdf>
<document>
<Id>int</Id>
<ApprovalNumber>string</ApprovalNumber>
<ApprovalYear>int</ApprovalYear>
<CertificateId>string</CertificateId>
<TypeId>int</TypeId>
<Serie>string</Serie>
<Folio>string</Folio>
<Status>string</Status>
<PaymentWay>string</PaymentWay>
<Export>string</Export>
<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>
<GlobalInformation>
<Period>string</Period>
<Month>string</Month>
<Year>string</Year>
</GlobalInformation>
<RelatedCfdis>
<CFDIRelated>
<RelationShipType>string</RelationShipType>
<UUID>guid</UUID>
</CFDIRelated>
<CFDIRelated>
<RelationShipType>string</RelationShipType>
<UUID>guid</UUID>
</CFDIRelated>
</RelatedCfdis>
<Items>
<CFDIDocumentItem>
<Code>string</Code>
<UnitCode>string</UnitCode>
<Unit>string</Unit>
<Description>string</Description>
<Quantity>decimal</Quantity>
<Price>decimal</Price>
<Amount>decimal</Amount>
<Discount>decimal</Discount>
<Taxes xsi:nil="true" />
<ImportRequest xsi:nil="true" />
<DateOfTheTicket>string</DateOfTheTicket>
<InternalIdentificationNumber>string</InternalIdentificationNumber>
<GlobalIdentifier>string</GlobalIdentifier>
<ReferenceNumber>string</ReferenceNumber>
<GTIN>string</GTIN>
<SKU>string</SKU>
<PedimentNumber>string</PedimentNumber>
<ObjTax>string</ObjTax>
</CFDIDocumentItem>
<CFDIDocumentItem>
<Code>string</Code>
<UnitCode>string</UnitCode>
<Unit>string</Unit>
<Description>string</Description>
<Quantity>decimal</Quantity>
<Price>decimal</Price>
<Amount>decimal</Amount>
<Discount>decimal</Discount>
<Taxes xsi:nil="true" />
<ImportRequest xsi:nil="true" />
<DateOfTheTicket>string</DateOfTheTicket>
<InternalIdentificationNumber>string</InternalIdentificationNumber>
<GlobalIdentifier>string</GlobalIdentifier>
<ReferenceNumber>string</ReferenceNumber>
<GTIN>string</GTIN>
<SKU>string</SKU>
<PedimentNumber>string</PedimentNumber>
<ObjTax>string</ObjTax>
</CFDIDocumentItem>
</Items>
<ExchangeRate>
<Currency>string</Currency>
<ConversionFactor>decimal</ConversionFactor>
</ExchangeRate>
<FiscalFields>
<PaymentWay>string</PaymentWay>
<PaymenthMethod>string</PaymenthMethod>
<IdentificationNumber>string</IdentificationNumber>
<SerieFFO>string</SerieFFO>
<FolioFO>string</FolioFO>
<AmountFFO>decimal</AmountFFO>
<DateFFO>dateTime</DateFFO>
<FiscalRegister>string</FiscalRegister>
</FiscalFields>
<ReceiptPayment>
<ReceiptPaymentDetail>
<ReceiptPaymentDetail xsi:nil="true" />
<ReceiptPaymentDetail xsi:nil="true" />
</ReceiptPaymentDetail>
<IdTransaction>int</IdTransaction>
<Version>string</Version>
<TaxAmountTotal>
<AmountPayment>decimal</AmountPayment>
<WithHeldAmountIVA>decimal</WithHeldAmountIVA>
<WithHeldAmountISR>decimal</WithHeldAmountISR>
<WithHeldAmountIEPS>decimal</WithHeldAmountIEPS>
<BaseTransferredTotalIVA16>decimal</BaseTransferredTotalIVA16>
<TaxTransferredTotalIVA16>decimal</TaxTransferredTotalIVA16>
<BaseTransferredTotalIVA8>decimal</BaseTransferredTotalIVA8>
<TaxTransferredTotalIVA8>decimal</TaxTransferredTotalIVA8>
<BaseTransferredTotalIVA0>decimal</BaseTransferredTotalIVA0>
<TaxTransferredTotalIVA0>decimal</TaxTransferredTotalIVA0>
<BaseTransferredTotalExempt>decimal</BaseTransferredTotalExempt>
</TaxAmountTotal>
</ReceiptPayment>
<CustomComplement>
<Custom>
<Location>int</Location>
<Label>string</Label>
<Value>string</Value>
</Custom>
<Custom>
<Location>int</Location>
<Label>string</Label>
<Value>string</Value>
</Custom>
</CustomComplement>
<AirLineComplement>
<Tua>decimal</Tua>
<TotalCharges>decimal</TotalCharges>
<Charges>
<AirlineCharge xsi:nil="true" />
<AirlineCharge xsi:nil="true" />
</Charges>
</AirLineComplement>
<DonatorComplement>
<AuthorizationNumber>int</AuthorizationNumber>
<OperationType>string</OperationType>
<Legend>string</Legend>
</DonatorComplement>
<IneComplement>
<ProcedureType>string</ProcedureType>
<CommitteeType>string</CommitteeType>
<AccountingId>string</AccountingId>
<Detail>
<IneDetail xsi:nil="true" />
<IneDetail xsi:nil="true" />
</Detail>
</IneComplement>
<Remarks>string</Remarks>
<Taxes>
<Tax>
<Name>string</Name>
<Type>Transferred or WithHeld</Type>
<Rate>decimal</Rate>
<Amount>decimal</Amount>
<Base>decimal</Base>
<Factor>string</Factor>
</Tax>
<Tax>
<Name>string</Name>
<Type>Transferred or WithHeld</Type>
<Rate>decimal</Rate>
<Amount>decimal</Amount>
<Base>decimal</Base>
<Factor>string</Factor>
</Tax>
</Taxes>
<LocalTaxes>
<Tax>
<Name>string</Name>
<Type>Transferred or WithHeld</Type>
<Rate>decimal</Rate>
<Amount>decimal</Amount>
<Base>decimal</Base>
<Factor>string</Factor>
</Tax>
<Tax>
<Name>string</Name>
<Type>Transferred or WithHeld</Type>
<Rate>decimal</Rate>
<Amount>decimal</Amount>
<Base>decimal</Base>
<Factor>string</Factor>
</Tax>
</LocalTaxes>
</document>
</SendInvoice2xDoc>
</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>
<SendInvoice2xDocResponse xmlns="http://tempuri.org/">
<SendInvoice2xDocResult>
<Status>Success or Failed or Warning</Status>
<Message>string</Message>
<DocumentId>guid</DocumentId>
<DocumentContent>string</DocumentContent>
<PdfDocumentContent>string</PdfDocumentContent>
<Totals>
<ConversionFactor>decimal</ConversionFactor>
<Currency>string</Currency>
<SubTotal>decimal</SubTotal>
<DiscountAmount>decimal</DiscountAmount>
<TaxAmount>decimal</TaxAmount>
<TransferredAmount>decimal</TransferredAmount>
<WithHeldAmount>decimal</WithHeldAmount>
<LocalTaxTransferredAmount>decimal</LocalTaxTransferredAmount>
<LocalTaxWithHeldAmount>decimal</LocalTaxWithHeldAmount>
<PaymenthValue>decimal</PaymenthValue>
</Totals>
<HasCreditNote>boolean</HasCreditNote>
<CreditNoteDocumentId>guid</CreditNoteDocumentId>
<CreditNoteDocumentContent>string</CreditNoteDocumentContent>
<CreditNotePdfDocumentContent>string</CreditNotePdfDocumentContent>
</SendInvoice2xDocResult>
</SendInvoice2xDocResponse>
</soap12:Body>
</soap12:Envelope>