Uncategorized

GET Request

Posted on

POST  https://apisandbox.onepay.com/TransData Copy to clipboard {   “transaction_response”:    {     “result_code”:1,     “result_sub_code”:”000″,     “result_text”:”APPROVAL”,     “transaction_id”:”1035704″,     “transaction_datetime”:”20190423T030501Z”,     “account_type”:”VI”,     “account_last_4″:”4242”,     “amount”:”206.81″,     “approved_amount”:”206.81″,     “method”:”CC”,     “auth_code”:”OK0308″,     “avs_result_code”:null,     “account_code_result”:””,     “type”:”2″,     “expiration_date”:”0420″,     “token”:”2767285677594242″    },     “nonce”:”1556013894″,     “test”:”0″,     “customer_response”:     {      “result_code”:1,      “result_text”:”SUCCESS”,      “result_sub_code”:”000″,      “transaction_datetime”:”20190423T100519Z”,      “token”:”2767285677594242″     },    “customer”:    {      “first_name”:”Karim”,      “last_name”:”Benzema”,      “street_1″:””,      “street_2″:””,      “city”:””,      “state”:””,      “zip”:””,      “country”:””,      “phone_number”:””,      “company”:””,      “customer_id”:”1000227″,      “invoice_number”:”123456789″,      “email”:””,      “email_receipt”:”NO”,      “notes”:”Certifyglobal”,      “action_code”:”1″,      “source_user”:”Amex”,      “source_application”:null, […]

Uncategorized

GET Request

Posted on

  OnePay supports offline refunds only. Specify the transaction type as 8 and provide the reference transaction ID to refund the original transaction ID. Copy to clipboard { “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″, […]

Uncategorized

GET Void Request

Posted on

  An existing auth or auth-capture transaction can be voided by providing appropriate original trasaction ID as refernce in the void request. Copy to clipboard { “type”:”5″, “method”:”CC”, “nonce”:{{$timestamp}}, “reference_transaction_id”:”1005741″, “amount”:”310.28″, “notes”:”000040520011″, “card”:{ “number”:”1116″ }, “custom_fields”:[ { “id”:”1″, “value”:”Certifyglobal Test” } ], “additional_data”:[ { “id”:”USER”, “value”:”JCB” }, { “id”:”SOURCE”, “value”:”PS” } ] } KEY VALUE […]

Uncategorized

POST Auth only Request

Posted on

The type is sent as 1 when the transaction needs to be sent as authorization and used for capture later Copy to clipboard { “amount”:”620.56″, “method”:”CC”, “type”:”1″, “nonce”:{{$timestamp}}, “test”:”0″, “reference_transaction_id”:””, “client_ip”:”172.26.15.177″, “device_code”:””, “market_code”:”E”, “referrer_url”:”onepay.com”, “notes”:”000040520010″, “card”:{ “number”:”375987654111116″, “code”:”1234″, “expiration_date”:”0420″, “type”:”Amex”, “track_data”:”” }, “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″, […]

Uncategorized

POST Generate Token

Posted on

POST https://apisandbox.onepay.com/Token When a customer card or check details are provided in the token object, token is generated. Tokens can be used to process the transactions, create billing plans and save to customer vault. Copy to clipboard { “card”:{ “number”:”4111111111111111″, “code”:”228″, “expiration_date”:”0419″, “type”:”AX”, “track_data”:null, “action_code”:null, “default_card”:null, “token”:”” }, “check”:null } KEY VALUE DESCRIPTION check object […]

Uncategorized

POST GetBatchDetail Response

Posted on

POST{{GatewayAPIURL}}/Batch/GetBatchDetail/ The batch details with transactional details are available as a part of this response Copy to clipboard { “batch_response”: { “result_code”:1, “result_sub_code”:”000″, “result_text”:”SUCCESS”, “merchant_terminal_id”:”91″, “terminal_name”:”ABCRETAIL”, “batch_id”:”1011081″, “batch_date”:null }, “transaction”: [ { “batch_id”:1011081, “gateway_id”:100003, “terminal_id”:”00000002″, “transaction_id”:1034983, “transaction_datetime”:”20190405T111319Z”, “card_type”:null, “accountnumberlast4″:”1111”, “expiration_date”:”0420″, “transaction_amount”:12.00, “method”:”CC”, “auth_id”:”OK0386″, “transaction_type”:2, “nonce”:”950483928″, “token”:”1550601794131111″ } ] } KEY VALUE DESCRIPTION batch_response object This […]

Uncategorized

POST Get Batch Response

Posted on

POST{{GatewayAPIURL}}/Batch/GetBatch/YYYY-MM-DD This API will return batch response and Batch summary for provided batch date , the Terminal is retrieved from Terminal key provided Copy to clipboard { “batch_response”: { “result_code”:1, “result_sub_code”:”000″, “result_text”:”SUCCESS”, “merchant_terminal_id”:”91″, “terminal_name”:”ABCRETAIL”, “batch_date”:”2019-04-05″ }, “batch_summary”: [ { “batch_id”:”1011081″, “settlement_date_time”:”20190405T050108Z”, “sale_amount”:”12.00″, “credit_amount”:”0.00″, “net_amount”:”12.00″, “no_of_transactions”:”1″ } ] } KEY VALUE DESCRIPTION batch_response object Response details […]

Uncategorized

VIEW Response

Posted on

POST http://apisandbox.onepay.com/billing/plan The response to a billing creation request is sent back in this object Copy to clipboard { “billing_response”:{ “result_code”:1, “result_text”:”SUCCESS”, “result_sub_code”:”000″, “transaction_datetime”:”04/13/2019 08:53:45″ } ,”billing_plan”:{ “abid”:2879, “customer_id”:”1091913485057794″, “token”:”3221510895193335″, “plan_type”:1, “schedule_type”:”M”, “amount”:500.0, “start_date”:”2019-04-14T00:00:00″, “periodicity”:2, “end_date”:null, “end_type”:3, “no_of_payments”:2, “reference_id”:”7675656756″, “name”:”test”, “active”:true, “billing_mode”:”0″, “max_retry”:1, “bill_day”:2, “ref_token_id”:null, “email_receipt”:false } ,”bill_sequence”:[ { “id”:0, “reference_id”:1, “sequence_number”:1, “amount”:100.0, “schedule_date”:”2019-02-03T00:00:00″ } […]