---
title: "init(billPayee:paymentDateRange:billType:status:dueDateRange:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/insearchforbillsintent/init(billpayee:paymentdaterange:billtype:status:duedaterange:)"
---

# init(billPayee:paymentDateRange:billType:status:dueDateRange:)

Initializes an intent object that describes a search for bill details with the specified search parameters.

## Declaration

```swift
init(billPayee: INBillPayee?, paymentDateRange: INDateComponentsRange?, billType: INBillType, status: INPaymentStatus, dueDateRange: INDateComponentsRange?)
```

## Parameters

- `billPayee`: The entity that created the bill. The user must configure payees in advance using your app. Use this parameter to search for bills from a specific organization.
- `paymentDateRange`: The date range during which payment occured. Use this parameter to search for bill payments within the specified date range.
- `billType`: The type of bill to pay. Use this parameter to search for bills of a specific type. Specify doc://com.apple.sirikit/documentation/Intents/INBillType/unknown to search for bills of any type.
- `status`: The current status of the bill. Use this parameter to search for pending or paid bills, or failed attempts to pay a bill.
- `dueDateRange`: The date range during which payment is due. Use this parameter to search for bills whose due date falls within the specified date range.

## Return Value

Return Value An initialized intent object or nil if the object could not be created.

## Discussion

Discussion Normally, you don’t create instances of this class yourself. Instead, SiriKit creates instances when the user asks to search for bills. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.
