---
updatedAt: 2025-09-22T17:25:20.000Z
agentTools:
  projectIndex: https://developer.bitpay.com/llms.txt
---

# Create a Bill

Facades: `pos`, `merchant`

## Overview

Bills are payment requests addressed to specific buyers. Bill line items have fixed prices, typically denominated in fiat currency.

## Parameters

| Parameter | Description                               |
| :-------- | :---------------------------------------- |
| bill      | A Bill object with the parameters to set. |

## Example

```java Java (Merchant Facade)
// Create a list of items to add in the bill
List<Item> items = new ArrayList<>();
items.add(new Item() {{
    setPrice(30.0);
    setQuantity(9);
    setDescription("product-a");
}});
items.add(new Item() {{
    setPrice(14.0);
    setQuantity(16);
    setDescription("product-b");
}});

Bill bill = new Bill("1111", Currency.USD, "email@merchantsemail.com", items);

bill = bitpay.createBill(bill);
```
```java Java (POS Facade)
// Create a list of items to add in the bill
List<Item> items = new ArrayList<>();
items.add(new Item() {{
    setPrice(30.0);
    setQuantity(9);
    setDescription("product-a");
}});
items.add(new Item() {{
    setPrice(14.0);
    setQuantity(16);
    setDescription("product-b");
}});

Bill bill = new Bill("1111", Currency.USD, "email@merchantsemail.com", items);

bill = bitpay.createBill(bill, Facade.POS, false);
```