Update Invoice
PUT/accounting/invoices/:id
Updates an invoice with the given id.
Request
Path Parameters
The ID of the invoice.
Query Parameters
The ID of the credential.
Header Parameters
Default value: bearer YOUR_API_KEY
- application/json
Body
The ID of the customer associated with the invoice.
lineItems
object
required
Detailed breakdown of all the goods or services billed in the invoice, including descriptions, quantities, and prices.
A concise overview or detail of the specific good or service listed in the line item.
The cost assigned per individual unit of the good or service.
The number of units of the particular good or service being invoiced.
The cumulative sum for the line item, typically calculated as unitPrice * quantity.
The ID of the item associated with the invoice line item.
The ID of the account associated with the invoice line item.
A unique number or code assigned to the invoice for easy reference.
The date when the invoice was generated and sent to the customer. Format: YYYY-MM-DD
The date by which the payment for the invoice is expected. Format: YYYY-MM-DD
Any supplementary notes, comments, or details related to the invoice.
The type of currency in which the invoice amount is presented. Possible values: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, UYI, UYU, UYW, UZS, VES, VND, VUV, WST, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XDR, XOF, XPD, XPF, XPT, XSU, XTS, XUA, XXX, YER, ZAR, ZMW, ZWL
The conversion rate used if the invoice involves transactions in foreign currency.
The complete sum due, after considering all charges, taxes, and discounts.
The outstanding amount remaining to be paid, after any partial payments or credits.
An object containing remote fields that are not supported by the common model. The keys are the names of the fields of the corresponding resource in the remote app, and the values can be strings, numbers, arrays or objects.
Responses
- 200
- 400
200
- application/json
- Schema
- Example (from schema)
- Result
Schema
Array [
]
invoice
object
Default value: 0
Default value: 0
Default value: 0
Default value: 0
lineItems
object[]
Default value: 0
Default value: true
{
"invoice": {
"remoteId": "1",
"customerId": {},
"invoiceNumber": "1001",
"issueDate": 1700179200,
"dueDate": 1702771200,
"paidOnDate": {},
"memo": {},
"companyId": {},
"currency": "USD",
"exchangeRate": {},
"totalDiscount": "0",
"subTotal": "4.99",
"invoiceStatus": {},
"totalTaxAmount": {},
"totalAmount": 4.99,
"balance": 4.99,
"trackingCategories": [
null
],
"lineItems": [
{
"id": {},
"remoteId": {},
"description": "test",
"unitPrice": {},
"quantity": {},
"totalAmount": 4.99,
"currency": "USD",
"exchangeRate": {},
"accountingItemId": {},
"accountId": {},
"trackingCategoryId": {},
"trackingCategoryIds": [
null
],
"companyId": {}
}
],
"purchaseOrders": [
null
],
"id": "00000000-0000-0000-0000-000000000000",
"remoteCreatedAt": "2023-07-11T08:01:53.000Z",
"remoteUpdatedAt": "2023-07-11T08:01:53.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:15:58.607Z",
"updatedAt": "2024-02-22T13:51:03.813Z"
}
}
{
"invoice": {
"remoteId": "1",
"customerId": null,
"invoiceNumber": "1001",
"issueDate": 1700179200,
"dueDate": 1702771200,
"paidOnDate": null,
"memo": null,
"companyId": null,
"currency": "USD",
"exchangeRate": null,
"totalDiscount": "0",
"subTotal": "4.99",
"invoiceStatus": null,
"totalTaxAmount": null,
"totalAmount": 4.99,
"balance": 4.99,
"trackingCategories": [],
"lineItems": [
{
"id": null,
"remoteId": null,
"description": "test",
"unitPrice": null,
"quantity": null,
"totalAmount": 4.99,
"currency": "USD",
"exchangeRate": null,
"accountingItemId": null,
"accountId": null,
"trackingCategoryId": null,
"trackingCategoryIds": [],
"companyId": null
}
],
"purchaseOrders": [],
"id": "00000000-0000-0000-0000-000000000000",
"remoteCreatedAt": "2023-07-11T08:01:53.000Z",
"remoteUpdatedAt": "2023-07-11T08:01:53.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:15:58.607Z",
"updatedAt": "2024-02-22T13:51:03.813Z"
}
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
{}
{}