Delete an invoice
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/invoices/delete \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"invoiceId": "You need to change *this* with invoiceId from invoice creation"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/invoices/delete"
payload = {
"subMerchantId": "jpt-sim-md-1",
"invoiceId": "You need to change *this* with invoiceId from invoice creation"
}
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',
invoiceId: 'You need to change *this* with invoiceId from invoice creation'
})
};
fetch('https://sandbox-platform.jupico.com/v1/invoices/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/invoices/delete';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subMerchantId: 'jpt-sim-md-1',
invoiceId: 'You need to change *this* with invoiceId from invoice creation'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Invoices
Delete an invoice
Permanently deletes an invoice. This cannot be undone; to cancel an invoice while keeping the record, use Void instead.
POST
https://sandbox-platform.jupico.com
/
v1
/
invoices
/
delete
Delete an invoice
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/invoices/delete \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"subMerchantId": "jpt-sim-md-1",
"invoiceId": "You need to change *this* with invoiceId from invoice creation"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/invoices/delete"
payload = {
"subMerchantId": "jpt-sim-md-1",
"invoiceId": "You need to change *this* with invoiceId from invoice creation"
}
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',
invoiceId: 'You need to change *this* with invoiceId from invoice creation'
})
};
fetch('https://sandbox-platform.jupico.com/v1/invoices/delete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/invoices/delete';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subMerchantId: 'jpt-sim-md-1',
invoiceId: 'You need to change *this* with invoiceId from invoice creation'
})
};
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 deleted.
Last modified on August 31, 2026
Was this page helpful?

