Uncategorized

GET Request

 
OnePay supports offline refunds only. Specify the transaction type as 8 and provide the reference transaction ID to refund the original transaction ID.

Sample Code


{   
   "amount":"829.57", 
   "method":"CC", 
   "type":"7", 
   "nonce":{{$timestamp}}, 
   "test":"0", 
   "reference_transaction_id":"", 
   "client_ip":"172.26.15.177", 
   "device_code":"", 
   "market_code":"M", 
   "referrer_url":"onepay.com", 
   "notes":"000035140010", 
   "card":{   
      "number":"379605176666666", 
      "code":"1234", 
      "expiration_date":"0420" 
   }, 
   "customer":{   
      "first_name":"Certify", 
      "last_name":"Global", 
      "street_1":"1307 Broad Hollow Road", 
      "street_2":"", 
      "city":"Melville", 
      "state":"NY", 
      "zip":"11747", 
      "country":"US", 
      "phone_number":"0123456789", 
      "company":"FirstData", 
      "customer_id":"12345", 
      "invoice_number":"123456789", 
      "email":"kasi.subramanian@Certifyglobal.com", 
      "email_receipt":"YES", 
      "notes":"Certifyglobal" 
   }, 
   "custom_fields":[   
      {   
         "id":"1", 
         "value":"Certifyglobal Test" 
      } 
   ], 
    "additional_data":[   
      {   
         "id":"USER", 
         "value":"Amex"5.  
      }, 
      {   
         "id":"SOURCE", 
         "value":"VT" 
      } 
   ] 
} 
 
KEY VALUE DESCRIPTION
amount decimal amount of the charge to be authorized.
amount decimal amount of the charge to be authorized.
amount decimal amount of the charge to be authorized.