This API allows merchants to securely store customer payment and address data in the payment gateway's secure environment. Once the data is stored, merchants can tokenize the payment information and use it to process future transactions without the need for the customer to re-enter their payment information. This can help to improve the customer experience, increase customer loyalty, and reduce the risk of fraud.
Request Field Description:
Request Object:
Customer Object:
KEY | VALUE | DESCRIPTION |
---|---|---|
Customer | ||
first_namestring | Up to 50 Characters | First name associated with customer’s billing address. |
last_namestring | Up to 50 Characters | Last name associated with customer’s billing address. |
street_1string | Up to 50 Characters | The street address 1 of the customer. |
street_2string | Up to 50 Characters | The street address 2 of the customer. |
citystring | Up to 50 Characters | If customer has city address information, it is saved on to Nilon's system |
statestring | Up to 50 Characters | If customer has state address information, it is saved on to Nilon's system |
zipstring | 5 digits or 9 digits | The postal or zip code of the cardholder. |
countrystring | Up to 50 Characters | If customer has country address information, it is saved on to Nilon's system |
phone_numbernumeric | 10 digits | If customer has phone number contact information, it is saved on to Nilon's system |
companystring | Up to 50 characters | If customer has company contact information, it is saved on to Nilon's system |
customer_idalphanumeric | AUTO” for auto generated id’s starts from 100000 or User Generated e.g. CID001 | The customer ID is either system generated or user specific. |
emailalphanumeric | Format: [email protected] | Customer email address for any email receipt. |
email_receiptstring | 1: Yes 0: No | Indicator to send email receipt to customer based on any action. |
notesstring | Transaction Notes | Customer specific notes can be provided here for additional information regarding the transactions. |
action_codenumeric | Action code 1 - Update Customer Action code 2 - Add Customer Action code 3 - Add customer/Check existing customer Action code 4 - Delete existing customer | Based on the action code, customer related updates can be performed. |
Card Object:
KEY | VALUE | DESCRIPTION |
---|---|---|
number*string | upto 50 characters | Card number is mandatory for card based transaction |
expiration_date*numeric | MMYY | Card Expiration Date is mandatory for card transaction |
tokenalphanumeric | upto 1000 characters | Account Token generated by the gateway. |
default_cardnumeric | 1 - default | This account will be setup as default for the customer profile |
action_code | Action code 1 - Update defined card as primary/default Action code 2 - Add a new card without setting as primary/default |
Check Object:
KEY | VALUE | DESCRIPTION |
---|---|---|
aba_code*alphanumeric | 9 digits | Routing Number specific to a ban |
account_typestring | Checking- 0, Saving- 1, Business- 2 | Nature/type of bank accounts - Savings, Checking, Business |
bank_namestring | upto 255 characters | Name of the bank associated with the customer’s bank account. |
check_numberstring | Up to 10 characters | Check number used while making transactions. To be provided only while using Back Office Conversions or Account Receivable Checks. |
sec_codestring | CCD- 0, PPD- 1, WEB- 2, TEL- 3, BOC- 4, ARC- 5 | These are Sectional entry class codes. OnePay supports the following: CCD, PPD, WEB, TEL, BOC, ARC. |
default_cardnumber | 1 - default | This account will be setup as default for the customer profile |
tokenalphanumeric | upto 1000 characters | Account Token generated by the gateway. |
Custom Field Object:
KEY | TYPE | VALUE | DESCRIPTION |
---|---|---|---|
idstring | string | up to 2 Characters 1 to 20 | Based on the selection on Custom User defined fields and id |
valuestring | string | up to 255 Characters | Based on the selection on Custom User defined fields and values |
Response Field Description
KEY | TYPE | VALUE | DESCRIPTION |
---|---|---|---|
result_codenumeric | numeric | 1 - Approved 2- Declined 3- Error | The overall status of the customer request. |
result_textstring | string | Up to 100 characters APPROVAL, DECLINED | The description of the customer request process. |
result_sub_codenumeric | numeric | 000- Approval | Based on customer creation and data update in the onepay system, response code is sent. |
transaction_datetimenumeric | numeric | Format: yyyyMMddTHHmmss | The date and time at which the customer save or update is made. |
citystring | string | Up to 50 Characters | If customer has city address information, it is saved on to Nilon's system |
statestring | string | Up to 50 Characters | If customer has state address information, it is saved on to Nilon's system |
zipstring | string | 5 digits or 9 digits | The postal or zip code of the cardholder. |
countrystring | string | Up to 50 Characters | If customer has country address information, it is saved on to Nilon's system |
phone_numbernumeric | numeric | 10 digits | If customer has phone number contact information, it is saved on to Nilon's system |
companystring | string | Up to 50 characters | If customer has company contact information, it is saved on to Nilon's system |
customer_idalphanumeric | alphanumeric | AUTO” for auto generated id’s starts from 100000 or User Generated e.g. CID001 | The customer ID is either system generated or user specific. |
emailalphanumeric | alphanumeric | Format: [email protected] | Customer email address for any email receipt. |
email_receiptnumeric | boolean | 1: Yes 0: No | Indicator to send email receipt to customer based on any action. |
notesstring | string | Transaction Notes | Customer specific notes can be provided here for additional information regarding the transactions. |
action_codenumeric | numeric | Action code 1 - Update Customer Action code 2 - Add Customer Action code 3 - Add customer/Check existing customer Action code 4 - Delete existing customer | Based on the action code, customer related updates can be performed. |
Customer | |||
first_namestring | string | Up to 50 Characters | First name associated with customer’s billing address. |
last_namestring | string | Up to 50 Characters | Last name associated with customer’s billing address. |
street_1string | string | Up to 50 Characters | The street address 1 of the customer. |
street_2string | string | Up to 50 Characters | The street address 2 of the customer. |
citystring | string | Up to 50 Characters | If customer has city address information, it is saved on to Nilon's system |
statestring | string | Up to 50 Characters | If customer has state address information, it is saved on to Nilon's system |
zipstring | string | 5 digits or 9 digits | The postal or zip code of the cardholder. |
countrystring | string | Up to 50 Characters | If customer has country address information, it is saved on to Nilon's system |
phone_numbernumeric | numeric | 10 digits | If customer has phone number contact information, it is saved on to Nilon's system |
companystring | string | Up to 50 characters | If customer has company contact information, it is saved on to Nilon's system |
customer_idalphanumeric | alphanumeric | AUTO” for auto generated id’s starts from 100000 or User Generated e.g. CID001 | The customer ID is either system generated or user specific. |
emailalphanumeric | alphanumeric | Format: [email protected] | Customer email address for any email receipt. |
email_receiptstring | boolean | 1: Yes 0: No | Indicator to send email receipt to customer based on any action. |
notesstring | string | Transaction Notes | Customer specific notes can be provided here for additional information regarding the transactions. |
action_codenumeric | numeric | Action code 1 - Update Customer Action code 2 - Add Customer Action code 3 - Add customer/Check existing customer Action code 4 - Delete existing customer | Based on the action code, customer related updates can be performed. |