Sapo MCP by usefulapi

v1.19.1
io.usefulapi/sapo Checked 2 days ago Published 13 hours ago

Read Sapo store products, orders, customers and stock levels; edit order notes and stock.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

sapo_get_store Get store

The Sapo store this login belongs to: name, domain, currency, timezone, plan and other settings. GET /admin/store.json.

sapo_list_products List products

List products with their variants, prices, SKUs and images. Filter by name, vendor, type, collection or created/modified dates. Paged: pass next_page as page. GET /admin/products.json.

ParameterTypeDescription
collection_idintegerOnly products in this collection (see sapo_list_custom_collections).
created_on_maxstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
created_on_minstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
idsarrayOnly these product ids.
limitintegerResults per page, 1-250 (default 50).
modified_on_maxstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
modified_on_minstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
product_typestringExact product type.
querystringSearch by product name.
since_idintegerOnly products with an id greater than this.
vendorstringExact vendor (brand) name.

sapo_count_products Count products

Number of products matching the filters. GET /admin/products/count.json.

ParameterTypeDescription
collection_idintegerOnly products in this collection (see sapo_list_custom_collections).
created_on_maxstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
created_on_minstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
product_typestringExact product type.
vendorstringExact vendor (brand) name.

sapo_get_product Get product

One product by id, with variants and images. GET /admin/products/{id}.json.

ParameterTypeDescription
product_id *integerSapo product id.

sapo_list_product_variants List product variants

The variants (size, color, SKU, barcode, price) of one product. Paged. GET /admin/products/{product_id}/variants.json.

ParameterTypeDescription
product_id *integerSapo product id.
limitintegerResults per page, 1-250 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.

sapo_get_product_variant Get product variant

One product variant by id. GET /admin/variants/{id}.json.

ParameterTypeDescription
variant_id *integerSapo variant id.

sapo_list_custom_collections List collections

List manual product collections (danh mục thủ công). Paged. GET /admin/custom_collections.json.

ParameterTypeDescription
limitintegerResults per page, 1-250 (default 50).
namestringFilter by collection name.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
product_idintegerOnly collections that contain this product.

sapo_list_orders List orders

List orders with line items, customer, totals, payment and fulfillment status. Filter by status, tag, customer or dates. Paged: pass next_page as page. GET /admin/orders.json.

ParameterTypeDescription
created_on_maxstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
created_on_minstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
customer_idintegerOnly orders of this customer.
financial_statusstringPayment status: authorized, pending, paid, refunded, voided, or any. Sapo default when omitted: authorized, pending and paid only (refunded and voided are left out).
fulfillment_statusstringFulfillment status (for example unfulfilled, fulfilled, partial).
limitintegerResults per page, 1-250 (default 50).
modified_on_maxstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
modified_on_minstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
querystringSearch text (order number, customer name, phone, email).
statusstringOrder status: open (Sapo default when omitted, so archived orders are left out), closed, or any (all orders). Pass any for date-range totals.
tagstringOnly orders with this tag.

sapo_count_orders Count orders

Number of orders matching the filters. GET /admin/orders/count.json.

ParameterTypeDescription
created_on_maxstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
created_on_minstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
financial_statusstringPayment status: authorized, pending, paid, refunded, voided, or any. Sapo default when omitted: authorized, pending and paid only (refunded and voided are left out).
fulfillment_statusstringFulfillment status (for example unfulfilled, fulfilled, partial).
modified_on_maxstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
modified_on_minstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
statusstringOrder status: open (Sapo default when omitted, so archived orders are left out), closed, or any (all orders). Pass any for date-range totals.

sapo_get_order Get order

One order by id with line items, addresses, discounts, payment and shipping. GET /admin/orders/{id}.json.

ParameterTypeDescription
order_id *integerSapo order id.

sapo_list_order_transactions List order transactions

The payment transactions recorded on one order. GET /admin/orders/{order_id}/transactions.json.

ParameterTypeDescription
order_id *integerSapo order id.

sapo_list_customers List customers

List customers with contact details, addresses, order count and total spent. Paged. GET /admin/customers.json.

ParameterTypeDescription
created_on_maxstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
created_on_minstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
limitintegerResults per page, 1-250 (default 50).
modified_on_maxstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
modified_on_minstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
since_idintegerOnly customers with an id greater than this.

sapo_count_customers Count customers

Total number of customers. GET /admin/customers/count.json.

sapo_get_customer Get customer

One customer by id. GET /admin/customers/{id}.json.

ParameterTypeDescription
customer_id *integerSapo customer id.

sapo_list_locations List locations

List branches, stores and warehouses (id, name, address, whether they track stock). Use the ids for stock levels. Paged. GET /admin/locations.json.

ParameterTypeDescription
limitintegerResults per page, 1-250 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
querystringSearch by name, code or phone.
statusstringBranch status; Sapo spells the inactive value "expried".

sapo_list_inventory_items List inventory items

List inventory items (one per variant) by SKU/barcode search, variant or product ids. The id is what stock levels use as inventory_item_id. Paged. GET /admin/inventory_items.json.

ParameterTypeDescription
idsarrayOnly these inventory item ids.
limitintegerResults per page, 1-250 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
product_idsarrayOnly these product ids.
querystringSearch by barcode or SKU.
variant_idsarrayOnly these variant ids.

sapo_list_inventory_levels List inventory levels

Stock per item and location: on_hand, available, committed, incoming, reserved. Filter by inventory item or location ids, or by a minimum/maximum available quantity. Sapo documents no paging for this list, so narrow it with ids. GET /admin/inventory_levels.json.

ParameterTypeDescription
available_maxnumberOnly levels with at most this much available.
available_minnumberOnly levels with at least this much available.
inventory_item_idsarrayOnly these inventory item ids (see sapo_list_inventory_items).
location_idsarrayOnly these location ids (see sapo_list_locations).

sapo_list_price_rules List price rules

List discount price rules (percentage, fixed amount, fixed price) with validity dates and usage counts. Paged. GET /admin/price_rules.json.

ParameterTypeDescription
created_on_maxstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
created_on_minstringISO 8601 date or date-time (UTC unless it carries an offset), e.g. 2026-10-01 or 2026-10-01T00:00:00Z.
ends_on_maxstringOnly rules that end on or before this date.
ends_on_minstringOnly rules that end on or after this date.
limitintegerResults per page, 1-250 (default 50).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
starts_on_maxstringOnly rules that start on or before this date.
starts_on_minstringOnly rules that start on or after this date.
times_usedintegerOnly rules used exactly this many times.

sapo_update_order Update order note or tags

WRITE: set the note and/or the tags of an order (Sapo only lets an order's items and quantities stay fixed after creation). The value REPLACES the existing note or tags: read the order first to keep what is there. PUT /admin/orders/{id}.json.

ParameterTypeDescription
order_id *integerSapo order id.
notestringNew order note (replaces the old one; empty string clears it).
tagsarrayNew tag list (replaces all tags; an empty list clears them).

sapo_set_inventory_level Set stock quantity

WRITE: set the physical stock (on_hand) of one inventory item at one location to an exact quantity, with a reason. This OVERWRITES the current number and is recorded as a stock adjustment: read the level first (sapo_list_inventory_levels). PUT /admin/inventory_levels/set.json.

ParameterTypeDescription
inventory_item_id *integerInventory item id (see sapo_list_inventory_items).
location_id *integerLocation id (see sapo_list_locations).
on_hand *numberPhysical on-hand quantity to set (at most 3 decimals are kept).
reasonstringWhy the stock changes (default: Sapo's own default).