TendMyStore Connect your store
English
Docs

Tool reference

Every tool TendMyStore gives your assistant: 99 in all. You never call these yourself. Your assistant picks them from what you ask; this page shows what each one is allowed to do.

How to read this page

Read only 38 tools only look. Applies at once 27 tools make a change straight away and return a change id you can undo. Asks first 34 tools first return a preview and a one-time confirm_token; nothing changes until you agree and your assistant repeats the same call with that token.

One store per call

Store tools work on one store of your account. With one store, they use it. With several, your assistant passes the store_id from list_stores, or gets choose_store and asks you which one. A store_id that is not in your account returns store_not_found. See tool examples for what success, an empty result and each kind of error look like.

Your stores

ToolWhat it doesHow it behavesNeeds
connect_storeConnect a storeApplies at oncestore_url
list_storesList connected storesRead onlynothing
disconnect_storeDisconnect a storeApplies at oncestore_id
get_store_overviewStore overviewRead onlystore_id

connect_store adds a store to your account or reconnects one already in it: it gives you a link to your store's own approval screen. disconnect_store cannot be undone.

History and undo

ToolWhat it doesHow it behavesNeeds
list_changesChange historyRead onlystore_id
undo_changeUndo a changeAsks firststore_id change_id

Products and variations

ToolWhat it doesHow it behavesNeeds
find_productsFind productsRead onlystore_id
get_productProduct detailsRead onlystore_id product_id
create_productCreate a productApplies at oncestore_id name
update_productChange a productApplies at oncestore_id product_id
duplicate_productDuplicate a productApplies at oncestore_id product_id
delete_productDelete a productAsks firststore_id product_id
bulk_update_productsChange many productsAsks firststore_id product_ids
list_variationsList variationsRead onlystore_id product_id
create_variationAdd a variationApplies at oncestore_id product_id attributes
update_variationChange a variationApplies at oncestore_id product_id variation_id
delete_variationDelete a variationAsks firststore_id product_id variation_id
generate_variationsGenerate all variationsAsks firststore_id product_id
bulk_update_variationsChange many variationsAsks firststore_id product_id

Categories, tags, brands and attributes

ToolWhat it doesHow it behavesNeeds
list_product_termsList categories, tags, brands or shipping classesRead onlystore_id taxonomy
create_product_termCreate a category, tag, brand or shipping classApplies at oncestore_id taxonomy name
update_product_termChange a category, tag, brand or shipping classApplies at oncestore_id taxonomy term_id
delete_product_termDelete a category, tag, brand or shipping classAsks firststore_id taxonomy term_id
list_attributesList global attributesRead onlystore_id
create_attributeCreate a global attributeApplies at oncestore_id name
update_attributeChange a global attributeApplies at oncestore_id attribute_id
delete_attributeDelete a global attributeAsks firststore_id attribute_id
list_attribute_valuesList an attribute's valuesRead onlystore_id attribute_id
create_attribute_valueAdd an attribute valueApplies at oncestore_id attribute_id name
update_attribute_valueChange an attribute valueApplies at oncestore_id attribute_id value_id
delete_attribute_valueDelete an attribute valueAsks firststore_id attribute_id value_id

Reviews

ToolWhat it doesHow it behavesNeeds
find_reviewsFind product reviewsRead onlystore_id
update_reviewModerate or edit a reviewApplies at oncestore_id review_id
delete_reviewDelete a reviewAsks firststore_id review_id

Stock

ToolWhat it doesHow it behavesNeeds
list_stock_alertsStock alertsRead onlystore_id
update_stockChange stockApplies at oncestore_id product_id
bulk_update_stockChange stock of many itemsAsks firststore_id items

Orders, notes and order emails

ToolWhat it doesHow it behavesNeeds
find_ordersFind ordersRead onlystore_id
list_order_statusesOrder statusesRead onlystore_id
get_orderOrder detailsRead onlystore_id order_id
create_orderCreate an orderAsks firststore_id line_items
set_order_statusChange an order's statusAsks firststore_id order_id status
update_orderChange an orderApplies at oncestore_id order_id
edit_order_itemsEdit an order's itemsAsks firststore_id order_id
bulk_update_order_statusChange many orders' statusAsks firststore_id order_ids status
delete_orderDelete an orderAsks firststore_id order_id
list_order_notesOrder notesRead onlystore_id order_id
add_order_noteAdd a private order noteApplies at oncestore_id order_id note
add_customer_noteSend a note to the customerAsks firststore_id order_id note
delete_order_noteDelete an order noteAsks firststore_id order_id note_id
list_order_email_templatesOrder emails availableRead onlystore_id order_id
send_order_emailEmail an orderAsks firststore_id order_id template

Refunds, recorded

ToolWhat it doesHow it behavesNeeds
list_refundsAn order's refundsRead onlystore_id order_id
record_refundRecord a refundAsks firststore_id order_id amount
prepare_gateway_refundPrepare a payment refundRead onlystore_id order_id

No tool moves money. record_refund records the refund in WooCommerce; prepare_gateway_refund gives you the link to your payment provider's own refund button.

Customers

ToolWhat it doesHow it behavesNeeds
find_customersFind customersRead onlystore_id
get_customerCustomer detailsRead onlystore_id customer_id
get_customer_downloadsCustomer downloadsRead onlystore_id customer_id
create_customerCreate a customerAsks firststore_id email
update_customerChange a customerApplies at oncestore_id customer_id
change_customer_emailChange a customer's emailAsks firststore_id customer_id email
delete_customerDelete a customerAsks firststore_id customer_id

Coupons

ToolWhat it doesHow it behavesNeeds
find_couponsFind couponsRead onlystore_id
get_couponCoupon detailsRead onlystore_id coupon_id
create_couponCreate a couponApplies at oncestore_id code discount_type amount
update_couponChange a couponApplies at oncestore_id coupon_id
delete_couponDelete a couponAsks firststore_id coupon_id

Reports

ToolWhat it doesHow it behavesNeeds
get_sales_reportSales reportRead onlystore_id
get_top_productsBest sellersRead onlystore_id
get_reportAnalytics reportRead onlystore_id report
get_performance_indicatorsKey figuresRead onlystore_id
get_leaderboardsLeaderboardsRead onlystore_id

Shipping

ToolWhat it doesHow it behavesNeeds
list_shipping_zonesShipping zones and methodsRead onlystore_id
create_shipping_zoneCreate a shipping zoneApplies at oncestore_id name
update_shipping_zoneChange a shipping zoneApplies at oncestore_id zone_id
delete_shipping_zoneDelete a shipping zoneAsks firststore_id zone_id
add_shipping_methodAdd a shipping methodApplies at oncestore_id zone_id method_id
update_shipping_methodChange a shipping methodApplies at oncestore_id zone_id instance_id
delete_shipping_methodRemove a shipping methodAsks firststore_id zone_id instance_id

Taxes

ToolWhat it doesHow it behavesNeeds
list_tax_ratesTax rates and classesRead onlystore_id
create_tax_rateCreate a tax rateApplies at oncestore_id rate
update_tax_rateChange a tax rateApplies at oncestore_id rate_id
delete_tax_rateDelete a tax rateAsks firststore_id rate_id
create_tax_classCreate a tax classApplies at oncestore_id name
delete_tax_classDelete a tax classAsks firststore_id slug

Settings, payment methods, webhooks and store health

ToolWhat it doesHow it behavesNeeds
get_settingsStore settingsRead onlystore_id
update_settingsChange store settingsAsks firststore_id group values
list_payment_gatewaysPayment methodsRead onlystore_id
update_payment_gatewayChange a payment methodAsks firststore_id gateway_id
list_webhooksWebhooksRead onlystore_id
create_webhookCreate a webhookAsks firststore_id name topic delivery_url
update_webhookChange a webhookAsks firststore_id webhook_id
delete_webhookDelete a webhookAsks firststore_id webhook_id
get_system_statusStore healthRead onlystore_id

Files: CSV, invoices and packing slips

ToolWhat it doesHow it behavesNeeds
export_productsExport products (CSV)Read onlystore_id
export_ordersExport orders (CSV)Read onlystore_id
import_productsImport products (CSV)Asks firststore_id
create_invoiceInvoice for an orderRead onlystore_id order_id
create_packing_slipPacking slip for an orderRead onlystore_id order_id