List Mail Items
List mail items for your account.
A Mail Item is a unit of physical mail received at a Lockbox. It has its own lifecycle and is the operational unit reviewers act on. Each Mail Item may produce zero or more Donations and zero or one Deposit.
Query parameters
Limit the size of the list that is returned. The default (and maximum) is 100 objects.
The cursor to use for pagination. If not set, the first page of results will be returned.
The unique identifier for the lockbox to filter mail items by.
Filter Mail Items to only those with the specified status. For GET requests, this should be encoded as a comma-delimited string, such as ?status.in=needs_review,processing.
[ "processed" ]
Return mail items created after the given date and time.
Return mail items created before the given date and time.
Response
The response for MailItems.list
Example response
{
"results": [
{
"id": "mail_01j8rs605a4gctmbm58d87mvsj",
"lockbox_id": "lockbox_01j8rs605a4gctmbm58d87mvsj",
"status": "processed",
"received_at": "2020-01-31T23:59:59Z",
"scans": [
{
"file_id": "file_01j8rs605a4gctmbm58d87mvsj",
"created_at": "2020-01-31T23:59:59Z"
}
],
"created_at": "2020-01-31T23:59:59Z",
"updated_at": "2020-01-31T23:59:59Z"
}
]
}