Demo Store
A small shopping task, start to finish.
Nothing is charged or shipped. Products, inventory, and delivery estimates are fictional examples.
Choose exact variants and quantities. Read the current catalog before previewing a cart, then confirm only if the person authorized the simulation and the preview matches their request.
| Product | Variant | Price | Inventory |
|---|---|---|---|
Orbit Desk Lamporbit-lamp | Ivoryorbit-lamp-ivory | $89.00 | 12 available |
Orbit Desk Lamporbit-lamp | Graphiteorbit-lamp-graphite | $89.00 | 8 available |
Field Notebookfield-notebook | Sandfield-notebook-sand | $18.00 | 40 available |
Field Notebookfield-notebook | Inkfield-notebook-ink | $18.00 | 32 available |
Arc Headphonesarc-headphones | Silverarc-headphones-silver | $149.00 | 6 available |
Arc Headphonesarc-headphones | Blackarc-headphones-black | $149.00 | 0 available |
Contour Bottlecontour-bottle | Mosscontour-bottle-moss | $32.00 | 24 available |
Contour Bottlecontour-bottle | Stonecontour-bottle-stone | $32.00 | 18 available |
Transit Totetransit-tote | Naturaltransit-tote-natural | $48.00 | 15 available |
Transit Totetransit-tote | Midnighttransit-tote-midnight | $48.00 | 10 available |
Pebble Speakerpebble-speaker | Claypebble-speaker-clay | $69.00 | 9 available |
Pebble Speakerpebble-speaker | Charcoalpebble-speaker-charcoal | $69.00 | 5 available |
Complete the task
- Read the current catalog and match the requested product, variant, quantity, currency and budget.
- Preview the selected cart using the current catalog hash. Check the returned items and total.
- Only with caller-authorized simulation, confirm the same cart and preview. Validate the returned simulated order before reporting completion.
- Read the current catalog
- Read product data and request schemas
- Read the complete action contract
- Use the shopping guide
Optional shopping procedure
POST-capable clients may download the shopping procedure and call runStoreTask. Reading this page does not run code or place an order.
Example: one Ink Field Notebook, $18 maximum
{
"goal": {
"items": [
{
"productID": "field-notebook",
"variantID": "field-notebook-ink",
"quantity": 1
}
],
"currency": "USD",
"maxTotalMinor": 1800
},
"preview": {
"version": 1,
"capability": "checkout_preview",
"params": {
"catalogHash": "3d7282ee40fec7be4fcb9375d452343ef245b7d75aaf4bebdb13dd3b6da479cc",
"items": [
{
"variantId": "field-notebook-ink",
"quantity": 1
}
]
}
},
"confirmation": {
"version": 1,
"capability": "place_order",
"params": {
"catalogHash": "3d7282ee40fec7be4fcb9375d452343ef245b7d75aaf4bebdb13dd3b6da479cc",
"items": [
{
"variantId": "field-notebook-ink",
"quantity": 1
}
],
"previewHash": "<preview.checkout.previewHash>",
"confirmed": true
}
}
}This is an example, not authorization. Fetch the current catalog before using its hash.