Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Shopping lists — API reference

The key's person's shopping lists — Record Sender's own (weekly groceries, a party, the office…), never another person's, kept when a food platform is disconnected. Items are typed, read from an email, a ChefWood recipe or an earlier order; FoodByNation finds them (read only) and sending them to the basket is an action the person confirms. Each list and item carries a `version` for devices that work offline. Scopes `station:read` and `station:write`.

← All groups
GET /api/v1/shopping-lists

Your shopping lists

Scope: station:read · shopping_lists.index

ParameterInTypeDescription
statusquery"active" | "archived" | "all"default active
Responses 200 · 401 · 403 · 429

200 Success

lists * [ShoppingList]
fields

ShoppingList

id * string (uuid)
inserted_at string (date-time)
item_count integer
items [ShoppingListItem]
fields

ShoppingListItem

done * boolean
id * string (uuid)
list_id * string (uuid)
match object | null
fields
in_stock boolean
matched_at string (date-time)
name string
platform string foodbynation
price object
fields

…

product_id string FoodByNation's listing id
shop string
url string (uri)
name * string
note string | null
position integer
quantity string | null a decimal, as a string
source "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
unit string | null
updated_at string (date-time)
version * integer
name * string
open_count integer
purpose * "weekly" | "monthly" | "office" | "party" | "emergency" | "other"
source object
fields
kind "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
label string | null
ref string | null
status * "active" | "archived"
updated_at string (date-time)
version * integer

401 Problem details (401)

403 The key acts for no person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/shopping-lists

Make a shopping list

Scope: station:write · Idempotency-Key · shopping_lists.create

Request body application/json
items any a list of {name, quantity, unit, note}, or a text with one item per line ("2 kg onions")
name string default by purpose, e.g. "Weekly groceries"
purpose "weekly" | "monthly" | "office" | "party" | "emergency" | "other"
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

list * ShoppingList
fields

ShoppingList

id * string (uuid)
inserted_at string (date-time)
item_count integer
items [ShoppingListItem]
fields

ShoppingListItem

done * boolean
id * string (uuid)
list_id * string (uuid)
match object | null
fields
in_stock boolean
matched_at string (date-time)
name string
platform string foodbynation
price object
fields

…

product_id string FoodByNation's listing id
shop string
url string (uri)
name * string
note string | null
position integer
quantity string | null a decimal, as a string
source "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
unit string | null
updated_at string (date-time)
version * integer
name * string
open_count integer
purpose * "weekly" | "monthly" | "office" | "party" | "emergency" | "other"
source object
fields
kind "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
label string | null
ref string | null
status * "active" | "archived"
updated_at string (date-time)
version * integer

401 Problem details (401)

402 Problem details (402)

403 The key acts for no person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

409 Problem details (409)

422 Invalid values

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

GET /api/v1/shopping-lists/changes

What changed since a time

For a device that worked offline: the person's lists (archived ones too, without their items) and items changed at or after `updated_since` (everything without it), oldest change first, and the server's time to send next.

Scope: station:read · shopping_lists.changes

ParameterInTypeDescription
updated_sincequerystring (date-time)
Responses 200 · 401 · 403 · 422 · 429

200 Success

items * [ShoppingListItem]
fields

ShoppingListItem

done * boolean
id * string (uuid)
list_id * string (uuid)
match object | null
fields
in_stock boolean
matched_at string (date-time)
name string
platform string foodbynation
price object
fields
amount string
currency string
display string
product_id string FoodByNation's listing id
shop string
url string (uri)
name * string
note string | null
position integer
quantity string | null a decimal, as a string
source "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
unit string | null
updated_at string (date-time)
version * integer
lists * [object]
server_time * string (date-time)

401 Problem details (401)

403 The key acts for no person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 updated_since isn't an ISO 8601 time

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

DELETE /api/v1/shopping-lists/{id}

Delete a list

Scope: station:write · shopping_lists.delete

ParameterInTypeDescription
id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Success

401 Problem details (401)

402 Problem details (402)

403 The key acts for no person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 No such list of yours

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/shopping-lists/{id}

One shopping list

Scope: station:read · shopping_lists.show

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

list * ShoppingList
fields

ShoppingList

id * string (uuid)
inserted_at string (date-time)
item_count integer
items [ShoppingListItem]
fields

ShoppingListItem

done * boolean
id * string (uuid)
list_id * string (uuid)
match object | null
fields
in_stock boolean
matched_at string (date-time)
name string
platform string foodbynation
price object
fields

…

product_id string FoodByNation's listing id
shop string
url string (uri)
name * string
note string | null
position integer
quantity string | null a decimal, as a string
source "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
unit string | null
updated_at string (date-time)
version * integer
name * string
open_count integer
purpose * "weekly" | "monthly" | "office" | "party" | "emergency" | "other"
source object
fields
kind "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
label string | null
ref string | null
status * "active" | "archived"
updated_at string (date-time)
version * integer

401 Problem details (401)

403 The key acts for no person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 No such list of yours

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

PATCH /api/v1/shopping-lists/{id}

Rename, change the purpose or archive a list

Scope: station:write · shopping_lists.update

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
name string
purpose "weekly" | "monthly" | "office" | "party" | "emergency" | "other"
status "active" | "archived"
version integer the version the change is based on (optional)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

list * ShoppingList
fields

ShoppingList

id * string (uuid)
inserted_at string (date-time)
item_count integer
items [ShoppingListItem]
fields

ShoppingListItem

done * boolean
id * string (uuid)
list_id * string (uuid)
match object | null
fields
in_stock boolean
matched_at string (date-time)
name string
platform string foodbynation
price object
fields

…

product_id string FoodByNation's listing id
shop string
url string (uri)
name * string
note string | null
position integer
quantity string | null a decimal, as a string
source "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
unit string | null
updated_at string (date-time)
version * integer
name * string
open_count integer
purpose * "weekly" | "monthly" | "office" | "party" | "emergency" | "other"
source object
fields
kind "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
label string | null
ref string | null
status * "active" | "archived"
updated_at string (date-time)
version * integer

401 Problem details (401)

402 Problem details (402)

403 The key acts for no person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 No such list of yours

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

409 version_conflict — changed on another device since (details.current)

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Invalid values

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/shopping-lists/{id}/items

Add items

Scope: station:write · Idempotency-Key · shopping_lists.add_items

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
items * any a list of {name, quantity, unit, note}, or a text with one item per line
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

list * ShoppingList
fields

ShoppingList

id * string (uuid)
inserted_at string (date-time)
item_count integer
items [ShoppingListItem]
fields

ShoppingListItem

done * boolean
id * string (uuid)
list_id * string (uuid)
match object | null
fields
in_stock boolean
matched_at string (date-time)
name string
platform string foodbynation
price object
fields

…

product_id string FoodByNation's listing id
shop string
url string (uri)
name * string
note string | null
position integer
quantity string | null a decimal, as a string
source "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
unit string | null
updated_at string (date-time)
version * integer
name * string
open_count integer
purpose * "weekly" | "monthly" | "office" | "party" | "emergency" | "other"
source object
fields
kind "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
label string | null
ref string | null
status * "active" | "archived"
updated_at string (date-time)
version * integer

401 Problem details (401)

402 Problem details (402)

403 The key acts for no person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 No such list of yours

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

409 Problem details (409)

422 Invalid values, or the list is full (200 items)

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

DELETE /api/v1/shopping-lists/{id}/items/{item_id}

Remove an item

Scope: station:write · shopping_lists.delete_item

ParameterInTypeDescription
id *pathstring (uuid)
item_id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Success

401 Problem details (401)

402 Problem details (402)

403 The key acts for no person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 No such list of yours

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

PATCH /api/v1/shopping-lists/{id}/items/{item_id}

Change an item

Scope: station:write · shopping_lists.update_item

ParameterInTypeDescription
id *pathstring (uuid)
item_id *pathstring (uuid)
Request body application/json
done boolean
name string
note string
quantity number
unit string
version integer the version the change is based on (optional)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

item * ShoppingListItem
fields

ShoppingListItem

done * boolean
id * string (uuid)
list_id * string (uuid)
match object | null
fields
in_stock boolean
matched_at string (date-time)
name string
platform string foodbynation
price object
fields
amount string
currency string
display string
product_id string FoodByNation's listing id
shop string
url string (uri)
name * string
note string | null
position integer
quantity string | null a decimal, as a string
source "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
unit string | null
updated_at string (date-time)
version * integer

401 Problem details (401)

402 Problem details (402)

403 The key acts for no person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 No such list of yours

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

409 version_conflict — changed on another device since (details.current)

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Invalid values

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/shopping-lists/{id}/match

Find the list on FoodByNation

FoodByNation finds each open item's best product with the person's own connection (`POST /api/v1/person/products/match` there — read only); each match is kept on the item as a reference (FoodByNation stays authoritative for products and prices). `basket_items` is what `POST /api/v1/actions {"action": "foodbynation.basket.add_many", "params": {"items": …}}` takes — the person confirms it.

Scope: station:write · Idempotency-Key · shopping_lists.match

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429 · 503

200 Success

basket_items * [object]
fields
listing_id string
quantity integer
list * ShoppingList
fields

ShoppingList

id * string (uuid)
inserted_at string (date-time)
item_count integer
items [ShoppingListItem]
fields

ShoppingListItem

done * boolean
id * string (uuid)
list_id * string (uuid)
match object | null
fields
in_stock boolean
matched_at string (date-time)
name string
platform string foodbynation
price object
fields

…

product_id string FoodByNation's listing id
shop string
url string (uri)
name * string
note string | null
position integer
quantity string | null a decimal, as a string
source "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
unit string | null
updated_at string (date-time)
version * integer
name * string
open_count integer
purpose * "weekly" | "monthly" | "office" | "party" | "emergency" | "other"
source object
fields
kind "manual" | "email" | "recipe" | "order" | "chefwood" | "meal_plan"
label string | null
ref string | null
status * "active" | "archived"
updated_at string (date-time)
version * integer
matched * integer
unmatched * integer

401 Problem details (401)

402 Problem details (402)

403 The key acts for no person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

404 No such list of yours

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

409 not_connected, needs_account, no_scope, or FoodByNation's refusal (its code)

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Nothing on the list to look for

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

503 Authpermit not configured or unavailable

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)