Retrieve Bill
GET/accounting/bills/:id
Retrieve a Bill with the given id.
Request
Path Parameters
id stringrequired
The ID of the bill.
Query Parameters
credentialId stringrequired
The ID of the credential.
Header Parameters
Authorization stringrequired
Default value: bearer YOUR_API_KEY
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
object
{}
{}
Loading...