ReplenishRadar
v1.3.1Shopify and Amazon inventory forecasting, reorder planning and purchase orders (53 tools).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
rr_list_suggested_purchase_orders
Get AI-suggested purchase orders based on stockout risk, demand, and supplier reliability.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Rows per page (default 100, max 500). |
status | string | Filter: suggested, approved |
store_id | string | Only suggestions for this store. |
vendor_id | string | Filter by vendor |
rr_list_purchase_orders
List purchase orders with status, amounts, and delivery info. supplier_delivery_status is the supplier email outcome: pending (being sent), emailed, partial (some recipients only), queued (will send after the recipient's quiet hours), unknown (could not confirm, check with the supplier before resending), failed, or null (never emailed).
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Rows per page (default 50, max 200). |
offset | integer | Deprecated: rows to skip. Use cursor; it stays correct while rows change. |
search | string | Part of a PO number to match. |
status | string | Filter: draft, sent, received, cancelled (comma-separated for multiple) |
vendor_id | string | Filter by vendor |
rr_get_purchase_order
Get detailed info for a specific purchase order. supplier_delivery_status says whether the supplier got the PO email: pending, emailed, partial, queued, unknown (could not confirm, check with the supplier before resending), failed, or null (never emailed). The lines come in pages, oldest first in a stable order: pass next_cursor as cursor until has_more is false; the purchase order's own fields are on every page. Landed costs are allocated over all lines, so each line's landed_cost_per_unit is the whole order's figure; the cost scope that says whether those costs can be relied on is cost_scope…
| Parameter | Type | Description |
|---|---|---|
po_id * | string | The purchase order id or its PO number, for example REV-PO-002 |
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Rows per page (default 500, max 1000). |
rr_get_purchase_order_pdf
Find where to open a purchase order as a PDF. Returns the PO number and the address in ReplenishRadar that renders the PDF, not the file itself.
| Parameter | Type | Description |
|---|---|---|
po_id * | string | The purchase order id or its PO number, for example REV-PO-002. |
rr_list_purchase_order_documents
List the documents attached to a purchase order, newest first.
| Parameter | Type | Description |
|---|---|---|
po_id * | string | The purchase order id or its PO number, for example REV-PO-002 |
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Rows per page (default 100, max 500). |
rr_list_purchase_order_notes
Get all notes for a purchase order, most recent first.
| Parameter | Type | Description |
|---|---|---|
po_id * | string | The purchase order id or its PO number, for example REV-PO-002 |
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Rows per page (default 1000, max 1000). |
rr_list_recommendations
List recommendations: the buying and transfer work ReplenishRadar has prepared that is still waiting, as supplier orders, transfers between locations, or both.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
destination_location_id | string | Optional parent or child destination location filter |
kind | string | Optional kind filter: supplier_po, transfer, combined, no_action |
limit | integer | Actions per page (default 100, max 500). |
origin_location_id | string | Optional child origin location filter |
sku | string | Optional SKU filter |
source_location_id | string | Optional parent source location filter |
status | string | Optional status filter, comma-separated |
store_id | string | Optional store ID filter |
rr_get_recommendation
Get one recommendation with child item provenance, snapshots, linked execution records, and event history. The products come in pages: pass next_cursor as cursor until has_more is false; the action's own fields are on every page. The action carries its newest events, oldest first, up to 100 (fewer when they are long); events_total is how many it has and events_truncated is true when older ones were left out, which are on the action's page in the app. Long lists of SKUs or locations on the action are capped at 100 with a <name>_total beside them; the product pages are the complete list.
| Parameter | Type | Description |
|---|---|---|
action_id * | string | Recommendation ID |
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Rows per page (default 100, max 500). |
rr_list_transfer_decisions
Why products were, or were not, moved between the seller's own locations on the last transfer run. Pass a sku for one product's answer; omit it for the whole population with counts by reason. It answers why something was not transferred or restocked from another location, which an empty transfer-suggestions list does not say.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Rows per page (default 2000, max 2000). |
sku | string | One product's answer. Omit for the population. There is deliberately no store filter: the transfer census is org-grain, because transfer generation resolves its locations org-wide. |
rr_list_stockout_risks
Get stockout risk assessment for SKUs. Returns risk levels, days to stockout, velocity, and planned_order: the quantity the PO planner suggests ordering (use planned_order.qty, not suggested_qty). A row with planned_order null and a name_review_hold has an order waiting on the supplier name review, which is not the same as no order suggested. Only positions the planner could evaluate are listed: products without enough sales history and products excluded from planning are left out, so absence from this list, or an empty list, is not evidence that stock is healthy.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Rows per page (default 100, max 500). |
risk_level | string | Filter: critical, high, medium, low |
sku | string | Optional SKU filter |
store_id | string | Optional store ID filter |
rr_get_inventory_position
Get current inventory positions (on-hand, in-transit, sellable) for a SKU. sellable_qty is what each location can sell now (Amazon FBA: on_hand, Amazon's fulfillable units). available_qty is the channel's own figure, null where the channel reports none (Amazon); null means not reported, not zero. SKU is required.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
item_id | string | The product's item id. Give this or sku. |
limit | integer | Rows per page (default 1000, max 1000). |
sku | string | SKU to look up. Give this or item_id. |
rr_get_demand_forecast
Get demand forecast for a SKU including predicted demand, seasonal factors, and the item's forecast track record: whether its forecast has historically beaten a naive same-as-last-week baseline, or whether there is too little scored history to judge. seasonal_profile on the first page gives the 12-month seasonal curve behind the forecast's seasonal_index, which level supplied it (item, family, supplier or store), how it is graded, and the coverage window with the dates the index averages over. SKU is required.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
item_id | string | The product's item id. Give this or sku. |
limit | integer | Rows per page (default 100, max 500). |
sku | string | SKU to forecast. Give this or item_id. |
store_id | string | Optional store ID filter |
window_days | integer | Forecast horizon in days (default 30) |
rr_list_products
List inventory items with optional filters. For an exact SKU identity question, provide the exact value in search and set include_listing_identity=true to resolve Amazon seller SKUs and return source listing identifiers such as ASIN and FNSKU.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
include_listing_identity | boolean | Set true only with an exact search value for a SKU identity question. Resolves an exact Amazon seller SKU even when it differs from the canonical SKU and returns listing source, ASIN, and FNSKU eviden… |
limit | integer | Items per page (default 100, max 500). |
needs_review | boolean | true: only items flagged for review; false: only items not flagged. |
offset | integer | Deprecated: rows to skip. Use cursor; it stays correct while rows change. |
search | string | Search by name or SKU |
vendor_id | string | Only items whose primary supplier is this supplier id (from rr_list_suppliers). |
rr_list_suppliers
List suppliers with performance metrics.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
include_skus | boolean | Also list each supplier's SKUs. Default false. |
limit | integer | Rows per page (default 1000, max 1000). |
rr_list_sales_history
Get sales history rows, newest first, over a time period. total is the exact number of rows in the window; count is the rows in this page. When has_more is true, pass next_cursor as cursor to get the next page. Totals and rankings come from total or rr_list_top_sellers; a partial walk of the rows says nothing about the whole window.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
days | integer | Lookback days (default 30, max 90) |
granularity | string | day (default) returns daily rows for up to 90 days. month returns one row per calendar month for up to 36 months, for one SKU or, with no SKU, the store's totals. |
limit | integer | Rows per page (default 1000, max 5000). |
months | integer | Months of history when granularity is month (default 12, max 36). Net demand units; the newest month may be partial. |
sku | string | Filter by SKU |
store_id | string | Only sales from this store. |
rr_list_top_sellers
Get top-selling products ranked by units sold over the whole window, one row per product however many SKU labels its sales carry. total_skus is how many products have sales rows in the window (the name is historical); truncated_to_top_n is true when that is more than the page returned (this ranking has no next page).
| Parameter | Type | Description |
|---|---|---|
days | integer | Lookback days (default 30, max 90) |
limit | integer | Number of results (default 20, max 100) |
months | integer | Rank over this many calendar months instead of days (max 36), on net demand units, for a window longer than 90 days. |
store_id | string | Only sales from this store. |
rr_list_slow_movers
Overstock / dead-stock / slow movers: SKUs you are HOLDING (on-hand > 0) that aren't selling - capital tied up. Returns on_hand, units sold in the window, and a dead_stock flag: held with no sale in the last 12 months, whatever the window (null, with dead_stock_message saying why, while the sales history is too short to decide). dead_stock_summary is the seller's total dead-stock count across every store, whatever store_id asks for, and its value at cost when costs may be shown. Inventory-first, so never-sold dead stock is surfaced too. total is how many held SKUs there are; has_more is true w…
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
days | integer | Lookback window in days (default 30, max 90) |
limit | integer | Number of slow movers per page (default 20, max 500). |
store_id | string | Only sales from this store. |
rr_get_inventory_value
Get total inventory value (units and value across all active locations).
| Parameter | Type | Description |
|---|---|---|
store_id | string | Only stock at this store's locations. |
rr_get_inventory_health
Store-wide inventory health summary: stockout-risk counts by level and active alert counts by type.
rr_list_lost_sales
Get estimated lost sales due to stockouts.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
days | integer | Lookback days (default 30) |
limit | integer | Rows per page (default 50, max 500). |
rr_get_product_expiry_risk
Expiry risk for one product marked as expiring: at each location holding it, the recorded lots estimated to be still on hand (lot code, expiry date, and the date the lot becomes unusable), whether each is expected to sell before that date, and the units and cost at risk. These are estimates: Amazon does not report which lot it sold, so the lots on hand are inferred from arrival order (oldest first at Amazon FBA, earliest expiry first at the seller's own locations) and projected against the product's sales rate. A lot becomes unusable a set number of days before it expires: Amazon's removal win…
| Parameter | Type | Description |
|---|---|---|
item_id | string | The product's item id. Give this or sku; item_id wins if both are given. |
sku | string | The product's SKU, used when item_id is not given. |
rr_list_expiring_lots
List the lots across the whole catalog that are estimated to be left unsold when they become unusable (status at_risk), or that have already reached that date with units left (past_cutoff), earliest unusable date first, at Amazon FBA and at the seller's own locations. Each row names the product, the location, the lot code, the expiry and unusable dates, the units remaining and the units at risk. These are estimates: Amazon does not report which lot it sold, so the lots on hand are inferred from arrival order and projected against each product's sales rate. An empty list does not mean nothing w…
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Rows per page (default 100, max 500). |
status | string | Only lots with this status. Omit for both. |
rr_get_sync_status
Get sync status for connected stores. Pass the sync_event_id returned by rr_trigger_sync to get that request's own receipt (sync_event) and its attempts (sync_event_attempts) alongside recent runs.
| Parameter | Type | Description |
|---|---|---|
connector_type | string | Optional filter for the recent-runs list. |
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Recent runs per page (default 10, max 100). |
store_id | string | Optional store UUID filter for the recent-runs list. |
sync_event_id | string | Optional sync-event UUID from rr_trigger_sync. Adds that request's receipt and attempt history to the response. |
rr_get_store_health
Diagnose each connected store's health. Returns per-store connection status, hours since last sync, and a diagnosis enum (disconnected / error / pending_setup / sync_paused / stale / healthy), plus a summary with primary_diagnosis. It answers sync-failure, missing-inventory and 'why isn't X working' questions at their source: a disconnected store is upstream of every sync error it has.
| Parameter | Type | Description |
|---|---|---|
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Rows per page (default 50, max 200). |
rr_get_data_freshness
Get per-dimension freshness status (sync, positions, demand, risk, recommendations) with staleness thresholds and a primary_concern summary. It answers whether the numbers are up to date and explains a figure that looks stale.
rr_get_setup_status
Check onboarding milestones and compute the next setup step. Returns counts (connected_stores, suppliers, items), activation milestones, and a next_step enum (connect_store, wait_for_sync, add_supplier, run_first_forecast, review_first_suggested_po, done). It answers onboarding questions; next_step connect_store means no store is connected now, so the store's figures are not being refreshed and may not exist yet.
rr_get_recent_activity
Summarize the last N days of org activity (default 7, max 30). Returns counts only - alerts created/resolved, POs created/received, sync runs total/failed, and a one-word headline (sync_health_degraded / alert_storm / receiving_active / normal / quiet_week). No monetary fields. It answers 'what should I focus on today?' and 'what happened this week?' in one call.
| Parameter | Type | Description |
|---|---|---|
days | integer | Window in days (1-30, default 7) |
rr_list_alerts
Get active alerts (stockout warnings, sync failures, anomalies).
| Parameter | Type | Description |
|---|---|---|
alert_type | string | Alert type filter |
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
limit | integer | Rows per page (default 50, max 500). |
offset | integer | Deprecated: rows to skip. Use cursor; it stays correct while rows change. |
severity | string | Only alerts of this severity. |
sku | string | Only alerts for this product, under any SKU it has had. |
status | string | Filter: active, acknowledged |
store_id | string | Only alerts for this store. |
rr_get_memory_entry
Read one saved memory entry by namespace and key. Expired entries are not returned. The namespace must have been granted to this API key by an admin.
| Parameter | Type | Description |
|---|---|---|
key * | string | The entry's key within the namespace, up to 200 characters. |
namespace * | string | A context namespace this key has been granted, for example supplier_rules. |
rr_list_memory_entries
List the entries stored under a memory namespace, most recently updated first.
| Parameter | Type | Description |
|---|---|---|
namespace * | string | Namespace to list |
cursor | string | next_cursor from the previous page. Pass it with the same other inputs until has_more is false. |
key_prefix | string | Only keys starting with this prefix |
limit | integer | Rows per page (default 50, max 200). |
rr_search_knowledge
Search the ReplenishRadar knowledge base for product features, best practices, and inventory management concepts: the answers the seller's live data does not hold.
| Parameter | Type | Description |
|---|---|---|
query * | string | Natural-language search query |
top_k | integer | Number of results to return (default 5, max 10) |
rr_evaluate_fit
Check whether ReplenishRadar fits a seller from a few facts about their business, and get a fit verdict. Reads no store data and needs none. Answers can be sent as fields or nested under answers; pass the returned attribution_token on a follow-up call to continue.
| Parameter | Type | Description |
|---|---|---|
answers | object | The same answers as one object, instead of the fields above. Any other question from the public agent-intake survey may be included. |
attribution_token | string | The token a previous call returned, to continue the same evaluation. |
autonomy_intent | string | How much the agent will do: read only, prepare drafts, or act. |
channels | array | Where the seller sells. |
primary_pain | string | The inventory problem they most want solved. |
sku_count_band | string | Roughly how many products they stock. |
store_count | integer | How many stores they run. |
tier | string | Which question set these answers complete. Default A. |
rr_submit_feedback
Sends feedback the user has agreed to pass on to the ReplenishRadar product team, on the user's behalf. The report says what the user wanted and what happened, with no names, contact details, credentials, or store data beyond what the report needs. Sending the same message twice returns the first report and files no second one.
| Parameter | Type | Description |
|---|---|---|
message * | string | What the user was trying to do, what happened, and what they expected. |
type * | string | bug: something is broken or wrong. suggestion: something the user wishes ReplenishRadar did. support: the user needs help. other: anything else. |
impact | string | Optional: how much this is holding the user back. |
related_tool | string | Optional: the ReplenishRadar tool the feedback is about, by name. |
subject | string | Optional one-line summary. |
rr_create_purchase_order
Create a draft purchase order for a supplier. The order is always a draft: an agent cannot create an approved or sent order. Approval is requested with rr_request_purchase_order_approval, and an order must be approved before it can be sent. Given action_id, the new order is linked to that recommendation unless it is already linked to an order that is not cancelled or dismissed. Returns the new order and its items_added count.
| Parameter | Type | Description |
|---|---|---|
destination_location_id * | string | The id of the location the goods will arrive at. |
items * | array | Required line items: [{sku, quantity, unit_cost}, ...]. The server validates quantities, constraints, and trusted cost fallbacks. |
vendor_id * | string | The supplier's id, from rr_list_suppliers. |
action_id | string | Optional recommendation UUID to link to the draft PO. |
expected_delivery_date | string | Optional expected delivery date in YYYY-MM-DD format. |
notes | string | Optional free-text notes to attach to the draft PO. |
rr_import_purchase_orders
Import open and historical purchase orders from a CSV export (the way in for a seller moving from another inventory tool). One row per line item, grouped by po_number; column names from common inventory tools' exports are recognized automatically. Records received quantities as a snapshot only - it NEVER moves stock. Idempotent on po_number (re-running the same file is safe). preview defaults to true: it validates and returns what would import without writing; pass preview=false to actually import. Returns per-PO counts, warnings, and errors.
| Parameter | Type | Description |
|---|---|---|
csv_content * | string | Raw CSV text. Required columns: po_number, vendor_name, sku, quantity. One row per line item; up to 500 POs / 5000 lines. |
create_missing_vendors | boolean | Default false. When true, suppliers not yet in the org are created as name-only stubs instead of erroring those POs. |
default_lead_time_days | integer | Optional. Lead time in days (0-3650) pre-filled on any supplier stub this import creates, so the imported catalog isn't left with missing-lead-time gaps. Omit to set lead times later. |
default_location_id | string | Destination location UUID for PO rows without a warehouse column, when the org has more than one warehouse. |
import_cancelled | boolean | Default false. When true, cancelled/void POs in the file are imported under their cancelled status instead of being skipped. |
preview | boolean | Default true. When true, validates and returns what would import without writing. Pass false to commit the import. |
rr_update_purchase_order
Update a draft or suggested PO. Allowed fields: notes, expected_delivery_date, vendor_id. Edits are recorded in the PO's revision history. Status changes are NOT supported here - use rr_send_purchase_order or rr_cancel_purchase_order. Only draft/suggested POs are editable; approved/sent/received/cancelled POs are not.
| Parameter | Type | Description |
|---|---|---|
po_id * | string | The purchase order id or its PO number, for example REV-PO-002 (required). |
expected_delivery_date | string | Optional expected delivery date in YYYY-MM-DD format. |
notes | string | Optional replacement notes for the PO. |
vendor_id | string | Optional vendor UUID to reassign the PO to. |
rr_add_purchase_order_note
Add a note to a purchase order: context the seller wants kept on the order record (e.g., 'supplier confirmed lead time').
| Parameter | Type | Description |
|---|---|---|
content * | string | The note text. |
po_id * | string | The purchase order id or its PO number, for example REV-PO-002 (required). |
rr_request_purchase_order_approval
Ask a manager to approve a draft/review PO. The request expires in 15 minutes and is approved in ReplenishRadar after signing in, not by a link. Use BEFORE rr_send_purchase_order - sending without approval will fail. Supersedes any prior pending request.
| Parameter | Type | Description |
|---|---|---|
po_id * | string | The purchase order id or its PO number, for example REV-PO-002 (required). |
message | string | Optional context for the approver. |
rr_send_purchase_order
Send an approved PO: marks it sent (status='sent', sent_at=now) and emails the supplier the PO packet at the supplier's contact on file. Will fail if status is not 'approved' - use rr_request_purchase_order_approval first. The response's delivery and supplier_delivery_status say what happened to the email, one of six values: pending (being sent), emailed, partial (some recipients only), queued (will send after the recipient's quiet hours), unknown (could not confirm, check with the supplier before resending) or failed. Calling it again on a sent PO sends nothing. To email an already-sent PO's…
| Parameter | Type | Description |
|---|---|---|
po_id * | string | The purchase order id or its PO number, for example REV-PO-002 (required). |
action_id | string | Optional recommendation UUID to record the send event on. |
confirm_possible_duplicate | boolean | With resend: true, send even though the supplier may already have this order (delivery emailed, partial or unknown). Only after the user has confirmed it. |
resend | boolean | Email the supplier again for a PO already sent (sent, confirmed, pi_received or in_transit). Does not send the PO again. |
rr_cancel_purchase_order
Cancel a PO (status='cancelled'). Cannot cancel POs already in cancelled/received/closed status.
| Parameter | Type | Description |
|---|---|---|
po_id * | string | The purchase order id or its PO number, for example REV-PO-002 (required). |
rr_record_proforma_invoice
Record a supplier's proforma invoice (PI) on a purchase order: its number, date, total and payment terms. A sent or confirmed order moves to pi_received; one already at pi_received has its PI details updated; any other status is refused. Send only the fields the seller gave you.
| Parameter | Type | Description |
|---|---|---|
po_id * | string | The purchase order id or its PO number, for example REV-PO-002. |
pi_date | string | The invoice date, ISO 8601, for example 2026-10-18. |
pi_number | string | The proforma invoice number. |
pi_terms | object | The payment terms as a JSON object under 4 KB, for example {"deposit_pct": 30, "balance": "on shipment"}. |
pi_total | number | The invoice total. |
rr_add_recommendation_note
Add a note to a recommendation: context the seller wants kept on the recommendation itself rather than on a purchase order.
| Parameter | Type | Description |
|---|---|---|
action_id * | string | Recommendation id (required). |
note * | string | Note body (required). |
rr_dismiss_recommendation
Dismiss a recommendation when the seller decides no buyer work is needed. Records an action event and removes it from active action queues.
| Parameter | Type | Description |
|---|---|---|
action_id * | string | Recommendation id (required). |
reason | string | Optional dismissal reason. |
rr_preview_recommendation
Preview a recommendation before acting on it: its kind, status, products, supplier and locations, and its current updated_at. Pass that updated_at as expected_updated_at to rr_create_draft_from_recommendation, rr_retry_recommendation_draft or rr_close_recommendation. Changes nothing; refused for an action that is already finished.
| Parameter | Type | Description |
|---|---|---|
action_id * | string | The recommendation id, from rr_list_recommendations. |
rr_create_draft_from_recommendation
Turn a recommendation into its draft purchase order or draft transfer, for a person to review. Nothing is sent to a supplier and no stock moves. It needs the action's updated_at as last read; if the user has not given it, read it with rr_preview_recommendation.
| Parameter | Type | Description |
|---|---|---|
action_id * | string | The recommendation id, from rr_list_recommendations. |
expected_updated_at * | string | The action's updated_at as last read (rr_preview_recommendation or rr_get_recommendation). The call is refused if the action changed since, so it can be read again. |
idempotency_key * | string | A value you choose for this attempt. Repeating a call with the same value and the same arguments returns the first result and does nothing again. |
rr_close_recommendation
Close a recommendation with a reason when no purchase order or transfer is needed, for example because the stock was bought another way. Removes it from the open lists and creates nothing.
| Parameter | Type | Description |
|---|---|---|
action_id * | string | The recommendation id, from rr_list_recommendations. |
expected_updated_at * | string | The action's updated_at as last read (rr_preview_recommendation or rr_get_recommendation). The call is refused if the action changed since, so it can be read again. |
idempotency_key * | string | A value you choose for this attempt. Repeating a call with the same value and the same arguments returns the first result and does nothing again. |
reason * | string | Why no purchase order or transfer is needed. |
rr_retry_recommendation_draft
Try again to turn a recommendation into its draft purchase order or draft transfer after an earlier attempt was blocked or failed. Same effects as rr_create_draft_from_recommendation: drafts only, nothing sent and no stock moved.
| Parameter | Type | Description |
|---|---|---|
action_id * | string | The recommendation id, from rr_list_recommendations. |
expected_updated_at * | string | The action's updated_at as last read (rr_preview_recommendation or rr_get_recommendation). The call is refused if the action changed since, so it can be read again. |
idempotency_key * | string | A value you choose for this attempt. Repeating a call with the same value and the same arguments returns the first result and does nothing again. |
rr_create_location
Create a manual stocking location: a warehouse, 3PL, FBA, WFS, in-transit or inbound location, with an optional address. Refused when an active location already has the name. It adds the location only; set its stock with rr_set_stock_at_location.
| Parameter | Type | Description |
|---|---|---|
name * | string | The location's name, unique among active locations. |
type * | string | The kind of location. |
address_line1 | string | Street address. |
city | string | City. |
country | string | Country. |
is_default | boolean | Make this the default manual location. Default false. |
postal_code | string | Postal code. |
state | string | State or province. |
rr_set_stock_at_location
Set the on-hand quantity of one SKU at one manual location to an absolute number, replacing the stored count. Read the current position first and confirm the number with the user: a sale recorded since the last count is overwritten. System and inactive locations are refused, and so is stock a live collection holds.
| Parameter | Type | Description |
|---|---|---|
quantity * | integer | The new on-hand quantity, 0 or more. |
sku * | string | The product's SKU. |
location_id | string | The manual location's id. Give this or location_name. |
location_name | string | The manual location's name, used when location_id is not given. |
rr_acknowledge_alert
Acknowledge an open alert. Sets status='acknowledged', stamps acknowledged_at + acknowledged_by, and writes an alert_audit row. For an alert the seller has read and accepted.
| Parameter | Type | Description |
|---|---|---|
alert_id * | string | Alert UUID (required). |
note | string | Optional note to store with the acknowledgement. |
rr_trigger_sync
Trigger an inventory sync for a connected Shopify or Amazon store. Skipped if a sync ran in the last 5 minutes for this connector type. Returns {status: 'queued'|'skipped', sync_event_id, requested_store_id, blocking_sync_event_id, message}. Pass sync_event_id to rr_get_sync_status to follow the request; sync_run_id is not known at queue time and is always null here. skipped: 'fba_inventory_not_applicable' is permanent for that store (Amazon gives it no FBA inventory access), so a repeat request returns the same answer.
| Parameter | Type | Description |
|---|---|---|
connector_type * | string | Which platform to sync (required). |
store_id | string | Optional store id. If omitted, picks the first connected store of the given platform. |
rr_save_memory_entry
Save a small JSON object under a namespace and key, for an agent to read back later. It is not for secrets or personal data; values with obvious secret or contact-detail shapes are refused. The namespace must have been granted to this API key.
| Parameter | Type | Description |
|---|---|---|
key * | string | The entry's key within the namespace, up to 200 characters. |
namespace * | string | A context namespace this key has been granted, for example supplier_rules. |
value * | object | The JSON object to save, up to 16 KiB. |
scope_ref | string | Optional label for what the entry is about, up to 200 characters. Not secret. |
ttl_seconds | integer | Optional lifetime in seconds, up to 90 days. |
rr_delete_memory_entry
Delete one saved memory entry by namespace and key. The namespace must have been granted to this API key.
| Parameter | Type | Description |
|---|---|---|
key * | string | The entry's key within the namespace, up to 200 characters. |
namespace * | string | A context namespace this key has been granted, for example supplier_rules. |