Businesses
- Business
- Financial Accounts
- Documents
- Scoped Authentication
- Configuration
- Tasks & Notifications
Financial Activity
- Accounts Receivable
- Accounts Payable
- Vendors
- Bills
- Bill Payments
- Vendor Credits
- Bank Transactions
- General Ledger
- Tags
Accounting Reports
- Profit and Loss
- Balance Sheet
- Cash Flow Statement
Platform Configuration
- Plaid
- SMS
Activity Metrics
- Platform wide activity
- Business Activity
Bill object
{
"data": {
"id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"business_id": "188eb399-f171-4849-861c-5c02d91f800b",
"external_id": "vendor-bill-123",
"status": "PARTIALLY_PAID",
"terms": "NET_30",
"received_at": "2024-06-01T10:11:57.184157Z",
"due_at": "2024-07-01T10:11:57.184158Z",
"paid_at": null,
"voided_at": null,
"bill_number": "VB-123",
"vendor": {
"id": "a4c38874-8c01-4986-b8d0-4f159a52dd39",
"external_id": "vendor-1",
"company_name": "Acme Supplies Inc.",
"email": "billing@acmesupplies.com",
"office_phone": "555-123-4567",
"address_string": "123 Vendor St, Supply City, CA 90210",
"notes": "Primary office supplies vendor",
"status": "ACTIVE"
},
"line_items": [
{
"id": "733de30f-db72-4d52-98c5-fe070d4433f7",
"external_id": "bill-line-item-1",
"bill_id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"account_identifier": {
"type": "AccountId",
"id": "80b708b5-7b27-456c-9fb1-b8b918241908"
},
"description": "Monthly office supplies",
"product_name": "Paper reams",
"unit_price": 1500,
"quantity": "10.00",
"subtotal": 15000,
"discount_amount": 1000,
"sales_taxes_total": 1120,
"total_amount": 15120
}
],
"subtotal": 15000,
"additional_sales_taxes": [],
"additional_sales_taxes_total": 0,
"total_amount": 15120,
"outstanding_balance": 5120,
"memo": "Memo for the office supplies purchase",
"payment_allocations": [
{
"id": "8901-abcd-ef23-4567",
"bill_id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"payment_id": "590ed436-c2bd-4e39-8047-f913a852f99c",
"amount": 10000,
"payment": {
"id": "590ed436-c2bd-4e39-8047-f913a852f99c",
"external_id": "bill-payment-1",
"at": "2024-06-15T00:00:00Z",
"method": "ACH",
"amount": 10000,
"processor": "BANK_TRANSFER",
"imported_at": "2024-06-15T18:11:57.339076Z",
"allocations": [
{
"id": "8901-abcd-ef23-4567",
"bill_id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"payment_id": "590ed436-c2bd-4e39-8047-f913a852f99c",
"amount": 10000,
"transaction_tags": []
}
],
"transaction_tags": [],
"metadata": {}
},
"transaction_tags": [],
"metadata": {}
}
],
"vendor_credits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_credit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"vendor_credit": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"vendor": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"individual_name": "<string>",
"company_name": "<string>",
"email": "<string>",
"mobile_phone": "<string>",
"office_phone": "<string>",
"address_string": "<string>",
"notes": "<string>",
"status": "ACTIVE",
"transaction_tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "ExampleTagKey",
"value": "ExampleTagValue",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
]
},
"received_at": "2023-11-07T05:31:56Z",
"line_items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledger_account": {
"id": {
"type": "AccountId",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"name": "Current Assets",
"stable_name": {
"type": "StableName",
"stable_name": "CURRENT_ASSETS"
},
"normality": "CREDIT",
"account_type": {
"value": "ASSET",
"display_name": "Asset"
},
"account_subtype": {
"value": "CURRENT",
"display_name": "Current Assets"
}
},
"amount": 123,
"memo": "<string>"
}
],
"allocations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_credit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"transaction_tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "ExampleTagKey",
"value": "ExampleTagValue",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
]
}
}
],
"imported_at": "2024-06-01T18:11:57.234148Z",
"updated_at": "2024-06-15T18:11:57.234148Z",
"transaction_tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "Department",
"value": "Operations",
"created_at": "2024-06-01T05:31:56Z",
"updated_at": "2024-06-01T05:31:56Z",
"deleted_at": null
}
]
}
}
A Bill represents an invoice or purchase order that a Business has received from a vendor for goods and services. Bills are used to pass information about purchases and accounts payable into Layer.
Attributes
Unique identifier for the bill.
ID of the Business that received the bill.
Unique ID of the bill in your system for linking purposes.
Status of the bill. Values can be: RECEIVED
, PARTIALLY_PAID
, PAID
, VOIDED
Payment terms of the bill. Values can be: DUE_ON_RECEIPT
, NET_10
, NET_15
, NET_30
, NET_60
When the bill was received.
When the bill is due.
When the bill was paid.
When the bill was voided. Voiding excludes the bill from accounting.
Number for the bill for display to end-users.
The vendor associated with this bill.
Line items making up the bill.
ID of the bill line item.
The external ID of the bill line item in your system.
ID of the parent bill.
Account identifier for the line item. See Account Identifier for more information.
Description of the specific line item.
Name of the product/service.
Price per unit in cents.
Number of units.
Subtotal for the line item in cents.
Amount of discount in cents.
This object can either be either a Tax_Name
or an AccountIdentifier
object.
An Account Identifier can be used when a known specific ledger account is appropriate for a tax.
A Tax Name can be used to create and use tax categories dynamically.
Amount, in cents, of tax owed.
Total sales tax in cents.
Total amount including taxes and discounts.
Subtotal of all bill line items in cents.
Ledger account associated with this tax.
Type of tax account object.
Name of the tax account, if a name was specified when this line item was created.
ID of the tax account if either an account ID was used to create the tax line item or if no tax account was specified.
Amount, in cents, of tax owed.
Sum of all additional taxes in cents.
Total amount including taxes in cents.
The remaining balance on the bill after factoring in all previous bill payments.
Any text you would like to associate with the bill (for example, to display to end users)
Payments made to a vendor are allocated toward one or many bills. This list shows
which payments have been allocated towards this bill.
The most common case is that there is a 1:1 relationship between a payment and a bill,
in which case the allocation’s amount
will match the payment’s amount
.
Unique identifier for the allocation.
ID of the bill.
ID of the payment.
Amount of the payment allocated towards this bill. If this amount is the full payment amount, this payment was fully allocated towards this bill. The amount cannot exceed the bill total.
The Bill Payment that was allocated towards this bill.
Vendor Credit Allocations towards this bill
Time when the bill was first imported into Layer. Eligible sort key.
Time when the bill was last updated in Layer. Eligible sort key.
Arbitrary metadata you can include with the bill
{
"data": {
"id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"business_id": "188eb399-f171-4849-861c-5c02d91f800b",
"external_id": "vendor-bill-123",
"status": "PARTIALLY_PAID",
"terms": "NET_30",
"received_at": "2024-06-01T10:11:57.184157Z",
"due_at": "2024-07-01T10:11:57.184158Z",
"paid_at": null,
"voided_at": null,
"bill_number": "VB-123",
"vendor": {
"id": "a4c38874-8c01-4986-b8d0-4f159a52dd39",
"external_id": "vendor-1",
"company_name": "Acme Supplies Inc.",
"email": "billing@acmesupplies.com",
"office_phone": "555-123-4567",
"address_string": "123 Vendor St, Supply City, CA 90210",
"notes": "Primary office supplies vendor",
"status": "ACTIVE"
},
"line_items": [
{
"id": "733de30f-db72-4d52-98c5-fe070d4433f7",
"external_id": "bill-line-item-1",
"bill_id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"account_identifier": {
"type": "AccountId",
"id": "80b708b5-7b27-456c-9fb1-b8b918241908"
},
"description": "Monthly office supplies",
"product_name": "Paper reams",
"unit_price": 1500,
"quantity": "10.00",
"subtotal": 15000,
"discount_amount": 1000,
"sales_taxes_total": 1120,
"total_amount": 15120
}
],
"subtotal": 15000,
"additional_sales_taxes": [],
"additional_sales_taxes_total": 0,
"total_amount": 15120,
"outstanding_balance": 5120,
"memo": "Memo for the office supplies purchase",
"payment_allocations": [
{
"id": "8901-abcd-ef23-4567",
"bill_id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"payment_id": "590ed436-c2bd-4e39-8047-f913a852f99c",
"amount": 10000,
"payment": {
"id": "590ed436-c2bd-4e39-8047-f913a852f99c",
"external_id": "bill-payment-1",
"at": "2024-06-15T00:00:00Z",
"method": "ACH",
"amount": 10000,
"processor": "BANK_TRANSFER",
"imported_at": "2024-06-15T18:11:57.339076Z",
"allocations": [
{
"id": "8901-abcd-ef23-4567",
"bill_id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"payment_id": "590ed436-c2bd-4e39-8047-f913a852f99c",
"amount": 10000,
"transaction_tags": []
}
],
"transaction_tags": [],
"metadata": {}
},
"transaction_tags": [],
"metadata": {}
}
],
"vendor_credits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_credit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"vendor_credit": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"vendor": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"individual_name": "<string>",
"company_name": "<string>",
"email": "<string>",
"mobile_phone": "<string>",
"office_phone": "<string>",
"address_string": "<string>",
"notes": "<string>",
"status": "ACTIVE",
"transaction_tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "ExampleTagKey",
"value": "ExampleTagValue",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
]
},
"received_at": "2023-11-07T05:31:56Z",
"line_items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledger_account": {
"id": {
"type": "AccountId",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"name": "Current Assets",
"stable_name": {
"type": "StableName",
"stable_name": "CURRENT_ASSETS"
},
"normality": "CREDIT",
"account_type": {
"value": "ASSET",
"display_name": "Asset"
},
"account_subtype": {
"value": "CURRENT",
"display_name": "Current Assets"
}
},
"amount": 123,
"memo": "<string>"
}
],
"allocations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_credit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"transaction_tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "ExampleTagKey",
"value": "ExampleTagValue",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
]
}
}
],
"imported_at": "2024-06-01T18:11:57.234148Z",
"updated_at": "2024-06-15T18:11:57.234148Z",
"transaction_tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "Department",
"value": "Operations",
"created_at": "2024-06-01T05:31:56Z",
"updated_at": "2024-06-01T05:31:56Z",
"deleted_at": null
}
]
}
}
{
"data": {
"id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"business_id": "188eb399-f171-4849-861c-5c02d91f800b",
"external_id": "vendor-bill-123",
"status": "PARTIALLY_PAID",
"terms": "NET_30",
"received_at": "2024-06-01T10:11:57.184157Z",
"due_at": "2024-07-01T10:11:57.184158Z",
"paid_at": null,
"voided_at": null,
"bill_number": "VB-123",
"vendor": {
"id": "a4c38874-8c01-4986-b8d0-4f159a52dd39",
"external_id": "vendor-1",
"company_name": "Acme Supplies Inc.",
"email": "billing@acmesupplies.com",
"office_phone": "555-123-4567",
"address_string": "123 Vendor St, Supply City, CA 90210",
"notes": "Primary office supplies vendor",
"status": "ACTIVE"
},
"line_items": [
{
"id": "733de30f-db72-4d52-98c5-fe070d4433f7",
"external_id": "bill-line-item-1",
"bill_id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"account_identifier": {
"type": "AccountId",
"id": "80b708b5-7b27-456c-9fb1-b8b918241908"
},
"description": "Monthly office supplies",
"product_name": "Paper reams",
"unit_price": 1500,
"quantity": "10.00",
"subtotal": 15000,
"discount_amount": 1000,
"sales_taxes_total": 1120,
"total_amount": 15120
}
],
"subtotal": 15000,
"additional_sales_taxes": [],
"additional_sales_taxes_total": 0,
"total_amount": 15120,
"outstanding_balance": 5120,
"memo": "Memo for the office supplies purchase",
"payment_allocations": [
{
"id": "8901-abcd-ef23-4567",
"bill_id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"payment_id": "590ed436-c2bd-4e39-8047-f913a852f99c",
"amount": 10000,
"payment": {
"id": "590ed436-c2bd-4e39-8047-f913a852f99c",
"external_id": "bill-payment-1",
"at": "2024-06-15T00:00:00Z",
"method": "ACH",
"amount": 10000,
"processor": "BANK_TRANSFER",
"imported_at": "2024-06-15T18:11:57.339076Z",
"allocations": [
{
"id": "8901-abcd-ef23-4567",
"bill_id": "b745c116-cd28-41a1-b4ea-84a2768b6e14",
"payment_id": "590ed436-c2bd-4e39-8047-f913a852f99c",
"amount": 10000,
"transaction_tags": []
}
],
"transaction_tags": [],
"metadata": {}
},
"transaction_tags": [],
"metadata": {}
}
],
"vendor_credits": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_credit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"vendor_credit": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"vendor": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"external_id": "<string>",
"individual_name": "<string>",
"company_name": "<string>",
"email": "<string>",
"mobile_phone": "<string>",
"office_phone": "<string>",
"address_string": "<string>",
"notes": "<string>",
"status": "ACTIVE",
"transaction_tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "ExampleTagKey",
"value": "ExampleTagValue",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
]
},
"received_at": "2023-11-07T05:31:56Z",
"line_items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledger_account": {
"id": {
"type": "AccountId",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"name": "Current Assets",
"stable_name": {
"type": "StableName",
"stable_name": "CURRENT_ASSETS"
},
"normality": "CREDIT",
"account_type": {
"value": "ASSET",
"display_name": "Asset"
},
"account_subtype": {
"value": "CURRENT",
"display_name": "Current Assets"
}
},
"amount": 123,
"memo": "<string>"
}
],
"allocations": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vendor_credit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"bill_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"transaction_tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "ExampleTagKey",
"value": "ExampleTagValue",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
}
]
}
}
],
"imported_at": "2024-06-01T18:11:57.234148Z",
"updated_at": "2024-06-15T18:11:57.234148Z",
"transaction_tags": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "Department",
"value": "Operations",
"created_at": "2024-06-01T05:31:56Z",
"updated_at": "2024-06-01T05:31:56Z",
"deleted_at": null
}
]
}
}