---
title: Bill and Purchase Order
slug: quickbooks/bill-and-purchase-order
description: Learn how to easily create bills and purchase orders using the specified URL in this comprehensive document. Discover how to customize the creation process by specifying bill or purchase order specific fields and mapping line items as either account-based
docTags: 
createdAt: 2021-11-05T07:49:00.000Z
---

You can create Bills and Purchase Orders as well.

:::CodeblockTabs
Button URL

```css
/apex/breadwinner_qbo__NewBillPO
?originating_record={!salesforce_record_ID}
&parent_account=api_field_name__c
&invoice_date=bill_date_api_field__c
&invoice_location_field=api_field__c
&invoice_memo_field=memo_api_field__c
&child_relationship_name=child_name__r
&child_object_inventory_name=name_field__c
&child_object_description=description__c
&child_object_quantity=quantity_field
&child_object_unit_price=unit_price_field__c
&child_object_class=class_field__c
&child_object_customer_account=api_field__c
&expense_type=bill
&Itemmapping_preference=Items
```
:::

:::hint{type="info"}
Above, we specify “\&expense\_type=bill”***,*** but you may also specify “po."
:::



There are two types of Line Items: Account and Item-based Line Items. At present, you can map Line Items with either one of them at a time.

- Item-based Line Items: You can replace **\&Itemmapping\_preference&#x20;**= *Items.*
- Account-based Line Items:  You can replace **\&Itemmapping\_preference =&#x20;***Accounts* and **\&child\_object\_inventory\_name** is not required.


### Specifying Bill or Purchase Order Specific fields

You do not need a separate field for dates, as invoice\_date will serve as the date field for Bills and Purchase Orders.

However, Purchase Orders have additional fields that are not used anywhere else.&#x20;

:::CodeblockTabs
Button URL

```css
/apex/breadwinner_qbo__NewBillPO
?originating_record={!salesforce_record_ID}
&parent_account=api_field_name__c
&invoice_custom_field_1=api_field__c
&invoice_custom_field_2=api_field__c
&invoice_custom_field_3=api_field__c
&invoice_message_field=Message_to_Vendor_api_field__c
```
:::

In QuickBooks, Bills have additional fields that are not used anywhere else.&#x20;

:::CodeblockTabs
Button URL

```css
/apex/breadwinner_qbo__NewBillPO
?originating_record={!salesforce_record_ID}
&parent_account=api_field_name__c
&due_date=bill_date_api_field__c
&child_object_taxable=is_taxable_field__c
&child_object_customer_account=api_field__c
```
:::

