API to update invoice by invoice id
API Version
2021-07-28 Invoice Id
"6578278e879ad2646715ba9c"
location Id / company Id based on altType
"6578278e879ad2646715ba9c"
Alt Type
location "location"
Name to be updated
"New Invoice"
Currency
"USD"
Issue date in YYYY-MM-DD format
"2023-01-01"
Due date in YYYY-MM-DD format
"2023-01-14"
Title for the invoice
"INVOICE"
Description
"ABC Corp payments"
{
"name": "Alex",
"address": {
"addressLine1": "9931 Beechwood",
"city": "St. Houston",
"state": "TX",
"countryCode": "USA",
"postalCode": "559-6993"
},
"phoneNo": "+1-214-559-6993",
"website": "www.example.com"
}Invoice Number
"1001"
Id of the contact which you need to send the invoice
"6578278e879ad2646715ba9c"
Terms notes, Also supports HTML markups
"<p>This is a default terms.</p>"
Automatic taxes enabled for the Invoice
true
Payment mode
prefix for invoice number
"INV-"
attachments for the invoice
Successful response
Invoice Id
"6578278e879ad2646715ba9c"
Invoice Status
draft, sent, payment_processing, paid, void, partially_paid "draft"
Live Mode
false
Amount Paid
0
Location Id or Agency Id
"6578278e879ad2646715ba9c"
location Name of the invoice
"New Invoice"
Business Details
{
"name": "Alex",
"address": {
"addressLine1": "9931 Beechwood",
"city": "St. Houston",
"state": "TX",
"countryCode": "USA",
"postalCode": "559-6993"
},
"phoneNo": "+1-214-559-6993",
"website": "www.example.com"
}Invoice Number
"19"
Currency
"USD"
Contact Details
{
"id": "c6tZZU0rJBf30ZXx9Gli",
"phoneNo": "+1-214-559-6993",
"email": "alex@example.com",
"customFields": [],
"name": "Alex",
"address": { "countryCode": "US" }
}Issue date in YYYY-MM-DD format
"2023-01-01"
Due date in YYYY-MM-DD format
"2023-01-01"
Invoice Items
[
{
"taxes": [],
"_id": "c6tZZU0rJBf30ZXx9Gli",
"productId": "c6tZZU0rJBf30ZXx9Gli",
"priceId": "c6tZZU0rJBf30ZXx9Gli",
"currency": "USD",
"name": "Macbook Pro",
"qty": 1,
"amount": 999
}
]Total Amount
999
Title
"INVOICE"
Total Amount Due
999
created at
"2023-12-12T09:27:42.355Z"
updated at
"2023-12-12T09:27:42.355Z"
Discount
{ "type": "percentage", "value": 0 }Automatic taxes enabled for the Invoice
true
Is Automatic taxes calculated for the Invoice items
true
split invoice into payment schedule summing up to full invoice amount