Merran documentation API & integrations
Choose what the household buys for a food at one store
PUT
/api/stores/products/{store}
const url = 'http://localhost:3000/api/stores/products/kroger';const options = { method: 'PUT', headers: { cookie: 'merran.session_token=<merran.session_token>', 'Content-Type': 'application/json' }, body: '{"food":"milk","productId":"0001111041700"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:3000/api/stores/products/kroger \ --header 'Content-Type: application/json' \ --cookie merran.session_token=<merran.session_token> \ --data '{ "food": "milk", "productId": "0001111041700" }'A product selected here is used on future lists for the same household food, whether or not it is on a list now. Kroger takes a product ID; Walmart takes a product read by the extension. With an API key, it needs the list: write permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”store
required
string
Example
krogerRequest Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Any of:
object
food
required
string
productId
required
string
object
food
required
string
product
required
object
id
required
string
upc
required
string | null
name
required
string
brand
required
string | null
size
required
string | null
image
required
string | null
price
required
integer | null
salePrice
required
integer | null
saleEnds
required
Walmart’s pages don’t say, so the extension sends null.
string | null format: date
currency
required
string
aisle
required
string | null
inStock
required
boolean
url
required
string | null
Example
{ "food": "milk", "productId": "0001111041700"}Responses
Section titled “Responses”The saved product.
Media typeapplication/json
object
food
required
string
store
required
string
product
required
object
id
required
string
upc
required
string | null
name
required
string
brand
required
string | null
size
required
string | null
image
required
string | null
price
required
In the currency’s smallest unit: cents.
integer | null
salePrice
required
integer | null
saleEnds
required
The sale’s last day.
string | null
currency
required
string
aisle
required
string | null
inStock
required
boolean
url
required
string | null
chosen
required
boolean
updatedAt
required
string format: date-time
Example
{ "food": "milk", "store": "kroger", "product": { "id": "0001111041700", "upc": "0001111041700", "name": "Kroger 2% Reduced Fat Milk", "brand": "Kroger", "size": "1 gal", "image": "https://www.kroger.com/product/images/medium/front/0001111041700", "price": 349, "salePrice": 299, "saleEnds": "2026-10-21", "currency": "USD", "aisle": "Dairy", "inStock": true, "url": "https://www.frysfood.com/p/milk/0001111041700" }, "chosen": true, "updatedAt": "2026-10-01T17:30:00.000Z"}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." } }}The Kroger product isn’t at this store.
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." } }}The store isn’t available.
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.