curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/echeck/void \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"transactionId": "You need to change *this* with token from SALE operation"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/transactions/echeck/void"
payload = {
"subMerchantId": "jpt-sim-md-1",
"transactionId": "You need to change *this* with token from SALE operation"
}
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({
subMerchantId: 'jpt-sim-md-1',
transactionId: 'You need to change *this* with token from SALE operation'
})
};
fetch('https://sandbox-platform.jupico.com/v1/transactions/echeck/void', 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/void';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subMerchantId: 'jpt-sim-md-1',
transactionId: 'You need to change *this* with token from SALE operation'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"data": {
"status": "<string>",
"transactionId": "<string>",
"operation": "<string>",
"subMerchantId": "<string>",
"amount": 123,
"balanceAmount": 123,
"customerId": "<string>",
"parentId": "<string>",
"referenceNumber": "<string>",
"referenceId": "<string>",
"taxAmount": 123,
"txDate": "<string>",
"description": "<string>",
"dynamicFee": {
"discountRatePerc": 123,
"fixed": 123
},
"paymentMethod": {
"cc": {
"card": {}
},
"eCheck": {
"accountType": "<string>",
"routingNumber": "<string>",
"accountNumberLast4": "<string>",
"checkNumber": "<string>",
"checkType": "<string>",
"bankAccToken": "<string>"
}
},
"billing": {
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"email": "<string>",
"name": "<string>",
"phone": "<string>"
},
"approvalNumber": "<string>",
"shipping": {
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"email": "<string>",
"name": "<string>",
"phone": "<string>"
},
"paymentToken": {
"type": "<string>",
"token": {
"provider": "<string>",
"token": "<string>",
"accountType": "<string>",
"routingLast4Digits": "<string>",
"accountLast4Digits": "<string>",
"accountHolderName": "<string>"
}
}
},
"success": true,
"message": "<string>",
"code": "<string>"
}Void an eCheck transaction
Cancels an eCheck transaction that has not yet been submitted for settlement, so no debit occurs. Once settled, use Refund instead.
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/echeck/void \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"transactionId": "You need to change *this* with token from SALE operation"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/transactions/echeck/void"
payload = {
"subMerchantId": "jpt-sim-md-1",
"transactionId": "You need to change *this* with token from SALE operation"
}
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({
subMerchantId: 'jpt-sim-md-1',
transactionId: 'You need to change *this* with token from SALE operation'
})
};
fetch('https://sandbox-platform.jupico.com/v1/transactions/echeck/void', 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/void';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subMerchantId: 'jpt-sim-md-1',
transactionId: 'You need to change *this* with token from SALE operation'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"data": {
"status": "<string>",
"transactionId": "<string>",
"operation": "<string>",
"subMerchantId": "<string>",
"amount": 123,
"balanceAmount": 123,
"customerId": "<string>",
"parentId": "<string>",
"referenceNumber": "<string>",
"referenceId": "<string>",
"taxAmount": 123,
"txDate": "<string>",
"description": "<string>",
"dynamicFee": {
"discountRatePerc": 123,
"fixed": 123
},
"paymentMethod": {
"cc": {
"card": {}
},
"eCheck": {
"accountType": "<string>",
"routingNumber": "<string>",
"accountNumberLast4": "<string>",
"checkNumber": "<string>",
"checkType": "<string>",
"bankAccToken": "<string>"
}
},
"billing": {
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"email": "<string>",
"name": "<string>",
"phone": "<string>"
},
"approvalNumber": "<string>",
"shipping": {
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"email": "<string>",
"name": "<string>",
"phone": "<string>"
},
"paymentToken": {
"type": "<string>",
"token": {
"provider": "<string>",
"token": "<string>",
"accountType": "<string>",
"routingLast4Digits": "<string>",
"accountLast4Digits": "<string>",
"accountHolderName": "<string>"
}
}
},
"success": true,
"message": "<string>",
"code": "<string>"
}Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
To test this endpoint you need to make an eCheck Sale request first
Unique identifier of the submerchant.
Identifier of the transaction to void.
Free-text description.
Your own reference for this transaction. Returned in responses and query results for reconciliation.
metadata is an object that can host as much as 50 key-value pairs, where the keys can be at most 40 char length and can’t include the characters “[“ or “]”, and the values must be strings and cannot exceed 500 chars Learn more about metadata
Show child attributes
Show child attributes
Response
Successful eCheck operation
Was this page helpful?

