Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Choose what the household buys for a food at one store

PUT
/api/stores/products/{store}
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.

store
required
string
Allowed values: kroger walmart

Example

kroger
Media typeapplication/json
Any of:
object
food
required
string
>= 1 characters <= 150 characters
productId
required
string
>= 1 characters <= 40 characters

Example

{
"food": "milk",
"productId": "0001111041700"
}

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.