Update an invoice
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/invoices/update \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"invoiceId": "You need to change *this* with invoiceId from invoice creation",
"subMerchantId": "jpt-sim-md-1",
"customerId": "65f7ee397a4bb65ed744b67f",
"items": [
{
"description": "Support plan - monthly",
"quantity": 3,
"amount": 100,
"taxRate": 123
}
],
"totalAmount": 300,
"date": "2023-12-10T20:02:20.454Z",
"dueDate": "2023-12-10T20:02:20.454Z",
"paymentTerm": "Due Upon Receipt"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/invoices/update"
payload = {
"invoiceId": "You need to change *this* with invoiceId from invoice creation",
"subMerchantId": "jpt-sim-md-1",
"customerId": "65f7ee397a4bb65ed744b67f",
"items": [
{
"description": "Support plan - monthly",
"quantity": 3,
"amount": 100,
"taxRate": 123
}
],
"totalAmount": 300,
"date": "2023-12-10T20:02:20.454Z",
"dueDate": "2023-12-10T20:02:20.454Z",
"paymentTerm": "Due Upon Receipt"
}
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({
invoiceId: 'You need to change *this* with invoiceId from invoice creation',
subMerchantId: 'jpt-sim-md-1',
customerId: '65f7ee397a4bb65ed744b67f',
items: [
{description: 'Support plan - monthly', quantity: 3, amount: 100, taxRate: 123}
],
totalAmount: 300,
date: '2023-12-10T20:02:20.454Z',
dueDate: '2023-12-10T20:02:20.454Z',
paymentTerm: 'Due Upon Receipt'
})
};
fetch('https://sandbox-platform.jupico.com/v1/invoices/update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/invoices/update';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
invoiceId: 'You need to change *this* with invoiceId from invoice creation',
subMerchantId: 'jpt-sim-md-1',
customerId: '65f7ee397a4bb65ed744b67f',
items: [
{description: 'Support plan - monthly', quantity: 3, amount: 100, taxRate: 123}
],
totalAmount: 300,
date: '2023-12-10T20:02:20.454Z',
dueDate: '2023-12-10T20:02:20.454Z',
paymentTerm: 'Due Upon Receipt'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Invoices
Update an invoice
Updates the details of an existing invoice, such as items, amounts, or dates.
POST
https://sandbox-platform.jupico.com
/
v1
/
invoices
/
update
Update an invoice
curl --request POST \
--url https://sandbox-platform.jupico.com/v1/invoices/update \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"invoiceId": "You need to change *this* with invoiceId from invoice creation",
"subMerchantId": "jpt-sim-md-1",
"customerId": "65f7ee397a4bb65ed744b67f",
"items": [
{
"description": "Support plan - monthly",
"quantity": 3,
"amount": 100,
"taxRate": 123
}
],
"totalAmount": 300,
"date": "2023-12-10T20:02:20.454Z",
"dueDate": "2023-12-10T20:02:20.454Z",
"paymentTerm": "Due Upon Receipt"
}
'import requests
url = "https://sandbox-platform.jupico.com/v1/invoices/update"
payload = {
"invoiceId": "You need to change *this* with invoiceId from invoice creation",
"subMerchantId": "jpt-sim-md-1",
"customerId": "65f7ee397a4bb65ed744b67f",
"items": [
{
"description": "Support plan - monthly",
"quantity": 3,
"amount": 100,
"taxRate": 123
}
],
"totalAmount": 300,
"date": "2023-12-10T20:02:20.454Z",
"dueDate": "2023-12-10T20:02:20.454Z",
"paymentTerm": "Due Upon Receipt"
}
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({
invoiceId: 'You need to change *this* with invoiceId from invoice creation',
subMerchantId: 'jpt-sim-md-1',
customerId: '65f7ee397a4bb65ed744b67f',
items: [
{description: 'Support plan - monthly', quantity: 3, amount: 100, taxRate: 123}
],
totalAmount: 300,
date: '2023-12-10T20:02:20.454Z',
dueDate: '2023-12-10T20:02:20.454Z',
paymentTerm: 'Due Upon Receipt'
})
};
fetch('https://sandbox-platform.jupico.com/v1/invoices/update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox-platform.jupico.com/v1/invoices/update';
const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
invoiceId: 'You need to change *this* with invoiceId from invoice creation',
subMerchantId: 'jpt-sim-md-1',
customerId: '65f7ee397a4bb65ed744b67f',
items: [
{description: 'Support plan - monthly', quantity: 3, amount: 100, taxRate: 123}
],
totalAmount: 300,
date: '2023-12-10T20:02:20.454Z',
dueDate: '2023-12-10T20:02:20.454Z',
paymentTerm: 'Due Upon Receipt'
})
};
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
The invoiceId of the invoice.
Example:
"You need to change *this* with invoiceId from invoice creation"
The subMerchantId associated with the invoice.
Example:
"jpt-sim-md-1"
The customer id of the invoice.
Example:
"65f7ee397a4bb65ed744b67f"
Line items included in the total amount.
Show child attributes
Show child attributes
The total amount of the invoice.
Example:
300
The invoice date.
Example:
"2023-12-10T20:02:20.454Z"
The invoice dueDate.
Example:
"2023-12-10T20:02:20.454Z"
The invoice paymentTerm.
Example:
"Due Upon Receipt"
Response
Invoice successfully updated.
Last modified on August 31, 2026
Was this page helpful?

