Skip to content
merran
GitHubInstall

Merran documentation API & integrations

A receipt's photo or PDF

GET
/api/pantry/receipts/{receiptId}/files/{index}
curl --request GET \
--url http://localhost:3000/api/pantry/receipts/0199e8b0-5a10-7a01-8b00-00000000002e/files/0 \
--cookie merran.session_token=<merran.session_token>

To compare with its lines while looking it over. With an API key, it needs the pantry: read permission.

receiptId
required
string

Example

0199e8b0-5a10-7a01-8b00-00000000002e
index
required
string

Example

0

The photo, as JPEG, or the PDF.

string format: binary

Not signed in.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

Not allowed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

No such receipt waiting, or no such file.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

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.