curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/creditcard/void \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"transactionId": "You need to change *this* with transactionId from operation"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/transactions/creditcard/void"
payload = {
"subMerchantId": "jpt-sim-md-1",
"transactionId": "You need to change *this* with transactionId from 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 transactionId from operation'
})
};
fetch('https://sandbox-platform.jupico.com/v1/transactions/creditcard/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/creditcard/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 transactionId from 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,
"customerId": "<string>",
"parentId": "<string>",
"txDate": "<string>",
"referenceNumber": "<string>",
"referenceId": "<string>",
"taxAmount": 123,
"description": "<string>",
"billing": {
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"name": "<string>"
},
"shipping": {},
"paymentMethod": {
"type": "<string>",
"eCheck": {
"accountType": "<string>",
"routingNumber": "<string>",
"accountNumberLast4": "<string>",
"checkNumber": "<string>",
"checkType": "<string>"
},
"cc": {
"card": {
"last4Digits": "<string>",
"expirationYear": "<string>",
"expirationMonth": "<string>",
"logo": "<string>"
},
"token": "<string>"
}
},
"ticketNumber": "<string>",
"balanceAmount": 123
},
"success": true,
"message": "<string>",
"code": "<string>"
}Void a card transaction
Cancels a transaction that has not yet settled, so the customer is never charged. Once a transaction has settled, use Refund instead.
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/transactions/creditcard/void \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"transactionId": "You need to change *this* with transactionId from operation"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/transactions/creditcard/void"
payload = {
"subMerchantId": "jpt-sim-md-1",
"transactionId": "You need to change *this* with transactionId from 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 transactionId from operation'
})
};
fetch('https://sandbox-platform.jupico.com/v1/transactions/creditcard/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/creditcard/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 transactionId from 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,
"customerId": "<string>",
"parentId": "<string>",
"txDate": "<string>",
"referenceNumber": "<string>",
"referenceId": "<string>",
"taxAmount": 123,
"description": "<string>",
"billing": {
"address": "<string>",
"city": "<string>",
"zipCode": "<string>",
"state": "<string>",
"name": "<string>"
},
"shipping": {},
"paymentMethod": {
"type": "<string>",
"eCheck": {
"accountType": "<string>",
"routingNumber": "<string>",
"accountNumberLast4": "<string>",
"checkNumber": "<string>",
"checkType": "<string>"
},
"cc": {
"card": {
"last4Digits": "<string>",
"expirationYear": "<string>",
"expirationMonth": "<string>",
"logo": "<string>"
},
"token": "<string>"
}
},
"ticketNumber": "<string>",
"balanceAmount": 123
},
"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 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
The text that appears on the cardholder’s statement, overriding the default business name.
25"SMITHS STORE"
Response
Successful void
Was this page helpful?

