Tutorials
Chase missing receipts
Find card purchases that still need a receipt and attach one in a single call.
Cardholders forget receipts. This tutorial builds a small helper, such as a chat bot or a phone shortcut, that lists a person's purchases that still need one and attaches a photo to the right purchase. It works with any member's own API key, so each person only ever sees their own card.
1. List what needs a receipt
attention.mine lists purchases on the caller's own cards that still need a receipt, newest first.
curl -G https://app.getoatmilk.com/api/v1/accounting/attention.mine \
-H "Authorization: Bearer $OATMILK_API_KEY" \
--data-urlencode 'limit=10'{
"data": {
"total": 1,
"cards": [
"4242"
],
"items": [
{
"id": "7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10",
"merchant": "Synthetic Office Supply",
"date": "2026-09-18",
"currency": "CAD",
"amountMinor": "4520",
"lastFour": "4242"
}
],
"nextCursor": null
}
}2. Attach a photo to one purchase
Send the photo with receiptFor set to the purchase's ID. Oatmilk compares the receipt with that purchase only, and refuses it if the purchase no longer needs one.
curl https://app.getoatmilk.com/api/v1/accounting/uploads.inline \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"filename": "receipt.jpg",
"mimeType": "image/jpeg",
"contentBase64": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA==",
"receiptFor": "7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10"
}'3. Or forward it by email
Some people would rather forward the email receipt. inbox.address gives the address to forward to; anything sent there from the person's own verified email is filed as theirs.
curl https://app.getoatmilk.com/api/v1/accounting/inbox.address \
-H "Authorization: Bearer $OATMILK_API_KEY"Ask a team member or contractor
From the purchase, choose Ask someone and request its receipt. The person can upload photos or files through the private link in the email, or reply with the receipts attached. Contractors also find their own requests in their company portal. The request gives access to that upload only.
If email sending is off, a contractor who has joined can still receive the request in their portal. Oatmilk says the task was saved without sending an email. Someone who needs the email link must wait until sending is available.
Connected apps use documentRequests.recipients to find a team member or contractor, then documentRequests.send with the purchase's entryId, the verified recipient's email and, for a contractor, their contractorId. Keep one idempotency key for retries. documentRequests.list shows the saved requests for the purchase. A queued email is not confirmed delivery; received files still need to be read and checked against the purchase.
In the terminal, list recipients with oatmilk requests people entry <purchase-id> --focus receipt, then send the request with oatmilk requests create entry <purchase-id> --focus receipt --to <recipient-id> --yes.
Choose your reminders
Receipt reminders start monthly. Each person can choose monthly, every two weeks or weekly from the link in a reminder, or with chase.preferences.update using action: "frequency" and everyDays. Changing how often they arrive keeps a pause or turn-off in place.
While your helper does the chasing, a person can also pause Oatmilk's own reminder emails with chase.preferences.update.