Update Bill
PUT/accounting/bills/:id
Create a Bill
Request
Path Parameters
The ID of the bill.
Query Parameters
The ID of the credential.
Header Parameters
Default value: bearer YOUR_API_KEY
- application/json
Body
Array [
]
The ID of the vendor associated with the bill.
lineItems
object[]
required
Detailed breakdown of all the goods or services listed in the bill, typically including descriptions, quantities, and prices.
A brief overview or detail of the specific good or service listed in the line item.
The overall sum for the line item, typically calculated as unitPrice * quantity.
The ID of the account associated with the bill line item.
A unique number or code assigned to the bill for easy reference.
The date when the bill was generated or provided. Format: YYYY-MM-DD
The date by which the payment for the bill is expected. Format: YYYY-MM-DD
Any additional notes, comments, or details about the bill.
The type of currency in which the bill is denominated. 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 transactions involve foreign currency.
The complete sum due, including all charges, taxes, and minus any discounts.
The remaining amount to be paid, considering 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
- Result
Schema
any
{
"bill": {
"id": "00000000-0000-0000-0000-000000000000",
"remoteId": "378",
"vendorId": "00000000-0000-0000-0000-000000000000",
"billNumber": "PLDT-001",
"issueDate": "2023-11-05T00:00:00.000Z",
"dueDate": "2023-11-05T00:00:00.000Z",
"paidOnDate": null,
"memo": null,
"companyId": null,
"currency": "USD",
"exchangeRate": 1,
"totalDiscount": null,
"subTotal": null,
"billStatus": null,
"totalTaxAmount": null,
"totalAmount": 100,
"balance": 100,
"trackingCategories": [],
"lineItems": [
{
"id": "00000000-0000-0000-0000-000000000000",
"remoteId": "1",
"lineType": "AccountBasedExpenseLineDetail",
"description": "Line Item 1",
"totalAmount": 100,
"accountId": "00000000-0000-0000-0000-000000000000",
"trackingCategoryIds": [],
}
],
"purchaseOrders": [],
"remoteCreatedAt": "2023-11-05T15:29:07.000Z",
"remoteUpdatedAt": "2023-11-05T15:29:07.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:21:06.578Z",
"updatedAt": "2024-02-22T13:59:48.410Z"
}
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
{}
{}