Payment Transactions

EBT: Refund

EBT: Refund

This EBT transaction type is used to refund a customer for a transaction that was successfully settled through the payment gateway.

Example Request:

{
   "amount": "32.28",
   "method": "EBT",
   "type": "7",
   "nonce": {{$timestamp}},
   "test": "0",
   "reference_transaction_id": "",
   "client_ip": "172.26.15.177",
   "device_code": "",
   "market_code": "R",
   "notes": "100039830010",
   
   "card": {
      "track_data": "%B5053490000000016^FDCS TEST CARD /MASTERCARD^25121010001111123456789012?;5053490000000016=2512101100000123456?",
      "pin_block": "D371EABE5B268669",
      "ksn": "F876543210000A200046"
   },
  "Customer": {
        "first_name": "Oscar",
        "last_name": "Brady",
        "street_1": "55",
        "street_2": "Airport Drive",
        "city": "Pensacola",
        "state": "FL",
        "zip": "32503",
        "country": "US",
        "phone_number": "2025550197",
        "company": "Ferry Group",
        "customer_id": "AUTO",
        "invoice_number": null,
        "email": "oscar@brady.com",
        "email_receipt": "YES",
        "notes": "Sample Test ",
    }
}

Example Response:

{  
"transaction_response": 
  {    
  "result_code": 1,    
  "result_sub_code": "000",    
  "result_text": "APPROVAL",    
  "transaction_id": "1035510",    
  "transaction_datetime": "20200819T084312Z",    
  "account_type": "MC",    
  "account_last_4": "0016",    
  "amount": "32.28",    
  "approved_amount": "32.28",    
  "method": "EBT",    
  "auth_code": "000374",    
  "account_code_result": "",    
  "type": "7",    
  "expiration_date": "1225",    
  "token": "",    
  "emv": "",    
  "emv_tag_data": "",   
  "entry_mode": ""  
  },  
  "nonce": "1597826587",  
  "test": "0",  
     "customer": 
     {    
     "first_name": "Oscar",    
     "last_name": "Brady",    
     "street_1": "55",    
     "street_2": "Airport Drive",    
     "city": "Pensacola",    
     "state": "FL",    
     "zip": "32503",    
     "country": "US",    
     "phone_number": "2025550197",    
     "company": "Ferry Group",    
     "customer_id": "1000461",    
     "email": "oscar@brady.com",    
     "email_receipt": "YES",    
     "notes": "Sample Test",    
     },
    "card_info": {    
    "card_class": "",    
    "product_id": "",    
    "prepaid_indicator": "",    
    "detailcard_indicator": "",    
    "debitnetwork_indicator": ""  
    }
}