Batch processing

In the Batch Processing section, execute bulk operations for:

  • Refunds: Returns the total or partial amount of a transaction.
  • Transaction captures: Confirms the retention of previously authorized funds.
  • Transaction voids: Cancels an authorized transaction before the money is captured.

This tool facilitates the loading of a large volume of transactions by uploading a CSV file.

📘

This mechanism currently supports capture, refund, and void operations.

1. Download the template

To ensure that the loaded data is correct and follows the required format, the system offers a sample CSV file for each operation (template). This template contains the necessary fields for each supported operation.

  1. Access the Batch Processing section.
  2. Download the CSV template corresponding to the operation you want to execute (refund, capture or void).
  3. Complete the template with the data of the transactions you want to process. Make sure that the entered values respect the format of each column (transaction ID, amount, etc.).

Refunds

The following table shows the template for refunds:

Field nameTypeDescription
batch_idheaderUnique identifier assigned by the user, this cannot be repeated per batch. (Numeric)
transaction_typeheaderIn the case of the refund template, the value must be refund
reasonheaderThe user can specify per batch, a reason for the operation. (for example, flight cancellation)
transaction_idrowUnique identifier of the transaction to be refunded.
currencyrowTransaction currency (for example, USD, MXN).
amount_to_refundrowAmount to refund (partial or total). The cent value must be included, without commas or periods. (for example, 1226.00 USD, the amount 122600 must be entered)

Captures

The following table shows the template for captures:

Field nameTypeDescription
batch_idheaderUnique identifier assigned by the user, this cannot be repeated per batch. (Numeric)
transaction_typeheaderIn the case of the capture template, the value must be capture
transaction_idrowUnique identifier of the transaction to be refunded.
currencyrowTransaction currency (for example, USD, MXN).
amount_to_refundrowAmount to refund (partial or total). The cent value must be included, without commas or periods. (for example, 1226.00 USD, the amount 122600 must be entered)

Voids

The following table shows the template for voids:

Field nameTypeDescription
batch_idheaderUnique identifier assigned by the user, this cannot be repeated per batch. (Numeric)
transaction_typeheaderIn the case of the void template, the value must be void
transaction_idrowUnique identifier of the transaction to be refunded.

2. Upload the file

Upload the completed CSV file in the DEUNA Admin:

  1. Go to Batch Processing.
  2. Click Upload batch
  3. Assign a name for the file upload.
  4. Upload the CSV file
  5. Click Validate.

📘

After uploading the file, the system validates it.

3. Batch result

The possible file statuses are as follows:

StatusDescriptionRequired action
ValidatingThe file has been uploaded and is being validated.Wait.
To ResolveThe file has errors that require manual intervention.Correct the errors and re-upload the file.
RejectedThe file has failed validation.Review and correct the indicated errors and re-upload the file.
ProcessingThe file has passed validation and is being processed.Wait for processing to finish.
CompletedFile processing has finished.Review the results in the response file.

File errors

Download a file with the error details per file or per transaction if the file contains errors.

The following table documents the possible errors and their categories:

CategoryError nameDescriptionError Code
WrongFileFormatEmptyRowRequired empty field to execute the operation.BT1
WrongFileArgumentsEmptyRowRequired empty field to execute the operation.BT2
WrongFileFormatWrongRowFormatWrong format in a column.BT3
WrongFileFormatMissingBatchIDHeaderBatch ID must be included in the header.BT4
WrongFileFormatMissingTransactionTypeHeaderTransaction Type must be included in the header.BT5
WrongFileFormatMissingEmptyRowThe second line of the file must be empty. It is recommended to download the template.BT6
WrongFileFormatMissingDataRowsHeaderRequired template headers must be included.BT7
WrongFileFormatMissingOrderTokenHeaderTransaction id must be included in the header. It is recommended to download the template.BT8
WrongFileFormatMissingCurrencyHeaderCurrency must be included in the header. It is recommended to download the template.BT9
WrongFileFormatMissingAmountToCaptureHeaderamount_to_capture must be included in the header. It is recommended to download the template.BT10
WrongFileFormatMissingAmountToRefundHeaderamount_to_refund must be included in the header. It is recommended to download the template.BT11
WrongFileArgumentsInvalidBatchIDThe Batch ID is invalid.BT12
WrongFileArgumentsInvalidTransactionTypeThe entered transaction type is invalid.BT13
WrongFileFormatInvalidOrderTokenThe entered transaction id is invalid.BT14
WrongFileFormatInvalidCurrencyThe entered currency is invalid.BT15
WrongFileFormatInvalidAmountThe entered amount is invalid.BT16
WrongFileFormatCurrencyHeaderShouldBeEmptyThe void template file should not contain currency in the header. It is recommended to download the template.BT17
WrongFileFormatCurrencyShouldBeEmptyThe void template file should not contain currency value in the header. It is recommended to download the template.BT18
WrongFileFormatAmountHeaderShouldBeEmptyThe void template file should not contain amount in the header. It is recommended to download the template.BT19
WrongFileFormatAmountShouldBeEmptyThe void template file should not contain amount value in the header. It is recommended to download the template.BT20