Input File Specifications

This document defines the technical structure and formatting requirements for the Automatic Debit collection files.

File Naming Convention

Files must follow a strict naming pattern so the engine can correctly identify and route each batch:

*SellerCode*_YYYYMMDD_IN.txt

Example: 65059_20250528_IN.txt

Technical Constraints

The table below summarises the general limits and format requirements that apply to every Input file:

RequirementSpecification
File FormatPlain Text (.txt) fixed-width or delimited (as per integration sheet)
EncodingUTF-8 (without BOM)
Maximum Records1,000,000 lines
Maximum File Size250 MB
Maximum File Lenght203 characters

Field Specifications

Each record in the Input file must contain the following fields, using the data types and rules described in this table:

Field NameType (Size)MandatoryDescription
Numero de tarjetaNumeric (19)YesCard number. Always send exactly 19 digits, padding with leading zeros on the left if needed (e.g., 5123 must be sent as 00000000000000005123).
Identificador del debitoString (36)YesUnique ID used to track the debit from enrollment to cancellation.
Fecha del debitoDate (YYYYMMDD)YesThe date the transaction should be executed.
ImporteNumeric (25)YesValue in the smallest unit of local currency (e.g., $102.25 is sent as 0000000000000000000010225 to reach 25 digits). Always pad with leading zeros on the left until the field length is exactly 25 characters.
Identificador del clienteString (36)NoMerchant's internal identifier for the customer.
Soft DescriptorString (22)NoText that appears on the cardholder's statement (e.g., DETALLE*TIENDA).
Dato opcionalString (36)NoOptional field for merchant's usage.
Tipo operaciónString (6)YesCREDIT, DEBIT or CANCEL.
Identificador extrenoNumeric (15)YesExternal reference number for the merchant's transaction/order identification.

Formatting Logic

When building each line of the file, apply these formatting rules consistently across all records:

  • Decimal Handling: Do not include dots or commas. Multiply the amount by 100 to send the value in cents.
  • Padding: Numeric fields must be left-padded with zeros to reach the specified length. String field must be right-padded spaces.
  • Refunds: To process a refund, use the CANCEL operation type and provide the Payment ID, sourced from the payment_ID field in the output file.
  • Padding: Numeric fields must be left-padded with zeros to reach the specified length.
  • Refunds: To process a refund, use the CANCEL operation type and provide the Payment ID from the original transaction.

Next Steps

Use these related guides to apply this specification in your daily operation.