curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/creditcard/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": "creditcard",
"token": {
"provider": "jupico",
"token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
}
}
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/transactions/creditcard/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": "creditcard",
"token": {
"provider": "jupico",
"token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
}
}
}
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: 'creditcard',
token: {provider: 'jupico', token: '5dd19881-b437-42b0-9c9b-7773ebb598eb'}
}
})
};
fetch('https://sandbox-platform.jupico.com/v1/transactions/creditcard/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/creditcard/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: 'creditcard',
token: {provider: 'jupico', token: '5dd19881-b437-42b0-9c9b-7773ebb598eb'}
}
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"code": "<string>",
"message": "<string>"
}Roll back a card transaction
A rollback (communications/system reversal) cancels a transaction whose response you never received — for example, after a timeout. As the original requestor, you are responsible for generating a rollback for every transaction that does not receive a response, to prevent duplicate or inconsistent charges.
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/creditcard/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": "creditcard",
"token": {
"provider": "jupico",
"token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
}
}
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/transactions/creditcard/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": "creditcard",
"token": {
"provider": "jupico",
"token": "5dd19881-b437-42b0-9c9b-7773ebb598eb"
}
}
}
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: 'creditcard',
token: {provider: 'jupico', token: '5dd19881-b437-42b0-9c9b-7773ebb598eb'}
}
})
};
fetch('https://sandbox-platform.jupico.com/v1/transactions/creditcard/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/creditcard/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: 'creditcard',
token: {provider: 'jupico', token: '5dd19881-b437-42b0-9c9b-7773ebb598eb'}
}
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"code": "<string>",
"message": "<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 SALE 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
Was this page helpful?

