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

Card Object

Check Object

Custom Field Object

Customer Object:

KEYVALUEDESCRIPTION
Customer
first_name
string
Up to 50 CharactersFirst name associated with customer’s billing address.
last_name
string
Up to 50 CharactersLast name associated with customer’s billing address.
street_1
string
Up to 50 CharactersThe street address 1 of the customer.
street_2
string
Up to 50 CharactersThe street address 2 of the customer.
city
string
Up to 50 CharactersIf customer has city address information, it is saved on to Onepay's system
state
string
Up to 50 CharactersIf customer has state address information, it is saved on to Onepay's system
zip
string
5 digits or 9 digitsThe postal or zip code of the cardholder.
country
string
Up to 50 CharactersIf customer has country address information, it is saved on to Onepay's system
phone_number
numeric
10 digitsIf customer has phone number contact information, it is saved on to Onepay's system
company
string
Up to 50 charactersIf customer has company contact information, it is saved on to Onepay's system
customer_id
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.
email
alphanumeric
Format: [email protected]Customer email address for any email receipt.
email_receipt
string
1: Yes
0: No
Indicator to send email receipt to customer based on any action.
notes
string
Transaction NotesCustomer specific notes can be provided here for additional information regarding the transactions.
action_code
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.

Card Object:

KEYVALUEDESCRIPTION
number*
string
upto 50 charactersCard number is mandatory for card based transaction
expiration_date*
numeric
MMYYCard Expiration Date is mandatory for card transaction
token
alphanumeric
upto 1000 charactersAccount Token generated by the gateway.
default_card
numeric
1 - defaultThis account will be setup as default for the customer profile
action_codeAction code 1 - Update defined card as primary/default
Action code 2 - Add a new card without setting as primary/default

Check Object:

KEYVALUEDESCRIPTION
aba_code*
alphanumeric
9 digitsRouting Number specific to a ban
account_type
string
Checking- 0,
Saving- 1,
Business- 2
Nature/type of bank accounts - Savings, Checking, Business
bank_name
string
upto 255 charactersName of the bank associated with the customer’s bank account.
check_number
string
Up to 10 charactersCheck number used while making transactions.
To be provided only while using Back Office Conversions or Account Receivable Checks.
sec_code
string
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_card
number
1 - defaultThis account will be setup as default for the customer profile
token
alphanumeric
upto 1000 charactersAccount Token generated by the gateway.

Custom Field Object:

KEYTYPEVALUEDESCRIPTION
id
string
stringup to 2 Characters
1 to 20
Based on the selection on Custom User defined fields and id
value
string
stringup to 255 CharactersBased on the selection on Custom User defined fields and values

Response Field Description

KEYTYPEVALUEDESCRIPTION
result_code
numeric
numeric1 - Approved
2- Declined
3- Error
The overall status of the customer request.
result_text
string
stringUp to 100 characters APPROVAL, DECLINEDThe description of the customer request process.
result_sub_code
numeric
numeric000- ApprovalBased on customer creation and data update in the onepay system, response code is sent.
transaction_datetime
numeric
numericFormat: yyyyMMddTHHmmssThe date and time at which the customer save or update is made.
city
string
stringUp to 50 CharactersIf customer has city address information, it is saved on to Onepay's system
state
string
stringUp to 50 CharactersIf customer has state address information, it is saved on to Onepay's system
zip
string
string5 digits or 9 digitsThe postal or zip code of the cardholder.
country
string
stringUp to 50 CharactersIf customer has country address information, it is saved on to Onepay's system
phone_number
numeric
numeric10 digitsIf customer has phone number contact information, it is saved on to Onepay's system
company
string
stringUp to 50 charactersIf customer has company contact information, it is saved on to Onepay's system
customer_id
alphanumeric
alphanumericAUTO” for auto generated id’s
starts from 100000 or User Generated e.g. CID001
The customer ID is either system generated or user specific.
email
alphanumeric
alphanumericFormat: [email protected]Customer email address for any email receipt.
email_receipt
numeric
boolean1: Yes
0: No
Indicator to send email receipt to customer based on any action.
notes
string
stringTransaction NotesCustomer specific notes can be provided here for additional information regarding the transactions.
action_code
numeric
numericAction 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_name
string
stringUp to 50 CharactersFirst name associated with customer’s billing address.
last_name
string
stringUp to 50 CharactersLast name associated with customer’s billing address.
street_1
string
stringUp to 50 CharactersThe street address 1 of the customer.
street_2
string
stringUp to 50 CharactersThe street address 2 of the customer.
city
string
stringUp to 50 CharactersIf customer has city address information, it is saved on to Onepay's system
state
string
stringUp to 50 CharactersIf customer has state address information, it is saved on to Onepay's system
zip
string
string5 digits or 9 digitsThe postal or zip code of the cardholder.
country
string
stringUp to 50 CharactersIf customer has country address information, it is saved on to Onepay's system
phone_number
numeric
numeric10 digitsIf customer has phone number contact information, it is saved on to Onepay's system
company
string
stringUp to 50 charactersIf customer has company contact information, it is saved on to Onepay's system
customer_id
alphanumeric
alphanumericAUTO” for auto generated id’s
starts from 100000 or User Generated e.g. CID001
The customer ID is either system generated or user specific.
email
alphanumeric
alphanumericFormat: [email protected]Customer email address for any email receipt.
email_receipt
string
boolean1: Yes
0: No
Indicator to send email receipt to customer based on any action.
notes
string
stringTransaction NotesCustomer specific notes can be provided here for additional information regarding the transactions.
action_code
numeric
numericAction 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.