Update an invoice
Changed onEdit a scheduled or unpaid invoice. Only the fields you send change, and null clears a field. See Edit an invoice.
patch/v2/invoices/{invoiceId}
Request
- Base URLhttps://api.slash.com
- URLhttps://api.slash.com/v2/invoices/{invoiceId}
- AuthAPI key in header X-API-Key
Request body
Example request
{
"lineItems": [
{
"name": "Robot arm maintenance",
"quantity": 2,
"unitAmount": {
"amount": 45000
}
}
],
"discount": {
"percent": 10
}
}Response
The updated invoice.
Example response
{
"id": "inv_2rj4l7hmrrrcv",
"number": "INV-1042",
"customerId": "le_cus_2rj4l7hmrrrcv",
"accountId": "sa_group_2rj4l7hmrrrcv",
"timezone": "America/New_York",
"lineItems": [
{
"name": "Robot arm maintenance",
"quantity": 2
}
],
"discount": {
"percent": 10
},
"taxRate": 8.5,
"payments": [
{
"id": "inv_tr_link_2rj4l7hmrrrcv",
"transactionId": "agg_tx_2rj4l7hmrrrcv"
}
],
"documentId": "st_2rj4l7hmrrrcv"
}Changes
- info
endpoint added
- info