Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions source/schemas/shopping/types/availability.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://ucp.dev/schemas/shopping/types/availability.json",
"title": "Availability",
"description": "Availability of an item: whether it can be obtained, and a qualifying status.",
"description": "Availability of an item: whether it can be obtained, a qualifying status, and optional inventory signals.",
"type": "object",
"properties": {
"available": {
Expand All @@ -11,7 +11,17 @@
},
"status": {
"type": "string",
"description": "Qualifies available with fulfillment state. Well-known values: `in_stock`, `backorder`, `preorder`, `out_of_stock`, `discontinued`."
"description": "Qualifies available with fulfillment state. Well-known values: `in_stock`, `low_stock`, `backorder`, `preorder`, `out_of_stock`, `discontinued`."
},
"quantity": {
"type": "integer",
"minimum": 0,
"description": "Available stock quantity. Business MAY omit if it does not expose exact counts."
},
"restock_at": {
"type": "string",
"format": "date-time",
"description": "RFC 3339 estimated restock timestamp. Business MAY include when status is `out_of_stock` or `backorder`."
}
}
}
Loading