curl --request POST \
--url https://sandbox-platform.jupico.com/v1/payouts/instruction/void \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "874767775004",
"payoutId": "36373c28d4da12feb9bb54fd3753d434:41dec2092b58351f55ad26fa5d75035ddb9fcef4ca767b5cdbf45074cf652402"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/payouts/instruction/void"
payload = {
"subMerchantId": "874767775004",
"payoutId": "36373c28d4da12feb9bb54fd3753d434:41dec2092b58351f55ad26fa5d75035ddb9fcef4ca767b5cdbf45074cf652402"
}
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: '874767775004',
payoutId: '36373c28d4da12feb9bb54fd3753d434:41dec2092b58351f55ad26fa5d75035ddb9fcef4ca767b5cdbf45074cf652402'
})
};
fetch('https://sandbox-platform.jupico.com/v1/payouts/instruction/void', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/payouts/instruction/void';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subMerchantId: '874767775004',
payoutId: '36373c28d4da12feb9bb54fd3753d434:41dec2092b58351f55ad26fa5d75035ddb9fcef4ca767b5cdbf45074cf652402'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"success": true,
"code": "<string>",
"message": "<string>"
}Void a payout instruction
Voids a payout instruction, returning the funds to the submerchant’s available balance. Send both subMerchantId and payoutId; a request without subMerchantId is rejected with HTTP 401 auth_invalid_submerchant. Only a payout in pending status can be voided — once it has been approved (ack) or sent, it can no longer be voided.
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/payouts/instruction/void \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "874767775004",
"payoutId": "36373c28d4da12feb9bb54fd3753d434:41dec2092b58351f55ad26fa5d75035ddb9fcef4ca767b5cdbf45074cf652402"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/payouts/instruction/void"
payload = {
"subMerchantId": "874767775004",
"payoutId": "36373c28d4da12feb9bb54fd3753d434:41dec2092b58351f55ad26fa5d75035ddb9fcef4ca767b5cdbf45074cf652402"
}
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: '874767775004',
payoutId: '36373c28d4da12feb9bb54fd3753d434:41dec2092b58351f55ad26fa5d75035ddb9fcef4ca767b5cdbf45074cf652402'
})
};
fetch('https://sandbox-platform.jupico.com/v1/payouts/instruction/void', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/payouts/instruction/void';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subMerchantId: '874767775004',
payoutId: '36373c28d4da12feb9bb54fd3753d434:41dec2092b58351f55ad26fa5d75035ddb9fcef4ca767b5cdbf45074cf652402'
})
};
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
voids a payout.
Unique identifier of the submerchant that owns the payout. Required. If it is missing or does not match the payout, the request is rejected with HTTP 401 auth_invalid_submerchant.
Unique identifier of the payout instruction to void. Required. Only a payout in pending status can be voided.
Was this page helpful?

