Payment Transactions

Credit an Account

Credit an Account

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

Example Request:

{   
   "type":"7", 
   "method":"CC",
   "nonce":{{$timestamp}}, 
   "reference_transaction_id":"1038456", 
   "amount":"50.00", 
   "card":{   
      "number":"1111" 
   }
} 

Example Response:

{
  "transaction_response": {
    "result_code": 1,
    "result_sub_code": "000",
    "result_text": "APPROVAL",
    "transaction_id": "1038553",
    "transaction_uid": "7a8da8d7-346e-4ab5-a43b-7edc70b2fcf0",
    "transaction_datetime": "20200921T102128Z",
    "account_type": "VI",
    "account_last_4": "1111",
    "amount": "50.00",
    "approved_amount": "50.00",
    "method": "CC",
    "auth_code": "OK1794",
    "avs_result_code": " ",
    "code_result": " ",
    "type": "7",
    "expiration_date": "1021",
    "token": "",
    "emv": "",
    "emv_tag_data": "",
    "entry_mode": ""
  },
  "nonce": "1600683679",
  "test": "0",
  "customer": {
    "first_name": "",
    "last_name": "",
    "street_1": "",
    "street_2": "",
    "city": "",
    "state": "",
    "zip": "",
    "country": "",
    "phone_number": "",
    "company": "",
    "customer_id": "",
    "email": "",
    "email_receipt": "",
    "notes": "",
    "action_code": ""
  },
  "card_info": {
    "card_class": "",
    "product_id": "",
    "prepaid_indicator": "",
    "detailcard_indicator": "",
    "debitnetwork_indicator": ""
  }
}

Refund can only be done if the transaction has been settled by the Bank.