SalesDrive MCP by usefulapi

v1.5.1
io.usefulapi/salesdrive Checked 2 days ago Published 1 day ago

Read and update orders, add order notes, and find managers by phone in SalesDrive.

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

salesdrive_list_orders List orders

List orders (заявки) with their status, contact, products, delivery and payment fields. Filter by status, order number range, change date, order date or organization. At most 100 per page. SalesDrive API: GET /api/order/list/.

ParameterTypeDescription
limitintegerOrders per page, 1-100 (default 50).
order_id_fromintegerLowest order number.
order_id_tointegerHighest order number.
order_time_fromstringOrder placed on or after this time.
order_time_tostringOrder placed on or before this time.
organization_idintegerOrganization id.
pageintegerPage number (default 1).
status_idsarrayStatus ids, or __NOTDELETED__ (default: all except deleted) or __ALL__.
updated_fromstringOrder changed on or after this time.
updated_tostringOrder changed on or before this time.

salesdrive_get_order Get an order

Get one order by its order number. Returns the order object, or a message when no order has that number. SalesDrive API: GET /api/order/list/ with filter[id].

ParameterTypeDescription
order_id *integerSalesDrive order number (заявки id).

salesdrive_list_statuses List order statuses

List the order statuses of the account with their ids and type (1 in progress, 2 sale, 3 unsuccessful, 4 deleted). Use the ids in salesdrive_update_order. SalesDrive API: GET /api/statuses/.

salesdrive_list_payment_methods List payment methods

List the payment methods of the account with their ids. SalesDrive API: GET /api/payment-methods/.

salesdrive_list_delivery_methods List delivery methods

List the delivery methods of the account with their ids. SalesDrive API: GET /api/delivery-methods/.

salesdrive_find_contact_by_phone Find a contact by phone

Find the client and the responsible manager for a phone number. Returns the manager (name, internal number) and the client record, if one matches. SalesDrive API: GET /api/get_manager_by_phone_number/.

ParameterTypeDescription
phone *stringPhone number, for example +380501112233.

salesdrive_update_order Update an order

Update an order's fields, for example statusId (order status), salesdrive_manager (responsible manager), comment, or paymentDate. Give order_id or external_id. Sends only the fields you pass. The API cannot change the city, branch or address of a Nova Poshta or Ukrposhta delivery. SalesDrive API: POST /api/order/update/.

ParameterTypeDescription
data *objectFields to set, for example { statusId: 1065 }. Use salesdrive_list_statuses for status ids.
external_idstringYour own order number. Ignored when order_id is given.
order_idintegerSalesDrive order number. Use this or external_id.

salesdrive_add_order_note Add a note to an order

Add a note to an order's client communications block. The note gets the current time. Each call adds a new note. SalesDrive API: POST /api/order/note/.

ParameterTypeDescription
order_id *integerSalesDrive order number (заявки id).
text *stringNote text.