API reference
Mailbox messages
The emails a mailbox search read, and whether each became a charge's receipt.
- GET
/v1/mailbox_messagesList the messages mailbox searches opened - GET
/v1/mailbox_messages/{message_id}Get a message a mailbox search opened
Guides: Find receipts in your mailbox
List the messages mailbox searches opened
GET/v1/mailbox_messages
client.mailboxMessages.list()
The messages mailbox searches opened, newest first, with what became of each: kept as a receipt, or set aside.
Parameters
| Name | Type | Description |
|---|---|---|
connection_idQuery | string or null | An id that starts with |
statusQuery | MessageStatus or null | Only messages kept, or only those set aside. |
limitQuery | integer | Page size, 1–200. |
cursorQuery | string or null | The |
Response
Errors
- 400
- The request was malformed or a parameter is invalid.
- 401
- No valid credential was sent.
- 403
- The credential or the member's role does not allow this.
- 404
- No such resource in this ledger.
- 409
- A conflicting request, e.g. one with the same Idempotency-Key still running.
- 422
- A well-formed request a business rule refused.
- 429
- Too many requests; retry after the Retry-After header.
- 500
- Something failed on our side; the request_id identifies it.
Example
curl "https://api.ledgerit.ai/v1/mailbox_messages" \
-H "Authorization: Bearer $LEDGERIT_TOKEN"Get a message a mailbox search opened
GET/v1/mailbox_messages/{message_id}
client.mailboxMessages.get()
One message a mailbox search opened, and what became of it.
Parameters
| Name | Type | Description |
|---|---|---|
message_idPath · Required | string | An id that starts with |
Response
Errors
- 400
- The request was malformed or a parameter is invalid.
- 401
- No valid credential was sent.
- 403
- The credential or the member's role does not allow this.
- 404
- No such resource in this ledger.
- 409
- A conflicting request, e.g. one with the same Idempotency-Key still running.
- 422
- A well-formed request a business rule refused.
- 429
- Too many requests; retry after the Retry-After header.
- 500
- Something failed on our side; the request_id identifies it.
Example
curl "https://api.ledgerit.ai/v1/mailbox_messages/{message_id}" \
-H "Authorization: Bearer $LEDGERIT_TOKEN"Objects
The objects these operations take and return.
MailboxMessagePage
A page of the messages mailbox searches opened, newest first.
| Name | Type | Description |
|---|---|---|
dataRequired | array of MailboxMessageOut | |
has_moreRequired | boolean | |
next_cursorRequired | string or null |
MailboxMessageOut
One message a mailbox search opened, and what became of it.
| Name | Type | Description |
|---|---|---|
connection_idRequired | string | The mailbox it is in. |
document_idRequired | string or null | An id that starts with |
idRequired | string | An id that starts with |
opened_atRequired | string (date-time) | When the search opened it. |
received_atRequired | string (date-time) | When it arrived in the mailbox. |
senderRequired | string or null | Who sent it. |
statusRequired | string |
|
subjectRequired | string or null | |
transaction_idRequired | string or null | An id that starts with |