Batch Import - ccimport

The ccimport transaction imports and processes a batch file of Credit Card transactions.

In this section:

For the entire list of API endpoints, refer to API Endpoints.

Request

Field nameDescriptionRequiredLengthData type
ssl_merchant_idMerchant ID
Elavon-assigned Converge Account ID (AID).
Required6 or 7numeric
ssl_user_idConverge User ID
The user ID with Hosted Payment API User status that can send transaction requests through the terminal.
Required15alphanumeric
ssl_pinTerminal ID
Unique identifier of the terminal that will process the transaction request and submit to the Converge gateway.
Important: The ssl_user_id sending the transaction request must be associated with the terminal that will process the request.
Required64alphanumeric
ssl_transaction_typeTransaction Type
Value:   ccimport
Required20alphanumeric
ssl_import_fileImport File
Describes the path, location, file name, and file extension of the import file.
Important:
  • Length of the file name (including the file extension) must not exceed 30 characters.
  • Valid file extensions are CSV and XML.
Required255alphanumeric
ssl_response_fileImport Response File Friendly Name
Easy to understand file name of the import response file.
Important: The value must not contain a forward slash, backward slash, colon, asterisk, question mark, quotation mark, greater than symbol, less than symbol or a pipe character.
Required25alphanumeric
ssl_do_merchant_emailSend Email to Merchant Indicator
Indicates whether to send emails to the merchant when transactions are approved or declined.
Valid values:
  • T - Send email to merchant
  • F - Do not send email to merchant

Defaults to T if ssl_do_merchant_email is null.
Default value - Set in terminal: E-mail Form - Email Notification Setup - Email Options - Notify Merchant of Transaction Approval / Notify Merchant of Transaction Decline
Optional1alphanumeric
ssl_merchant_emailMerchant’s Email Address
If null and ssl_do_merchant_email = T, Converge sends the email to the email address of the terminal.
Optional100alphanumeric
ssl_result_formatResult Format
When set to ASCII, Virtual Terminal generates a plain text key-value document.
Defaults to HTML if not sent.
Valid values:  ASCII, HTML, XML
Optional5alphanumeric
ssl_receipt_link_methodReceipt Link Method
Indicates the method for displaying the receipt and data of an approved or declined transaction.
Valid value:  REDG - Does not display the receipt and redirects the data to the URL specified in ssl_receipt_link_url
Optional4alphanumeric
ssl_receipt_link_urlReceipt URL
Target URL of the button or the link created at the bottom of the receipt for an approved or declined transaction.
Important: If ssl_result_format = ASCI and ssl_receipt_link_method = REDG, Converge ignores the value of this parameter.
Optional255alphanumeric
ssl_error_urlError URL
The URL where the integrated application will send the errorCode, errorName, and errorMessage values.
Optional255alphanumeric

Response

note

The response simply indicates if the file upload was successful or not. Transactions in the file will be sent for authorization and are shown in the appropriate batches in the User Interface. The import response files can be viewed and downloaded from the User Interface.

Field nameDescription
ssl_resultTransaction Outcome
An ssl_result = 0 indicates an imported batch file.
An ssl_result = 1 indicates an unsuccessful batch file import.
ssl_result_messageTransaction Result Message
A ssl_result_message = File upload successful indicates a successful file import.
A ssl_result_message = File upload failed indicates an unsuccessful file import.
ssl_user_idConverge User ID
The user ID that submitted the transaction.
Field length: 15
Data type: alphanumeric
ssl_number_transTransaction Count
The number of transactions imported from the file.
ssl_response_fileResponse File Name
[Error]Returned only if an error occurs. Refer to the Error Codes section for more information.
errorCodeError Code
Typically, when the transaction failed validation or the request is incorrect. This will prevent the transaction from going to authorization. This is a numeric field.
errorMessageError Message
Detailed explanation of the error. This field may be changed based on merchant configuration in the user interface.
errorNameError Name
Error name or reason for the error.

Example

Request

xmldata=
    ssl_merchant_id=my_merchant_id
    ssl_user_id=my_user_id
    ssl_pin=my_pin
    ssl_transaction_type=ccimport
    ssl_import_file=C:\Program Files\Elavon\VirtualMerchant\Import\ImportFile.csv
    ssl_response_file=ImportFile051410025559
    ssl_result_format=HTML
    ssl_receipt_decl_method=REDG
    ssl_receipt_decl_get_url=http://www.website.com/decline.asp
    ssl_receipt_apprvl_method=REDG
    ssl_receipt_apprvl_get_url=http://www.website.com/approval.asp

Response

    ssl_response_file=ImportFile051410025559
    ssl_transaction_type=ccimport
    ssl_start_date=05142010073000
    ssl_end_date=05142010073200
    ssl_number_trans=000100
    ssl_user_id= my_user_id
    ssl_result=0
    ssl_result_message=File Uploaded
    ssl_recurring_batch_count = 250

This is an example of an error in an attempt to import a file with 900 recurring (XML API)

    <txn>
        <errorCode>5062</errorCode>
        <errorName>File Exceeds Max Number of Transactions</errorName>
        <errorMessage>File contains more than 500 transactions.</errorMessage>
    </txn>