Batch Processing
Overview
Cardknox's batch processing tool allows you to process a large volume of transactions in a single batch, all at once. Batches can be processed for a single account or multiple accounts.
Conventions
x = Incrementing Sequence Number
Numbers can be skipped but they must always be greater than the previous file.
Files with older or invalid sequence numbers are ignored.
Sequence Number Max Value = 999999999 (9 digits).
KVP = URL Encoded Key-Value-Pair
Sample:
xName=John%20Smith&xAmount=1
Note: Ensure that all values are URL encoded.
Batch Upload Lifecycle
Request
Client uploads Request/REQUEST_X.KVP
Client uploads Request/PROCESS_X.KVP
Batch process is triggered when Request/PROCESS_X.KVP is received
Response
Gateway saves Response/RESPONSE_X.KVP
Gateway saves Response/COMPLETE_X.KVP
Client polls and parses Response/COMPLETE_X.KVP
If
xStatus
=Success, then client downloads and parses Response/RESPONSE_X.KVPClient deletes all files from Response folder
File Formats
Request Data File
Filename Format: REQUEST_X.KVP
Each line contains an individual transaction in KVP format. Any transaction that can be executed via the standard API can be submitted in the Request Data File.
Required Variables:
Value | Description | Sample Data |
| The zero-based index number of each row. |
|
| Must match the Incrementing Sequence Number in the file name. |
|
Standard API request variables | See iFields. |
|
File Formats
Request Metadata File
Filename Format: PROCESS_X.KVP Required Variables:
Value | Description | Sample Data |
| Batch upload credential (not the merchant credential). |
|
| Count of transactions in the Request File. |
|
| KVP. |
|
| Must match the incrementing sequence number in the file name |
|
File Formats
Response Data File
Filename Format: RESPONSE_X.KVP
Each line contains an individual response in KVP format.
Required Variables:
Value | Description | Sample Data |
| Corresponds to the xIndex in the request. |
|
| Corresponds to the |
|
Standard API response variables | See API Docs. |
|
File Formats
Response Metadata File
Filename Format: COMPLETE_X.KVP
Required Variables:
Value | Description | Sample Data |
| Status of the batch upload process. Success/Error value. |
|
| Status of the batch upload process. Success/Error value. |
|
| If |
|
| Count of the processed transactions. |
|
Last updated