Inicio  |  Emisión  |  Connector  |  Types of connectors  |  Connector-TXT 5.1 for purchase order
La LCO fue actualizada por última vez el 10/feb./2026

Connector-TXT 5.1 for purchase order

File

The end of line (EOL), new line or linebreak can be any one used in common operative systems: CR, LF or CR+LF.

Field separation

The default character used to separate each field is "pipe" (|, ASCII 124), if you need another character, it needs to be specified in your implementation´s configuration. However we suggest not to choose simple characters like comma "," or semicolon ";" because this may interfere with the field's data extraction if the data contains such characters.

File structure

The first line of the file does not contain the definition of the columns. The file can have as many lines as necessary and can include as many purchase orders as required.

It is necessary to respect the order indicated in the data directory, so it will be necessary to attend to the requirements to avoid errors in the process.

Txt 5.1 chain structure for purchase order

|NUMERO_COMPRA|NOMBRE_SERIE|STATUS|IS_CLOSED|NUM_PROVEEDOR|TIPO_PROVEEDOR|PROVEEDOR|RFC_PROVEEDOR|CALLE_FISCAL|NUMERO_EXT_FISCAL|NUMERO_INT_FISCAL|COLONIA_FISCAL|CIUDAD_FISCAL|MUNICIPIO_FISCAL|ESTADO_FISCAL|PAIS_FISCAL|CP_FISCAL|CALLE_EMBARQUE|NUMERO_EXT_EMBARQUE|NUMERO_INT_EMBARQUE|COLONIA_EMBARQUE|CIUDAD_EMBARQUE|MUNICIPIO_EMBARQUE|ESTADO_EMBARQUE|PAIS_EMBARQUE|CP_EMBARQUE|FECHA_ORDEN|FECHA_EMBARQUE|OBJETO_RELACION|NAME_OBJETO_RELACION|NOTAS|TERMINOS|MONEDA|TIPO_CAMBIO|TIPO_DESCUENTO|DESCUENTO|SUBTOTAL_ORDEN|TOTAL_DESCUENTOS|TOTAL_TRASLADOS|TOTAL_IVA|TOTAL_IEPS|TOTAL_RETENCIONES|TOTAL_ORDEN|LINEA_AISLADO|LINEA_CODIGO|LINEA_NAME|LINEA_UNIDAD|LINEA_CANTIDAD|LINEA_PRECIO|LINEA_IMPORTE|LINEA_TASA_DESCUENTO|LINEA_MONTO_UNIT_DESCUENTO|LINEA_TASA_IEPS|LINEA_MONTO_UNIT_IEPS|LINEA_TASA_IVA|LINEA_TASA_RET_IVA|LINEA_TASA_RET_ISR|LINEA_FECHA_EMBARQUE|LINEA_OBJETO_RELACION|LINEA_NAME_OBJETO_RELACION|LINEA_ALMACEN|LINEA_COMENTARIO|LINEA_OVERRIDE|LINEA_FRACCIONABLE|LINEA_CODIGO_DE_COMPRADOR|LINEA_CANTIDAD_POR_EMPAQUE|

Example

|9001|OCN|ABIERTA|FALSE|32321321|Proveedor|ABASTECEDORA S.A. DE C.V.|AMA0101019N0|Juarez|122|B|Centro|Guadalajara|Guadalajara|Jalisco|MEX|45400||||||||||10012023|11022023|proyecto|prueba|Notas de orden|30 dias|MXN|1|||100||16|16|||116|TRUE01010101|produto|PZA|1|100|116|||||||||||||||||


Data dictionary

Name Description Options
NUMERO_COMPRA Purchase Order NumberString
NOMBRE_SERIEPurchase order series String
STATUSThe status of the Purchase Order is indicated 0(Open), 1(Partially
stocked), 2(Closed).
IS_CLOSED It indicates whether the purchase order is open or closed.TRUE, FALSE
NUM_PROVEEDOR Number assigned to the proveedor (supplier)Numeric
TIPO_PROVEEDORSupplier typeSupplier, Contact, Customer
PROVEEDORSupplier nameAlphanumeric
RFC_PROVEEDORSupplier RFC 13 character Física person,
12 character Moral person.
"[A-Z,Ñ,&]{3,4}[0-9]{2}[0-1][0-
9][0-3][0-9][A-Z,0-9]?[A-Z,0-
9]?[0-9,A-Z]?"
CALLE_FISCAL Attribute to specify the avenue, street, road or highway where the location is givenString
NUMERO_EXT_FISCAL Attribute is used to express the particular number where the location on a given street is given. String
NUMERO_INT_FISCAL Attribute is used to express additional information to specify the location when street and exterior number (noExterior) are not sufficient to determine the location accurately. String
COLONIA_FISCAL Attribute is used to specify the colony where the location is given when you want to be more specific in cases of urban locations. String
CIUDAD_FISCAL Attribute used to specify the city or town where the location is given. String
MUNICIPIO_FISCAL Attribute used to specify the municipality or delegation where the location is given. String
ESTADO_FISCAL Attribute used to specify the state or federal entity where the location occurs. String
PAIS_FISCAL Atributo requerido que sirve para precisar el país donde se da la ubicación. String
CP_FISCAL Attribute used to establish the postal code where the location is given. String
CALLE_EMBARQUE Required attribute is used to specify the avenue, street, road or highway where the location occurs. String
NUMERO_EXT_EMBARQUE Attribute is used to express the particular number where the location on a given street is given. String
NUMERO_INT_EMBARQUE Attribute is used to express additional information to specify the location when street and exterior number (noExterior) are not sufficient to determine the location accurately. String
COLONIA_EMBARQUE Attribute is used to specify the colony where the location is given when you want to be more specific in cases of urban locations. String
CIUDAD_EMBARQUE Attribute used to specify the city or town where the location is given. String
MUNICIPIO_EMBARQUE Required attribute used to specify the municipality or delegation where the location is given. String
ESTADO_EMBARQUE Required attribute used to specify the state or federal entity where the location occurs. String
PAIS_EMBARQUE Required attribute used to specify the country where the location is given. String
CP_EMBARQUE Required attribute used to establish the postal code where the location is given. String
FECHA_ORDEN Purchase Order Creation Date yyyymmdd
FECHA_EMBARQUEBoarding date yyyymmdd
OBJETO_RELACION The relationship is indicated whether it is a project or an opportunity. 13(Project), 2(Opportunity).
NAME_OBJETO_RELACIONProject Name or Opportunity String
NOTASPurchase Order Notes String
TERMINOS The terms of the purchase are indicated 30 days, 15 days, etc.
MONEDA Attribute to express the currency used to express the amountsMXN, USD
TIPO_CAMBIO Attribute to represent the exchange rate according to the currency used Decimal ”[09]{1,18}(.[0-9]{1,6})?”
TIPO_DESCUENTODiscount type 
DESCUENTO Attribute to represent the total amount of applicable discounts before taxes. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
SUBTOTAL_ORDEN Required attribute to represent the sum of amounts before discounts and taxes. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
TOTAL_DESCUENTOS Attribute to represent the total amount of applicable discounts before taxes. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
TOTAL_TRASLADOS Attribute to express the total of the transferred taxes that arise from the concepts expressed in the Purchase Order. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
TOTAL_IVA Required attribute to indicate the amount of IVA transferred. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
TOTAL_IEPS Required attribute to indicate the amount of IEPS tax transferred. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
TOTAL_RETENCIONES Attribute to express the total of the withheld taxes that arise from the concepts expressed in the Purchase Order. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
TOTAL_ORDEN Required attribute to represent the sum of the subtotal, less applicable discounts, plus taxes carried forward, less taxes withheld. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
LINEA_AISLADO Manual capture of concepts is indicated. (true)
LINEA_CODIGO Attribute to express the code of the good or identifier of the service covered by this concept. String
LINEA_NAME Node to enter detailed information about a good or service. String
LINEA_UNIDAD Attribute required to specify the applicable unit of measurement for the quantity expressed in the concept. String
PZA, CJA, TON
LINEA_PRECIO Attribute required to specify the value or unit price of the good or service covered by this concept. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
LINEA_IMPORTE Required attribute to specify the total amount of the goods or services in this concept. It must be equivalent to the result of multiplying the quantity by the unit value expressed in the concept. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
LINEA_TASA_DESCUENTO Required attribute to indicate the discount rate that is added for each concept. Decimal
LINEA_MONTO_UNIT_DESCUENTO Product discount unit amount per line. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
LINEA_TASA_IEPS Required attribute to indicate the IEPS tax rate that is transferred for each concept. Decimal
LINEA_MONTO_UNIT_IEPS Required attribute to indicate the amount of IEPS tax transferred. Decimal ”[0-9]{1,18}(.[0-
9]{1,6})?”
LINEA_TASA_IVA Required attribute to indicate the IVA tax rate that is transferred for each concept. Decimal
LINEA_TASA_RET_IVA Required attribute to indicate the IVA tax rate that is withheld for each concept. Decimal
LINEA_TASA_RET_ISR Required attribute to indicate the ISR tax rate that is withheld for each concept. Decimal
LINEA_FECHA_EMBARQUE Shipping Date yyyymmdd
LINEA_OBJETO_RELACION    
LINEA_NAME_OBJETO_RELACION    
LINEA_ALMACEN Product warehouse name by line String
LINEA_COMENTARIO Product review by line String
LINEA_OVERRIDE    
LINEA_FRACCIONABLE    
LINEA_CODIGO_DE_COMPRADOR Product Buyer Product Code by Line String
LINEA_CANTIDAD_POR_EMPAQUE Quantity per product package per line Decimal

Datos de contacto
comments powered by Disqus