curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/echeck/rollback \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"amount": "You need to change *this* with amount from the operation that you are trying to rollback",
"paymentToken": {
"type": "echeck",
"token": {
"provider": "jupico",
"token": "8b728fb4-976c-43c1-8402-04c23ac18861"
}
}
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/transactions/echeck/rollback"
payload = {
"subMerchantId": "jpt-sim-md-1",
"amount": "You need to change *this* with amount from the operation that you are trying to rollback",
"paymentToken": {
"type": "echeck",
"token": {
"provider": "jupico",
"token": "8b728fb4-976c-43c1-8402-04c23ac18861"
}
}
}
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',
amount: 'You need to change *this* with amount from the operation that you are trying to rollback',
paymentToken: {
type: 'echeck',
token: {provider: 'jupico', token: '8b728fb4-976c-43c1-8402-04c23ac18861'}
}
})
};
fetch('https://sandbox-platform.jupico.com/v1/transactions/echeck/rollback', 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/rollback';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subMerchantId: 'jpt-sim-md-1',
amount: 'You need to change *this* with amount from the operation that you are trying to rollback',
paymentToken: {
type: 'echeck',
token: {provider: 'jupico', token: '8b728fb4-976c-43c1-8402-04c23ac18861'}
}
})
};
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>"
}Roll back an eCheck transaction
A rollback (communications/system reversal) cancels an eCheck transaction whose response was not reliably delivered. Generate a rollback for any eCheck transaction that does not receive a response, to prevent duplicate or inconsistent charges. To return funds for a settled transaction, use Refund instead.
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/echeck/rollback \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"amount": "You need to change *this* with amount from the operation that you are trying to rollback",
"paymentToken": {
"type": "echeck",
"token": {
"provider": "jupico",
"token": "8b728fb4-976c-43c1-8402-04c23ac18861"
}
}
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/transactions/echeck/rollback"
payload = {
"subMerchantId": "jpt-sim-md-1",
"amount": "You need to change *this* with amount from the operation that you are trying to rollback",
"paymentToken": {
"type": "echeck",
"token": {
"provider": "jupico",
"token": "8b728fb4-976c-43c1-8402-04c23ac18861"
}
}
}
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',
amount: 'You need to change *this* with amount from the operation that you are trying to rollback',
paymentToken: {
type: 'echeck',
token: {provider: 'jupico', token: '8b728fb4-976c-43c1-8402-04c23ac18861'}
}
})
};
fetch('https://sandbox-platform.jupico.com/v1/transactions/echeck/rollback', 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/rollback';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subMerchantId: 'jpt-sim-md-1',
amount: 'You need to change *this* with amount from the operation that you are trying to rollback',
paymentToken: {
type: 'echeck',
token: {provider: 'jupico', token: '8b728fb4-976c-43c1-8402-04c23ac18861'}
}
})
};
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 operation request first
Unique identifier of the submerchant.
The amount of the original transaction.
The payment credential to charge: a one-time token from the web component or a stored Jupico token.
Show child attributes
Show child attributes
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?

