Merran documentation API & integrations
A receipt
const url = 'http://localhost:3000/api/pantry/receipts/0199e8b0-5a10-7a01-8b00-00000000002e';const options = { method: 'GET', headers: {cookie: 'merran.session_token=<merran.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/pantry/receipts/0199e8b0-5a10-7a01-8b00-00000000002e \ --cookie merran.session_token=<merran.session_token>One scanned, shared or sent to the assistant, and not added or discarded yet, whatever its status: still being read, waiting for a look, or not read. With an API key, it needs the pantry: read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
0199e8b0-5a10-7a01-8b00-00000000002eResponses
Section titled “Responses”The receipt.
object
The day on it.
reading while it’s being read (it has no lines yet); ready once it’s read and waiting for a look; recipe when it turned out to be a recipe, none when there was no receipt in it, and failed when it couldn’t be read (error says why).
Why it couldn’t be read, when status is failed.
object
As printed.
What it is, plainly.
Food goes in the pantry; household things and the rest don’t, unless they’re picked.
The shopping list item it was bought for, taken off the list when it’s added.
object
True when the item was checked off and already put away: the purchase is in the pantry, so the line starts unticked, and adding it anyway leaves the item on the list.
The receipt’s photos or PDF, to compare with.
object
Example
{ "id": "0199e8b0-5a10-7a01-8b00-00000000002e", "store": "Walmart", "date": "2026-10-14", "total": 48.12, "status": "ready", "error": null, "lines": [ { "id": "0d1b5c2a9e44", "text": "GV WHL MLK 1GAL", "name": "whole milk", "amount": "1 gal", "price": 3.48, "kind": "food", "listItem": { "id": "0199e8b0-5a10-7a01-8b00-00000000001d", "name": "milk", "putAway": false } } ], "files": [ { "url": "/api/pantry/receipts/0199e8b0-5a10-7a01-8b00-00000000002e/files/0", "mediaType": "image/jpeg" } ], "createdAt": "2026-10-15T18:30:00.000Z"}Not signed in.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}Not allowed.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}No such receipt waiting: added, discarded, or a day old.
object
object
object
Example
{ "error": { "code": "not_found", "message": "There's nothing here.", "fields": { "name": "Give it a name." } }}© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.