Westpac MTS Rejects report
The Westpac MTS Rejects report is sent/retrieved in response to the processing of a Westpac MTS Orders file.
File format
The rejects file contains the list of all transactions that were declined during processing. All files are plain text using UTF-8 character encoding. The file has the following general structure:
- Deposit file header (one only per file)
- Batch header (per supplier business)
- Financial transaction detail (one or more in each payment batch)
Deposit file header
The file header will be the first record in the file.
| No | Field Name | Position | Length | Data Type | Description | 
|---|---|---|---|---|---|
| 1 | Transaction Type | 1 | 1 | N | 1to indicate file header. | 
| 2 | Error Code | 2-4 | 3 | AN | Always 000. | 
| 3 | Facility Link ID | 5-8 | 4 | AN | Same as the value specified in the payment file. | 
| 4 | File Date | 9-14 | 6 | N | File date from the payment file in YYMMDDformat. | 
| 5 | Deposit Sequence | 15-16 | 2 | N | File sequence number (matches the sequence number in the payment file). | 
| 6 | Posting Status | 17 | 1 | A | O- Original | 
| 7 | Processing Date | 18-23 | 6 | N | File date from the payment file in YYMMDDformat. | 
| 8 | Filler | 24-110 | 87 | S | Spaces. | 
Batch file header
One batch header record will be present for each payment batch.
| No | Field Name | Position | Length | Data Type | Description | 
|---|---|---|---|---|---|
| 1 | Transaction Type | 1 | 1 | N | 2to indicate batch header. | 
| 2 | Error Code | 2-4 | 3 | AN | Always 000. | 
| 3 | Merchant ID | 5-12 | 8 | AN | Supplier business code that processed the transactions in this batch. | 
| 4 | Merchant Name | 13-37 | 25 | AN | Merchant's trading name. | 
| 5 | Merchant Location | 38-57 | 20 | AN | Merchant's trading location. | 
| 6 | Merchant State | 58-60 | 3 | A | Merchant's trading location state. | 
| 7 | Batch Date | 61-66 | 6 | N | Batch date from the payment file in YYMMDDformat. | 
| 8 | Batch Sequence | 67-68 | 2 | N | Batch sequence from the payment file. | 
| 9 | Posting Status | 69 | 1 | N | O- Original | 
| 10 | Filler | 70-110 | 41 | S | Spaces. | 
Financial transaction detail
Each record represents a transaction that was declined during processing.
| No | Field Name | Position | Length | Data Type | Description | 
|---|---|---|---|---|---|
| 1 | Transaction Type | 1 | 1 | N | 3for sale,4for refund. | 
| 2 | Error Code | 2-4 | 3 | AN | The response code from the transaction processing. Left-padded with zeros. | 
| 3 | Merchant ID | 5-12 | 8 | N | Same as the value specified in the payment file. | 
| 4 | Masked Card Number or Account Token | 13-31 | 19 | AN | Left justified with trailing spaces. Account token or masked card PAN. | 
| 5 | Transaction Amount | 32-42 | 11 | N | Same as the value specified in the payment file. | 
| 6 | Transaction Date | 43-48 | 6 | N | Transaction settlement date in YYMMDDformat. | 
| 7 | Trace Details | 49-64 | 16 | N | A unique reference for a transaction. | 
| 8 | Merchant Reference Number | 65-70 | 6 | AN | Same as the value specified in the payment file. | 
| 9 | Filler | 71 | 1 | N | Zeros - not used. | 
| 10 | Filler | 72-77 | 6 | AN | Always ******. | 
| 11 | Error Message | 78-102 | 25 | AN | Description of why the transaction was declined. | 
| 12 | Merchant Secondary Reference Number | 103-110 | 8 | AN | Same as the value specified in the payment file. |