My Profile_


Independent Refund

Credits a specified amount to the cardholder’s credit card. The credit card number and expiry date are mandatory.

It is not necessary for the transaction that you are refunding to have been processed via the Moneris Payment Gateway.

Things to consider:

  • Because of the potential for fraud, permission for this transaction is not granted to all accounts by default. If it is required for your business, it must be requested via your account manager.

Canada Code Sample

//Request Format:

ind_refund, order_id, amount, pan, exp_date, crypt_type

//Sample Request:

ind_refund,order_8_testing,14.00,4242424242424242,1804,1


//Response Format:

ReceiptId, ReferenceNum, ResponseCode, ISO, AuthCode, TransTime, TransDate, TransType, Complete, Message, TransAmount, CardType, TxnNumber, TimedOut, BankTotals, Ticket


//Sample Response:

order_8_testing,660144080011542110,027,01,001995,09:51:27,2016-07-04,04,true,APPROVED           *                    =,14.00,V,5566-0_10,false,,null

                
USA Code Sample

//Request Format:

us_ind_refund, order_id, cust_id, amount, pan, expdate, crypt_type

//Sample Request:

us_ind_refund,Order_6_regular,cust,1.00,4242424242424242,1009,1

//Response Format:

ReceiptId, ReferenceNum, ResponseCode, [reserved], AuthCode, TransTime, TransDate, TransType, Complete, Message, TransAmount, CardType, TxnNumber, TimedOut, BankTotals, Ticket, RecurSuccess, AvsResultCode

//Sample Response:

Order_6_regular,640000010010484870,001,,00002000,18:00:26,2006-08-23,04,true,APPROVED 000020,1.00,V,16- 0_0,false,,null,,

                

Independent Refund transaction mandatory values

Value Type Limits Variable Description
Order ID String 50-character alphanumeric order_id Merchant-defined transaction identifier that must be unique for every Purchase, Pre-Authorization and Independent Refund transaction. No two transactions of these types may have the same order ID.

For Refund, Completion and Purchase Correction transactions, the order ID must be the same as that of the original transaction.

The last 10 characters of the order ID are displayed in the “Invoice Number” field on the Merchant Direct Reports. However only letters, numbers and spaces are sent to Merchant Direct.

A minimum of 3 and a maximum of 10 valid characters are sent to Merchant Direct. Only the last characters beginning after any invalid characters are sent. For example, if the order ID is 1234-567890, only 567890 is sent to Merchant Direct.

If the order ID has fewer than 3 characters, it may display a blank or 0000000000 in the Invoice Number field.
Amount String 9-character decimal amount Transaction amount. Used in a number of transactions. Note that this is different from the amount used in a Completion transaction, which is an alphanumeric value.

This must contain at least 3 digits, two of which are penny values.

The minimum allowable value is $0.01, and the maximum allowable value is 999 999.99. Transaction amounts of $0.00 are not allowed.
Credit card number String 20-character alphanumeric pan Most credit card numbers today are 16 digits, but some 13-digit numbers are still accepted by some issuers. This field has been intentionally expanded to 20 digits in consideration for future expansion and potential support of private label card ranges.
Expiry date String 4-character alphanumeric YYMM format. expdate Note: This is the reverse of the date displayed on the physical card, which is MMYY.
E-Commerce indicator String 1-character alphanumeric crypt_type Supported values are:
  • 1 - Mail Order / Telephone Order—Single
  • 2 - Mail Order / Telephone Order—Recurring
  • 3 - Mail Order / Telephone Order—Instalment
  • 4 - Mail Order / Telephone Order—Unknown classification
  • 5 - Authenticated e-commerce transaction (VBV)
  • 6 - Non-authenticated e-commerce transaction (VBV)
  • 7 - SSL-enabled merchant
  • 8 - Non-secure transaction (web- or email-based)
  • 9 - SET non-authenticated transaction

Independent Refund transaction optional values

Value Type Limits Variable Description
Customer ID String 50-character alphanumeric cust_id This can be used for policy number, membership number, student ID, invoice number and so on.

This field is searchable from the Moneris Merchant Resource Centre.

This is applicable to XML format only.

Predecessors
  • Transaction that was completed on an independent system
Successors
  • Vault Tokenize Credit card (API)

Independent Refund with Vault Credit Card

This transaction uses the data key to identify a previously registered credit card profile. The details saved within the profile are then submitted to perform an Independent Refund transaction.

The Vault feature allows merchants to create long term customer profiles, edit those profiles, and use them to process transactions without having to enter financial information each time.

Canada Code Sample

//Request Format:

res_ind_refund_cc, order_id, cust_id, amount, data_key, crypt_type

//Sample Request:

res_ind_refund_cc,mjr-res-indrefund-210510-251-1,moneris,1.00,dOeX9Hu7pRsLIJNcBphTTOmer,1

//Response Format:

ReceiptId, ReferenceNum, ResponseCode, ISO, AuthCode, TransTime, TransDate, TransType, Complete, Message, TransAmount, CardType, TxnNumber, TimedOut, BankTotals, Ticket, data_key, payment_type, cust_id, phone, email, note, pan, exp_date, crypt_type, reserved, reserved, reserved, reserved

//Sample Response:

mjr-res-indrefund-210510-251-1,660035500012243870,027,01,740332,14:53:08,2010-05-21,04,true,APPROVED * =,1.00,M,112074-0_7,false,,,dOeX9Hu7pRsLIJNcBphTTOmer,cc,,,bob@smith.com,this is my note,5454***5454,0812,1,,,,

                
USA Code Sample

//Request Format:

us_res_ind_refund_cc, order_id, cust_id, amount, data_key, crypt_type

//Sample Request:

<code>us_res_ind_refund_cc,PAT-mjr-res-indref-100210-1230-1,Moneris,1.00,rILL5410i6914o62TMg3s32,1</code>

//Response Format:

ReceiptId, ReferenceNum, ResponseCode, [reserved], AuthCode, TransTime, TransDate, TransType, Complete, Message, TransAmount, CardType, TxnNumber, TimedOut, BankTotals, Ticket, RecurSuccess, AvsResultCode, data_key, payment_type, cust_id, phone, email, note, pan, exp_date, crypt_type, avs_street_number avs_street_name, avs_zipcode, reserved, reserved, sec, cust_first_name, cust_last_name, cust_address1, cust_address2, cust_city, cust_state, cust_zip, routing_num, account_num, check_num, account_type


//Sample Response:

<code>PAT-mjr-res-indref-100210-1230-1,640000030016576420,001,,222892,10:32:33,2010-02-23,04,true,APPROVED 222892,1.00,M,784359- 0_10,false,,,null,null,rILL5410i6914o62TMg3s32,cc,customer1,0000000000,bob@smith.com,my note,5454***5454,0909,7,212,Payton Street,M1M1M1,,,,,,,,,,,,,,</code>

                

Independent Refund with Vault transaction mandatory values

Value Type Limits Variable Description
Data key String 25-character alphanumeric data_key Profile identifier that all future financial Vault transactions (that is, they occur after the profile was registered by a ResAddCC or ResTokenizeCC transaction) will use to associate with the saved information.

The data key is generated by Moneris, and is returned to the merchant (via the Receipt object) when the profile is first registered.
Order ID String 50-character alphanumeric order_id Merchant-defined transaction identifier that must be unique for every Purchase, Pre-Authorization and Independent Refund transaction. No two transactions of these types may have the same order ID.

For Refund, Completion and Purchase Correction transactions, the order ID must be the same as that of the original transaction.

The last 10 characters of the order ID are displayed in the “Invoice Number” field on the Merchant Direct Reports. However only letters, numbers and spaces are sent to Merchant Direct.

A minimum of 3 and a maximum of 10 valid characters are sent to Merchant Direct. Only the last characters beginning after any invalid characters are sent. For example, if the order ID is 1234-567890, only 567890 is sent to Merchant Direct.

If the order ID has fewer than 3 characters, it may display a blank or 0000000000 in the Invoice Number field.
Amount String 9-character decimal amount Transaction amount. Used in a number of transactions. Note that this is different from the amount used in a Completion transaction, which is an alphanumeric value.

This must contain at least 3 digits, two of which are penny values.

The minimum allowable value is $0.01, and the maximum allowable value is 999 999.99. Transaction amounts of $0.00 are not allowed.
E-Commerce indicator String 1-character alphanumeric crypt_type Supported values are:
  • 1 - Mail Order / Telephone Order—Single
  • 2 - Mail Order / Telephone Order—Recurring
  • 3 - Mail Order / Telephone Order—Instalment
  • 4 - Mail Order / Telephone Order—Unknown classification
  • 5 - Authenticated e-commerce transaction (VBV)
  • 6 - Non-authenticated e-commerce transaction (VBV)
  • 7 - SSL-enabled merchant
  • 8 - Non-secure transaction (web- or email-based)
  • 9 - SET non-authenticated transaction

Independent Refund with Vault transaction optional values

Value Type Limits Variable Description
Customer ID String 50-character alphanumeric cust_id This can be used for policy number, membership number, student ID, invoice number and so on.

This field is searchable from the Moneris Merchant Resource Centre.

Vault Response Fields

Value Limits Variable Description
Data Key 25-character alphanumeric DataKey This field is created when a profile is created and a token is returned.
It is a unique profile identifier, and is a required value for all future Vault transactions.
Vault Success true/false ResSuccess Indicates whether Vault transaction was successful.
PaymentType cc/ach PaymentType Indicates the payment type associated with a Vault profile.
Customer ID 30-character alphanumeric cust_id Returns the customer ID saved in the profile.
Phone Number 30-character alphanumeric phone Returns the phone number saved in the profile.
Email Address 30-character alphanumeric email Returns the email address saved in the profile.
Note 30-character alphanumeric note Returns the note saved in the profile.
Credit Card Fields
Masked PAN 20-character numeric masked_pan Returns the first 4 last 4 of the card number saved in the profile.
Expiry Date 4-character numeric expdate Returns the expiry date of the card number saved in the profile. YYMM format.
E-Commerce Indicator 1-character numeric crypt_type Returns the e-commerce indicator saved in the profile.
AVS Street Number 19-character alphanumeric avs_street_number Returns the AVS street number saved in the profile. If no other AVS street number is passed in the transaction request, this value will be submitted along with the financial transaction to the issuer.
AVS Street Name 19-character alphanumeric avs_street_name Returns the AVS street name saved in the profile. If no other AVS street number is passed in the transaction request, this value will be submitted along with the financial transaction to the issuer.
AVS Zip/Postal Code 9-character alphanumeric avs_street_zipcode Returns the AVS zip/postal code saved in the profile. If no other AVS street number is passed in the transaction request, this value will be submitted along with the financial transaction to the issuer.

Predecessors
  • Transaction that was completed on an idependent system
  • Vault Add Credit Card (API | Batch | Hosted Vault)
  • Vault Tokenize Credit Card (API)
  • Vault Add Token (API)
Successors
  • NA

Independent Refund with Vault and ACH

This transaction uses the data key to identify a previously registered ACH profile. The details saved within the profile are then submitted to perform the transaction.

This transaction is processed as an ACH Credit. The ACH Info registered for this profile will be used. The details submitted within ACH Info are returned in the response.

ACH transactions are available to US integrations only.

USA Code Sample

//Request Format:

us_res_ind_refund_ach, order_id, cust_id, amount, data_key

//Sample Request:

us_res_ind_refund_ach,PAT-mjr-res-ach-indref-100210-1230-1,Moneris,1.00,COfxgha5Wb4lRG7sxpCKWQpRe

//Response Format:

ReceiptId, ReferenceNum, ResponseCode, [reserved], AuthCode, TransTime, TransDate, TransType, Complete, Message, TransAmount, CardType, TxnNumber, TimedOut, BankTotals, Ticket, RecurSuccess, AvsResultCode, data_key, payment_type, cust_id, phone, email, note, pan, exp_date, crypt_type, avs_street_number avs_street_name, avs_zipcode, reserved, reserved, sec, cust_first_name, cust_last_name, cust_address1, cust_address2, cust_city, cust_state, cust_zip, routing_num, account_num, check_num, account_type


//Sample Response:

PAT-mjr-res-ach-indref-100210-1230-1,000783750010690720,005,,null,10:32:36,2010-02-23,04,true,REGISTERED * =,1.0,CQ,1131- 0_10,false,,,false,null,COfxgha5Wb4lRG7sxpCKWQpRe,ach,,,,,,,,,,,,,ppd,,,,,,,,123456789,8574***9829,123,checking


                

Independent Refund with Vault and ACH transaction object mandatory values

Value Type Limits Variable Description
Data key String 25-character alphanumeric data_key Profile identifier that all future financial Vault transactions (that is, they occur after the profile was registered by a ResAddCC or ResTokenizeCC transaction) will use to associate with the saved information.

The data key is generated by Moneris, and is returned to the merchant (via the Receipt object) when the profile is first registered.
Order ID String 50-character alphanumeric order_id Merchant-defined transaction identifier that must be unique for every ACH debit and credit transaction. No two transactions of these types may have the same order ID. For ACH reversal transactions, the order ID must be the same as that of the original transaction.
Amount String 9-character decimal amount Transaction amount. Used in a number of transactions. Note that this is different from the amount used in a Completion transaction, which is an alphanumeric value.

This must contain at least 3 digits, two of which are penny values.

The minimum allowable value is $0.01, and the maximum allowable value is 999 999.99. Transaction amounts of $0.00 are not allowed.

Independent Refund with Vault and ACH transaction optional values

Value Type Limits Variable Description
Customer ID String 50-character alphanumeric cust_id This can be used for policy number, membership number, student ID, invoice number and so on.

This field is searchable from the Moneris Merchant Resource Centre.

Vault Response Fields

Value Limits Variable Description
Data Key 25-character alphanumeric DataKey This field is created when a profile is created and a token is returned.
It is a unique profile identifier, and is a required value for all future Vault transactions.
Vault Success true/false ResSuccess Indicates whether Vault transaction was successful.
PaymentType cc/ach PaymentType Indicates the payment type associated with a Vault profile.
Customer ID 30-character alphanumeric cust_id Returns the customer ID saved in the profile.
Phone Number 30-character alphanumeric phone Returns the phone number saved in the profile.
Email Address 30-character alphanumeric email Returns the email address saved in the profile.
Note 30-character alphanumeric note Returns the note saved in the profile.
ACH Fields
SEC Code 3-character numeric sec Returns the ACH SEC code saved in the profile.
Customer First Name 50-character alphanumeric cust_first_name Returns the customer first name saved in the profile.
Customer Last Name 50-character numeric cust_last_name Returns the customer last name saved in the profile.
Customer Address 1 50-character alphanumeric cust_address1 Returns the customer address line 1 saved in the profile.
Customer Address 2 50-character alphanumeric cust_address2 Returns the customer address line 2 saved in the profile.
Customer City 50-character alphanumeric cust_city Returns the customer city saved in the profile.
Customer State 2-character alphanumeric cust_state Returns the customer state code saved in the profile.
Customer Zip Code 10-character alphanumeric cust_zip Returns the customer zip code saved in the profile.
Check Routing Number 9-character alphanumeric routing_num Returns the customer check routing number saved in the profile.
Masked Account Number 15-character alphanumeric masked_account_num Returns the masked first 4 last 4 of the account number saved in the profile.
Check Number 16-character alphanumeric check_num Returns the check number saved in the profile.
Account Type savings/checking check_num Returns the type of account saved in the profile.

Predecessors
  • Transaction that was completed on an independent system
  • Vault Add ACH (API | Batch | Hosted Vault)
Successors
  • NA