Click or drag to resize

SatXmlReceiptVersion Method

Find version number of Comprobante element or ID number for other document types.

Namespace: FirmaSAT
Assembly: diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.70.0.38178 (10.70.0.0)
Syntax
public static int XmlReceiptVersion(
	string xmlFile
)

Parameters

xmlFile  String
Name of XML file

Return Value

Int32
Version number or ID number, or a negative error code.
  • 40 = Comprobante document with Version="4.0"
  • 33 = Comprobante document with version="3.3"
  • 1010/1020 = Retenciones document with Version="1.0"/"2.0"
  • 2011/2013 = CatalogoCuentas document with Version="1.1"/"1.3"
  • 2111/2113 = BalanzaComprobacion document with Version="1.1"/"1.3"
  • 2211/2213 = PolizasPeriodo document with Version="1.1"/"1.3"
  • 2312/2313 = AuxiliarFolios document with Version="1.2"/"1.3"
  • 2411/2413 = AuxiliarCtas document with Version="1.1"/"1.3"
  • 2511 = SelloDigitalContElec document with Version="1.1"
  • 4011 = ControlesVolumetricos document with Version="1.1"
Example
C#
Console.WriteLine(Sat.XmlReceiptVersion("cfdv40-ejemplo.xml"));  // 40
See Also