Merran documentation API & integrations
Discard a receipt
DELETE
/api/pantry/receipts/{receiptId}
const url = 'http://localhost:3000/api/pantry/receipts/0199e8b0-5a10-7a01-8b00-00000000002e';const options = { method: 'DELETE', 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 DELETE \ --url http://localhost:3000/api/pantry/receipts/0199e8b0-5a10-7a01-8b00-00000000002e \ --cookie merran.session_token=<merran.session_token>Forgets it, with its photos, without adding anything. With an API key, it needs the pantry: write permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”receiptId
required
string
Example
0199e8b0-5a10-7a01-8b00-00000000002eResponses
Section titled “Responses”Discarded.
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.
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.