Batch File Structure

This section explains how to prepare a valid batch file for uploading and processing via the PayBatch system in the Merchant Access Portal.

A correctly formatted file ensures that your payments are accepted and processed without errors. We recommend first uploading to sandbox to test your file before using it in production.

Supported File Format

FormatExtensionDescription
CSV.csvFlat file for uploading transaction batches via the Merchant Portal interface
📘

XML format is used for SOAP API submissions, not the Merchant Portal. This page focuses only on CSV usage.

CSV Structure

Each line in the file must contain the following comma-separated values in this exact order:

PositionField NameDescriptionRequired
0TypeTransaction type: A, S, or R
1Transaction ReferenceYour internal reference (e.g. INV1234)
2Cardholder NameFull name of the cardholder
3Card Number16-digit card number
4Expiry DateIn MMYYYY format (e.g. 122025)
5Budget PeriodUse 00 unless otherwise instructed
6AmountIn cents (e.g. 3295 = R32.95)

Transaction Types

CodeTypeDescription
AAuthorizationAuthorizes the transaction without settling funds immediately
SSettlementSettles a previously authorized transaction
RRefundRefunds a previously settled transaction

File Naming Convention

Use the following format for your filename:

BATCH_<MERCHANTID>_<YYYYMMDD>.csv

Example: BATCH_10011072130_20250624.csv

Ensure the file is saved in UTF-8 format (without BOM).


File Validation Rules

RuleLimit
Max file size10 MB
Max records per file10,000
Duplicate references not allowed
Amounts must be greater than zero
Card Expiry Date must be in the future

Test Your File First

Before processing real payments, upload a test batch in the sandbox environment:

  • Files are automatically validated upon upload.

  • Errors (like incorrect format or invalid expiry date) will be shown line-by-line.

  • You can only process a file once. Duplicate uploads will be rejected.


Related Pages