Skip to navigation

Create a Mail Item

Create a mail item from a scanned PDF. Use Upload a File with purpose inbound_mail_item, then pass the returned file ID to this endpoint.

Chariot records any donations it finds anywhere in the mail item, including on a check, in a grant letter, or in a donor’s handwritten note. If the mail item contains a check, Chariot also deposits it.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Headers

Idempotency-KeystringRequired
A required key that returns the same mail item when you retry the request with the same key.

Request

This endpoint expects an object.
file_idstringRequired

The ID of the PDF uploaded with purpose inbound_mail_item.

Response headers

X-Request-IdstringOptional
The unique identifier for the request
LocationstringOptional
The URI of the created object

Response

The mail item was created.
idstringRead-only
The unique identifier for the mail item.
statusenum

The processing status of a Mail Item.

  • processing: The mail item is being scanned and parsed.
  • needs_review: The mail item requires your review.
  • under_review: Chariot is reviewing the mail item. No action is required.
  • processed: The mail item has been successfully parsed and classified, and is ready for any downstream automations or workflows to run on it.
  • rejected: The mail item will not produce a Donation (e.g., return-to-sender, illegible, unrelated correspondence).
Allowed values:
received_atdatetime
The date and time when the mail item was physically received at the lockbox.
scanslist of objects

The scans taken of the mail item, newest first. A mail item typically has one scan; a second scan appears after an admin requests a rescan of the physical mail.

donation_idslist of strings

The identifiers of the Donations produced from this mail item.

deposit_idslist of strings

The identifiers of the Deposits produced from this mail item.

created_atdatetimeRead-only
The date and time when the mail item record was created.
updated_atdatetimeRead-only
The date and time when the mail item record was last updated.
lockbox_idstringOptional
The unique identifier for the lockbox that received the mail item.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
500
Internal Server Error