Void an invoice
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/invoices/void \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "874767775007"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/invoices/void"
payload = { "subMerchantId": "874767775007" }
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: '874767775007'})
};
fetch('https://sandbox-platform.jupico.com/v1/invoices/void', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/invoices/void';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({subMerchantId: '874767775007'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Invoices
Void an invoice
Voids an invoice so it can no longer be paid. Voided invoices remain visible for record-keeping.
POST
https://sandbox-platform.jupico.com
/
v1
/
invoices
/
void
Void an invoice
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/invoices/void \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "874767775007"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/invoices/void"
payload = { "subMerchantId": "874767775007" }
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: '874767775007'})
};
fetch('https://sandbox-platform.jupico.com/v1/invoices/void', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/invoices/void';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({subMerchantId: '874767775007'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Response
Invoice successfully created.
Last modified on August 31, 2026
Was this page helpful?

