The Transaction Request Report (previously called the Batch File Detail Report) provides detailed information about the transactions that are batched when you filter by the Batch Upload connection method. See the Business Center Reporting User Guide (PDF | HTML)for information about creating and downloading this report.
The <Report> element is the root element of the report.
<Report Name=CDATA Version=NMTOKEN xmlns=CDATA MerchantID=CDATA ReportStartDate=CDATA ReportEndDate=CDATA> (BatchFiles) </Report> |
Attribute Name |
Description |
Data Type & Length |
Name |
Name of the report. This element always contains the text Batch Files Detail Report. |
Alphanumeric (100) |
Version |
Version number of the report. The current version number is 1.0. |
Numeric (10) |
xmlns |
XML namespace for the report. The namespace for the current version is http://reports.cybersource.com/reports |
Alphanumeric (100) |
MerchantID |
Cybersource merchant ID used for the transactions in the report. |
Alphanumeric (30) |
ReportStartDate |
First date included in the report. |
DateTime (25) |
ReportEndDate |
Last date included in the report. |
DateTime (25) |
Element Name |
Description |
<BatchFiles> |
Batch files that are included in the report. See <BatchFiles>, for a list of child elements. |
Example <Report> Element
<Report Name="Batch Files Detail Report" Version="1.0" xmlns="http://reports.cybersource.com/reports/bfdr/1.0" MerchantID="pcpawnshop" ReportStartDate="2006-09-29T05:00:00-05:00" ReportEndDate="2006-09-30T05:00:00-05:00"> <BatchFiles> ... </BatchFiles> </Report> |
The <BatchFiles> element contains all of the batch files that are included in the report.
<BatchFiles> (BatchFile)* </BatchFiles> |
Element Name |
Description |
<BatchFile> |
Payment processors for the transactions in the batch file. See <BatchFile>, for a list of attributes and child elements. |
Example <BatchFiles> Element
<BatchFiles> <BatchFile BatchFileID="123"> ... </BatchFile> </BatchFiles> |
The <BatchFile> element contains the payment processors for the transactions in the batch file.
<BatchFile BatchFileID=CDATA> (PaymentProcessor)* </BatchFile> |
Attribute Name |
Description |
Data Type & Length |
BatchFileID |
Cybersource batch file in which the transactions were sent. |
Numeric (39) |
Element Name |
Description |
<PaymentProcessor> |
Requests associated with the payment processor. See <PaymentProcessor>, for a list of attributes and child elements. |
Example <BatchFile> Element
<BatchFile BatchFileID="10101"> <PaymentProcessor PaymentProcessorName="vital”> ... </PaymentProcessor> </BatchFile> |
The <PaymentProcessor> element contains the requests associated with a payment processor.
<PaymentProcessor PaymentProcessorName=CDATA> (Request)* </PaymentProcessor> |
Attribute Name |
Description |
Data Type & Length |
PaymentProcessorName |
Name of a payment processor. |
AlphanuÂmeric (30) |
Element Name |
Description |
<Request> |
Information about a payment transaction. See <Request>, for a list of attributes. |
Example <PaymentProcessor> Element
<PaymentProcessor PaymentProcessorName="vital"> <Request> ... </Request> </PaymentProcessor> |
The <Request> element contains information about a payment transaction.
<Request RequestID=CDATA> (TransactionReferenceNumber) (MerchantReferenceNumber) (TransactionStatus) (Amount) (CurrencyCode) (PaymentStatus) </Request> |
Attribute Name |
Description |
Data Type & Length |
RequestID |
Unique identifier generated by Cybersource for the transaction. |
Numeric (26) |
Element Name |
Description |
Data Type & Length |
Transaction |
Reference number that you use to reconcile your Cybersource reports with your processor reports. This field corresponds to the <service>_reconciliationID (Simple Order API) and to the <service>_trans_ref_no (SCMP API) reply fields. |
Alphanumeric (60) |
Merchant |
Merchant-generated order reference or tracking number. |
Alphanumeric (50) |
Transaction |
One-word description of the result of the transaction request. |
Alphanumeric (50) |
Amount |
Amount of the transaction. |
Amount (19) |
CurrencyCode |
ISO currency code used for the transaction. |
Alphanumeric (5) |
PaymentStatus |
One-word description of the current status of the transaction. Possible values: nBATCH_ERROR nBATCH_RESET nBATCHED nCANCELED_REVERS nCANCELLED nDENIED nFAILED nPENDING nREFUNDED nREVERSED nTRXN_ERROR nVOIDED |
Alphanumeric (50) |
Example <Request> Element
<Request RequestID="1580782287420174065733"> <TransactionReferenceNumber>5533830406</TransactionReferenceNumber> <MerchantReferenceNumber>1158078228539</MerchantReferenceNumber> <TransactionStatus>SOK</TransactionStatus> <Amount>25.00</Amount> <CurrencyCode>USD</CurrencyCode> <PaymentStatus>PENDING</PaymentStatus> </Request> |
<!ELEMENT Report (BatchFiles)> <!ATTLIST Report Name CDATA #REQUIRED Version NMTOKEN #REQUIRED xmlns CDATA #REQUIRED MerchantID CDATA #REQUIRED ReportStartDate CDATA #REQUIRED ReportEndDate CDATA #REQUIRED> <!ELEMENT BatchFiles (BatchFile)*> <!ELEMENT BatchFile (PaymentProcessor)*> <!ATTLIST BatchFile BatchFileID CDATA #REQUIRED> <!ELEMENT PaymentProcessor (Request)*> <!ATTLIST PaymentProcessor PaymentProcessorName CDATA #REQUIRED> <!ELEMENT Request (TransactionReferenceNumber, MerchantReferenceNumber, TransactionStatus, Amount, CurrencyCode, PaymentStatus)> <!ATTLIST Request RequestID CDATA #REQUIRED> <!ELEMENT TransactionReferenceNumber (#PCDATA)> <!ELEMENT MerchantReferenceNumber (#PCDATA)> <!ELEMENT TransactionStatus (#PCDATA)> <!ELEMENT Amount (#PCDATA)> <!ELEMENT CurrencyCode (#PCDATA)> <!ELEMENT PaymentStatus (#PCDATA)> |
The following example shows a report that contains two batch files. The first batch file contains three requests, and the second batch file contains one request.
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE Report SYSTEM "https://ebctest.cybersource.com/ebctest/reports/dtd/bfdr.dtd"> <Report Name="Batch Files Detail Report" Version="1.0" xmlns="https://ebctest.cybersource.com/ebctest/reports/dtd/bfdr.dtd" MerchantID="pcpawnshop" ReportStartDate="2006-09-29T05:00:00-05:00" ReportEndDate="2006-09-30T05:00:00-05:00"> <BatchFiles> <BatchFile BatchFileID="127788"> <PaymentProcessor PaymentProcessorName="vital"> <Request RequestID="1595558344253232243215"> <TransactionReferenceNumber>7242635150</TransactionReferenceNumber> <MerchantReferenceNumber>1158078228539</MerchantReferenceNumber> <TransactionStatus>SOK</TransactionStatus> <Amount>25.00</Amount> <CurrencyCode>USD</CurrencyCode> <PaymentStatus>PENDING</PaymentStatus> </Request> <Request RequestID="1595558354743232243215"> <TransactionReferenceNumber>7242636613</TransactionReferenceNumber> <MerchantReferenceNumber>1158078892610</MerchantReferenceNumber> <TransactionStatus>SOK</TransactionStatus> <Amount>100.00</Amount> |
<CurrencyCode>USD</CurrencyCode> <PaymentStatus>PENDING</PaymentStatus> </Request> <Request RequestID="1595558364563232243215"> <TransactionReferenceNumber>7242637653</TransactionReferenceNumber> <MerchantReferenceNumber>1158079157035</MerchantReferenceNumber> <TransactionStatus>SOK</TransactionStatus> <Amount>99.00</Amount> <CurrencyCode>USD</CurrencyCode> <PaymentStatus>VOIDED</PaymentStatus> </Request> </PaymentProcessor> </BatchFile> <BatchFile BatchFileID="123987"> <PaymentProcessor PaymentProcessorName="smartfdc"> <Request RequestID="1595564779663232243215"> <TransactionReferenceNumber>7243278653 <MerchantReferenceNumber>1159429157035 <TransactionStatus>SOK</TransactionStatus> <Amount>4.00</Amount> <CurrencyCode>USD</CurrencyCode> <PaymentStatus>PENDING</PaymentStatus> </Request> </PaymentProcessor> </BatchFile> </BatchFiles> </Report> |
The first header record describes the name and version of the report and indicates which dates are included in the report.
Example First Header Record
Batch Files Detail Report,1,2006-09-29 to 2006-09-30,,,,,,, |
Position |
Field Name |
Description |
Data Type & Length |
1 (A) |
report_name |
Name of the report. This field always contains the text Batch Files Detail Report. |
Alphanumeric (100) |
2 (B) |
version_number |
Version number of the report. The current version number is 1. |
Numeric (10) |
3 (C) |
date_range |
Dates included in the report in the format YYYY-MM-DD to YYYY-MM-DD. The first date is the start date; the second date is the end date. |
Alphanumeric (100) |
The second header record indicates the name of each field in the report. The fields in the second header record follow these rules:
nThe content of each field is the same as the field name.
nThe data type and length of each field is alphanumeric (100).
Example Second Header Record
merchant_id,txn_batch_id,payment_processor,request_id,trans_ref_no,merchant_ref_number,ics_rflag,amount,currency,action |
Each transaction record contains information about a Cybersource payment transaction.
Example Transaction Record
pcpawnshop,127788,vital,9979040000003515181891,7242635150,1158078228539,SOK,25.00,USD,PENDING |
Position |
Field Name |
Description |
Data Type & Length |
1 |
merchant_id |
Cybersource merchant ID used for the transaction. |
Alphanumeric (30) |
2 |
txn_batch_id |
Cybersource batch file in which the transactions were sent. |
Numeric (39) |
3 |
payment_ |
Name of a payment processor. |
Alphanumeric (30) |
4 |
request_id |
Identifier for the transaction. |
Numeric (26) |
5 |
trans_ref_no |
Reference number that you use to reconcile your Cybersource reports with your processor reports. This field corresponds to the <service>_reconciliationID (Simple Order API) and to the <service>_trans_ref_no (SCMP API) reply fields. |
Alphanumeric (60) |
6 |
merchant_ref_ |
Merchant-generated order reference or tracking number. |
Alphanumeric (50) |
7 |
ics_rflag |
One-word description of the result of the transaction request. |
Alphanumeric (50) |
8 |
amount |
Amount of the transaction. |
Amount (19) |
9 |
currency |
ISO currency code used for the transaction. |
Alphanumeric (5) |
10 |
action |
One-word description of the current status of the transaction. Possible values: nBATCH_ERROR nBATCH_RESET nBATCHED nCANCELED_REVERS nCANCELLED nDENIED nFAILED nPENDING nREFUNDED nREVERSED nTRXN_ERROR nVOIDED |
Alphanumeric (50) |
The following example shows a report that contains two batch files. The first batch file contains three requests, and the second batch file contains one request.
Batch Files Detail Report,1,2006-09-29 to 2006-09-30,,,,,,, merchant_id,txn_batch_id,payment_processor,request_id,trans_ref_no, pcpawnshop,127788,vital,1598344253232243215,7242635150,1158078228539,SOK,25.00,USD,PENDING pcpawnshop,127788,vital,1598354743232243226,7242636613,1158078892610,SOK,100.00,USD,PENDING pcpawnshop,127788,vital,1598364563232243237,7242637653,1158079157035,SOK,99.00,USD,VOIDED pcpawnshop,123987,smartfdc,1594779663232243248,7243278653,1159429157035,SOK,4.00,USD,PENDING |