curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/echeck/tokenize \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"accountHolderName": "John Doe",
"accountType": "savings",
"accountNumber": "12312311",
"routingNumber": "122187238"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/transactions/echeck/tokenize"
payload = {
"accountHolderName": "John Doe",
"accountType": "savings",
"accountNumber": "12312311",
"routingNumber": "122187238"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountHolderName: 'John Doe',
accountType: 'savings',
accountNumber: '12312311',
routingNumber: '122187238'
})
};
fetch('https://sandbox-platform.jupico.com/v1/transactions/echeck/tokenize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/transactions/echeck/tokenize';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountHolderName: 'John Doe',
accountType: 'savings',
accountNumber: '12312311',
routingNumber: '122187238'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"code": "<string>",
"data": {
"paymentToken": {
"type": "<string>",
"token": {
"provider": "<string>",
"token": "<string>",
"accountType": "<string>",
"routingLast4Digits": "<string>",
"accountLast4Digits": "<string>",
"accountHolderName": "<string>"
}
}
},
"message": "<string>"
}Tokenize a bank account
Tokenizes a customer’s bank account details. Use the returned token in place of raw account data for eCheck sales and recurring payments.
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/echeck/tokenize \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"accountHolderName": "John Doe",
"accountType": "savings",
"accountNumber": "12312311",
"routingNumber": "122187238"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/transactions/echeck/tokenize"
payload = {
"accountHolderName": "John Doe",
"accountType": "savings",
"accountNumber": "12312311",
"routingNumber": "122187238"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountHolderName: 'John Doe',
accountType: 'savings',
accountNumber: '12312311',
routingNumber: '122187238'
})
};
fetch('https://sandbox-platform.jupico.com/v1/transactions/echeck/tokenize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/transactions/echeck/tokenize';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accountHolderName: 'John Doe',
accountType: 'savings',
accountNumber: '12312311',
routingNumber: '122187238'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"code": "<string>",
"data": {
"paymentToken": {
"type": "<string>",
"token": {
"provider": "<string>",
"token": "<string>",
"accountType": "<string>",
"routingLast4Digits": "<string>",
"accountLast4Digits": "<string>",
"accountHolderName": "<string>"
}
}
},
"message": "<string>"
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
API support various types of use. Required fields are defined by the most basic call. For other uses be sure to send the required information defined in the schema and examples.
Name on the bank account. Alphanumeric, up to 90 characters.
90Bank account type, such as checking.
Bank account number.
9-digit ABA routing number.
Optional friendly name for the stored bank account.
Type of check used for the debit.
Response
Successful eCheck operation
Whether the request was processed successfully. Declines return HTTP 200 with success: false.
Machine-readable result code. See the Error Codes reference.
The response payload.
Hide child attributes
Hide child attributes
The payment credential to charge: a one-time token from the web component or a stored Jupico token.
Hide child attributes
Hide child attributes
Type of token supplied.
Token payload returned by tokenization.
Hide child attributes
Hide child attributes
Payment provider that issued the token (for example, jupico).
The token value.
Bank account type, such as checking.
Last 4 digits of the routing number.
Last 4 digits of the bank account number.
Name on the bank account.
Human-readable result message.
Was this page helpful?

