MarketTime MCP by usefulapi

v1.12.1
io.usefulapi/markettime Checked 1 day ago Published 7 hours ago

MCP server for MarketTime — wholesale orders, customers, catalog and shipment tracking.

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

markettime_list_manufacturers List manufacturers

List the manufacturers (brands) connected to this account: id, name, email, city, category, connection date. Sort fields: name (default), manufacturerID, connectionDate, dateAdded, dateModified, city. GET /manufacturers.

ParameterTypeDescription
activebooleantrue = only active manufacturers, false = only inactive.
offsetintegerStart index (default 0). Pass the previous reply's next_offset.
page_sizeintegerRows per page, 1-250 (default 50).
sortstringSort field, e.g. name, connectionDate, dateModified.
sort_directionstringSort direction (MarketTime's default is descending).

markettime_get_manufacturer Get manufacturer

One manufacturer's details by its id (like M123). GET /manufacturers/{id}.

ParameterTypeDescription
manufacturer_id *stringThe MarketTime id.

markettime_list_orders List orders

Search wholesale orders (for the newest first use sort_field orderDate with sort_direction desc). Convenience filters: status (the manufacturer's order status, e.g. NEW, SENT, SHIPPED), rep_group_status (Rep Group accounts only), po_number, customer_name (contains), manufacturer_id, customer_id, ordered_from/ordered_to (order date), modified_since. Order lines are left out unless include_details is true (they make replies large; use markettime_list_order_details for the lines of one order). Card tokens are never returned. POST /orders/get.

ParameterTypeDescription
customer_idstringCustomer (retailer) id, like B123.
customer_namestringCustomer (retailer) name contains this text.
filtersarrayExtra filters, all combined with AND. Use field names from the record shape of this tool's replies.
include_detailsbooleanInclude the order lines (default false).
manufacturer_idstringThe MarketTime id.
modified_sincestringOnly orders changed on or after this date.
offsetintegerStart index (default 0). Pass the previous reply's next_offset.
ordered_fromstringA date, yyyy-mm-dd.
ordered_tostringA date, yyyy-mm-dd.
page_sizeintegerRows per page, 1-250 (default 50).
po_numberstringPurchase order number equals this value.
rep_group_statusstringrepGroupOrderStatus equals this value (Rep Group accounts).
sort_directionstringSort direction (MarketTime's default is descending).
sort_fieldstringSort field, e.g. orderDate, dateModified, orderTotal, poNumber.
statusstringmanufacturerOrderStatus equals this value.

markettime_list_order_details List order lines

List order lines (item, quantity, unit price) across orders or for one order (order_id). Filters: order dates, statuses, manufacturer, PO number, unit price range. GET /orders/orderdetails.

ParameterTypeDescription
manufacturer_idstringThe MarketTime id.
manufacturer_statusstring
max_unit_pricenumber
min_unit_pricenumber
offsetintegerStart index (default 0). Pass the previous reply's next_offset.
order_idintegerOnly the lines of this order (the order's recordID).
ordered_fromstringA date, yyyy-mm-dd.
ordered_tostringA date, yyyy-mm-dd.
page_sizeintegerRows per page, 1-250 (default 50).
po_numberstring
rep_group_statusstring
sort_directionstringSort direction (MarketTime's default is descending).
sort_fieldstring

markettime_get_order_changes_history Get order changes history

The audit trail of one order: who changed what and when (Rep Group accounts). POST /orders/{orderId}/orderChangesHistory/get (a read-only search).

ParameterTypeDescription
order_id *integerThe order's recordID.
offsetintegerStart index (default 0). Pass the previous reply's next_offset.
page_sizeintegerRows per page, 1-250 (default 50).

markettime_list_order_shipments List order shipments

Shipment and tracking records of one order (tracking number, link, carrier, ship date, invoice). GET /orders/{orderId}/trackingdetails/get.

ParameterTypeDescription
order_id *integerThe order's recordID.

markettime_list_customers List customers

List customers (retailers/buyers) with name, email, address, status (ACTIVE, INACTIVE, LEAD), customer number and salesperson. Filters: name (contains), state, status, modified_since. The customers' own API keys are never returned. POST /customers/get.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Use field names from the record shape of this tool's replies.
modified_sincestringOnly customers changed on or after this date.
namestringCustomer name contains this text.
offsetintegerStart index (default 0). Pass the previous reply's next_offset.
page_sizeintegerRows per page, 1-250 (default 50).
rep_group_idstringManufacturer accounts only: limit to this Rep Group's customers.
sort_directionstringSort direction (MarketTime's default is descending).
sort_fieldstringcustomerNumber: Rep Group accounts only; accountNumber and shipToAccountNumber: Manufacturer accounts only.
statestringState equals this value.
statusstring

markettime_get_customer Get customer

One customer's full record by id (like B123): addresses, contacts, ship-to locations, terms, pricing method. Their API key is never returned. GET /customers/{id}.

ParameterTypeDescription
customer_id *stringThe MarketTime id.
rep_group_idstringManufacturer accounts only: the Rep Group the customer belongs to.

markettime_list_customer_contacts List customer contacts

The contact people of one customer (name, email, phone, title). GET /customers/{id}/contacts.

ParameterTypeDescription
customer_id *stringThe MarketTime id.
offsetintegerStart index (default 0). Pass the previous reply's next_offset.
page_sizeintegerRows per page, 1-250 (default 50).

markettime_list_customer_ship_to_locations List customer ship-to locations

The ship-to locations of one customer (name, address, account number). GET /customers/{id}/shiptolocations.

ParameterTypeDescription
customer_id *stringThe MarketTime id.
offsetintegerStart index (default 0). Pass the previous reply's next_offset.
page_sizeintegerRows per page, 1-250 (default 50).

markettime_list_items List items

Search the product catalog: item number, name, prices, case quantity, stock, UPC, categories, images. Filters: name (contains), item_number, manufacturer_id, modified_since. POST /items/get.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Use field names from the record shape of this tool's replies.
item_numberstringItem number equals this value.
manufacturer_idstringThe MarketTime id.
modified_sincestringOnly items changed on or after this date.
namestringItem name contains this text.
offsetintegerStart index (default 0). Pass the previous reply's next_offset.
page_sizeintegerRows per page, 1-250 (default 50).
sort_directionstringSort direction (MarketTime's default is descending).
sort_fieldstring

markettime_get_item Get item

One catalog item by its numeric record id (the recordID/itemID in item lists). GET /items/{itemID}.

ParameterTypeDescription
item_id *integer

markettime_list_item_inventory List item inventory

Stock levels per item: quantity available, quantity on the water, next available date, availability flag. Sort fields: itemNumber, nextAvailableDate, qtyAvailable, isAvailable. GET /items/inventory.

ParameterTypeDescription
offsetintegerStart index (default 0). Pass the previous reply's next_offset.
page_sizeintegerRows per page, 1-250 (default 50).
sortstring
sort_directionstringSort direction (MarketTime's default is descending).

markettime_list_item_pricing List item pricing

Pricing detail per item (unit price, retail price, price codes, discounts). GET /items/pricing.

ParameterTypeDescription
offsetintegerStart index (default 0). Pass the previous reply's next_offset.
page_sizeintegerRows per page, 1-250 (default 50).

markettime_list_salespersons List salespersons

List the Rep Group's salespeople (name, abbreviation, status, ids). Rep Group accounts only. POST /salespersons/get.

ParameterTypeDescription
namestringName contains this text.
offsetintegerStart index (default 0). Pass the previous reply's next_offset.
page_sizeintegerRows per page, 1-250 (default 50).
sort_directionstringSort direction (MarketTime's default is descending).
sort_fieldstring

markettime_list_commission_order_payments List commission order payments

Order payment and commission records (what was paid on which order, commission percent), Rep Group accounts only. Filters: order_id, modified_since, or custom filters (allowed fields: orderID, checkLogID, invoiceNumber, type, commissionPayDate, salespersonPaidID, dateAdded, dateModified). Card tokens and card data are never returned. Paged by page number. POST /commissions/orderpayments/get.

ParameterTypeDescription
filtersarrayExtra filters, all combined with AND. Use field names from the record shape of this tool's replies.
modified_sincestringA date, yyyy-mm-dd.
order_idintegerOnly payments of this order (field orderID).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
page_sizeintegerRows per page, 1-250 (default 50).

markettime_create_order_shipment Create order shipment

WRITE: add a shipment with tracking to an order (manufacturer accounts only). This creates a new shipment record each time it is called (it is not idempotent) and MarketTime may notify the customer of the tracking details; calling it twice makes a duplicate. Check markettime_list_order_shipments first. POST /orders/{orderId}/trackingdetails.

ParameterTypeDescription
order_id *integerThe order's recordID.
shipping_method *stringCarrier / shipping method, e.g. UPS Ground.
tracking_link *stringThe carrier's tracking URL (https).
tracking_number *string
invoice_amountnumber
invoice_numberstring
notesstring
ship_datestringA date, yyyy-mm-dd.

markettime_create_customer Create customer

WRITE: create a new customer (retailer) account record. It is not idempotent: calling it twice may create two customers, so search with markettime_list_customers by name first. Does not send an invitation by itself. POST /customers.

ParameterTypeDescription
email *string
name *string
phone *stringPhone number, at most 12 characters (MarketTime limit).
address1string
address2string
citystring
countrystringCountry code, at most 4 characters (e.g. US).
external_idstringYour own id for this customer, to link external systems.
notesstring
statestring
statusstringCustomer status (default chosen by MarketTime).
websitestring
zipstring