Brightpearl MCP by usefulapi

v1.24.1
io.usefulapi/brightpearl Checked 2 days ago Published 23 hours ago

Search Brightpearl orders, products, stock, contacts and payments; add notes, update order status.

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

brightpearl_get_account_configuration Get account configuration

The Brightpearl account's configuration as key/value pairs: base currency, tax scheme, time zone, default and new-order status ids, nominal codes, weight unit, whether multiple warehouses are enabled. GET /integration-service/account-configuration.

brightpearl_search_orders Search orders

Search sales orders, sales credits, purchase orders and purchase credits. Every filter is optional and they combine (AND); each result row has orderId, orderTypeId, contactId, orderStatusId, orderStockStatusId, createdOn, updatedOn, customerRef, externalRef, warehouseId and more. Use brightpearl_get_orders for the full order. Order type ids: brightpearl_list_order_types; status ids: brightpearl_list_order_statuses. GET /order-service/order-search.

ParameterTypeDescription
contact_idintegerOnly orders of this customer/supplier contact id.
created_fromstringCreated: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
created_tostringCreated: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.
customer_refstringCustomer reference of the order.
external_refstringExternal reference of the order (for example the web shop's order number).
first_resultintegerPosition of the first row to return, from 1 (default 1). Pass the previous reply's next_first_result for the next page.
id_or_external_refstringMatches an order id OR an external reference (case-insensitive match).
is_closedbooleanWhether the order is invoiced (closed).
newest_firstbooleanNewest (highest id) first. Default: oldest first.
order_idsarrayOnly these orders (one or more ids).
order_status_idintegerOrder status id (brightpearl_list_order_statuses).
order_type_idintegerOrder type id (1 sales order, 2 purchase order, 3 sales credit, 4 purchase credit; see brightpearl_list_order_types).
page_sizeintegerRows per page, 1-500 (default 25).
payment_status_idintegerOrder payment status id.
placed_fromstringPlaced: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
placed_tostringPlaced: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.
shipping_status_idintegerOrder shipping status id.
updated_fromstringLast updated: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
updated_tostringLast updated: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.
warehouse_idarrayOnly orders for these warehouses (one or more ids).

brightpearl_get_orders Get orders

Full details of one or more orders by id: type, status, payment/stock/shipping status, dates, currency, totals, assignment, customer/supplier, billing and delivery parties, and the order rows (product, quantity, price, tax). Up to 50 ids. GET /order-service/order/{ids}.

ParameterTypeDescription
order_ids *arrayOrder ids (1-50 ids).
include_custom_fieldsbooleanAlso return the order's custom field values (includeOptional=customFields,nullCustomFields).

brightpearl_get_order_notes Get order notes

All notes on one order (text, author contact id, date, whether it is public on the customer portal, the order status at the time). GET /order-service/order/{id}/note.

ParameterTypeDescription
order_id *integerOrder id.

brightpearl_list_order_statuses List order statuses

The account's order statuses (id, name, order type code SO/PO/SC/PC, sort order, disabled, visible to the customer, state such as draft). Use the ids to filter orders or to change an order's status. GET /order-service/order-status.

brightpearl_list_order_types List order types

The four order types with their ids and codes (1 SO sales order, 2 PO purchase order, 3 SC sales credit, 4 PC purchase credit), for the order search. GET /order-service/order-type.

brightpearl_add_order_note Add order note

WRITE: add a note to an existing order. The note is private (staff only) unless is_public is true, which makes it visible on the customer portal. Returns the new note id. Notes cannot be removed with this server. POST /order-service/order/{id}/note.

ParameterTypeDescription
order_id *integerOrder id.
text *stringThe note text.
is_publicbooleanVisible to the customer on the customer portal. Default false.

brightpearl_update_order_status Update order status

WRITE: move an existing order to another status (ids from brightpearl_list_order_statuses; the new status must exist, be visible and belong to this order's type). Brightpearl adds an order note on success, and status changes can trigger the account's alerts and automations. Moving a sales order to the account's 'cancelled' status removes its reservations and coupons and is refused while goods-out notes or payments exist. PUT /order-service/order/{id}/status.

ParameterTypeDescription
order_id *integerOrder id.
order_status_id *integerThe new order status id.
notestringText of the order note Brightpearl adds (default: generated by Brightpearl).
note_is_publicbooleanMake that note visible on the customer portal. Default false.

brightpearl_search_products Search products

Search the product catalogue. Every filter is optional and they combine (AND); each result row has productId, productName, SKU, barcode, EAN, UPC, ISBN, MPN, stockTracked, createdOn, updatedOn, brightpearlCategoryCode, productGroupId, brandId, productTypeId, productStatus, primarySupplierId. Use brightpearl_get_products for full details. GET /product-service/product-search.

ParameterTypeDescription
barcodestringBarcode.
brand_idarrayOnly these brands (one or more ids).
category_idarrayOnly these Brightpearl categories (one or more ids).
created_fromstringCreated: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
created_tostringCreated: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.
eanstringEAN.
first_resultintegerPosition of the first row to return, from 1 (default 1). Pass the previous reply's next_first_result for the next page.
isbnstringISBN.
mpnstringMPN.
namestringProduct name (case-insensitive match).
newest_firstbooleanNewest (highest id) first. Default: oldest first.
page_sizeintegerRows per page, 1-500 (default 25).
primary_supplier_idarrayOnly products with these primary suppliers (one or more ids).
product_group_idintegerOnly products of this product group (variations); 0 = products that are not in a group.
product_idsarrayOnly these products (one or more ids).
product_statusstringLifecycle status code, for example LIVE.
product_type_idarrayOnly these product types (one or more ids).
skustringExact SKU.
stock_trackedbooleanOnly stock-tracked (true) or non-stock (false) products.
upcstringUPC.
updated_fromstringLast updated: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
updated_tostringLast updated: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.

brightpearl_get_products Get products

Full details of one or more products by id: identity (SKU, barcodes), brand, type, stock-tracking, weight and dimensions, tax code, sales-channel names/descriptions/categories, bundle composition, variations, per-warehouse reorder levels, supplier and status. Up to 50 ids. GET /product-service/product/{ids}.

ParameterTypeDescription
product_ids *arrayProduct ids (1-50 ids).
include_custom_fieldsbooleanAlso return custom field values (includeOptional=customFields,nullCustomFields).

brightpearl_get_product_prices Get product prices

Prices of products per price list: for each product and price list the currency, SKU and the quantity-break price map (e.g. {"1":"12","100":"11"}). Up to 50 product ids; optionally only some price lists (ids from brightpearl_list_price_lists). GET /product-service/product-price/{product ids}/price-list/{price list ids}.

ParameterTypeDescription
product_ids *arrayProduct ids (1-50 ids).
price_list_idsarrayOnly these price list ids (0 is the cost price list).

brightpearl_get_product_availability Get product stock availability

Stock availability of stock-tracked products: for each product the totals across all warehouses (inStock, onHand, allocated, inTransit) and the same per warehouse; optionally per location, with on-order quantities. Up to 50 product ids. GET /warehouse-service/product-availability/{ids}.

ParameterTypeDescription
product_ids *arrayProduct ids (1-50 ids).
by_locationbooleanAlso break the figures down by location within each warehouse.
on_orderbooleanAlso include quantities on open purchase orders (total and shipped).

brightpearl_list_price_lists List price lists

The price lists (id, name, code, currency, SELL or BUY, gross or net). Id 0 is the cost price list. GET /product-service/price-list.

brightpearl_search_brands Search brands

Search product brands by name; each row has brandId, brandName, createdOn, updatedOn. GET /product-service/brand-search.

ParameterTypeDescription
first_resultintegerPosition of the first row to return, from 1 (default 1). Pass the previous reply's next_first_result for the next page.
namestringBrand name (case-insensitive match).
page_sizeintegerRows per page, 1-500 (default 25).

brightpearl_search_categories Search product categories

Search Brightpearl product categories; each row has id, name, parentId, active, createdOn, updatedOn. GET /product-service/brightpearl-category-search.

ParameterTypeDescription
activebooleanOnly active (true) or inactive (false) categories.
first_resultintegerPosition of the first row to return, from 1 (default 1). Pass the previous reply's next_first_result for the next page.
namestringCategory name.
page_sizeintegerRows per page, 1-500 (default 25).
parent_idintegerOnly the children of this category; 0 = the top-level categories.

brightpearl_list_warehouses List warehouses

The warehouses (id, name, type, address id, click-and-collect settings, weekly operating hours). Use the ids for stock and order filters. GET /warehouse-service/warehouse.

brightpearl_list_shipping_methods List shipping methods

The shipping methods (id, name, code, carrier, price breaks, countries). GET /warehouse-service/shipping-method.

brightpearl_search_goods_out_notes Search goods-out notes (shipments)

Search goods-out notes, the pick/pack/ship records of sales orders; each row has goodsOutNoteId, printed, picked, packed, shipped, shippedOn, orderId, shippingMethodId, warehouseId, createdOn, releaseDate, transfer. GET /warehouse-service/goods-note/goods-out-search.

ParameterTypeDescription
created_fromstringCreated: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
created_tostringCreated: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.
first_resultintegerPosition of the first row to return, from 1 (default 1). Pass the previous reply's next_first_result for the next page.
newest_firstbooleanNewest (highest id) first. Default: oldest first.
order_idintegerOnly notes of this order.
packedbooleanOnly packed (true) or not yet packed (false) notes.
page_sizeintegerRows per page, 1-500 (default 25).
pickedbooleanOnly picked (true) or not yet picked (false) notes.
shippedbooleanOnly shipped (true) or not yet shipped (false) notes.
shipped_fromstringShipped: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
shipped_tostringShipped: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.
shipping_method_idarrayOnly these shipping methods (one or more ids).
warehouse_idintegerOnly notes of this warehouse.

brightpearl_search_goods_in_notes Search goods-in notes (stock received)

Search goods-in records (stock received against purchase orders, by batch and location); each row has purchaseOrderId, batchId, productId, locationId, price, currCode, receivedQuantity, onHand, createdDate, receivedDate, warehouseId. GET /warehouse-service/goods-in-search.

ParameterTypeDescription
batch_idintegerOnly this batch.
first_resultintegerPosition of the first row to return, from 1 (default 1). Pass the previous reply's next_first_result for the next page.
newest_firstbooleanNewest batch (highest batch id) first. Default: oldest first.
page_sizeintegerRows per page, 1-500 (default 25).
product_idintegerOnly this product.
purchase_order_idintegerOnly stock received on this purchase order.
received_fromstringReceived: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
received_tostringReceived: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.
warehouse_idintegerOnly this warehouse.

brightpearl_search_contacts Search contacts

Search contacts (customers, suppliers and staff). Every filter is optional and they combine (AND); each result row has contactId, primaryEmail, firstName, lastName, companyName, isSupplier, isStaff, isCustomer, createdOn, updatedOn, lastOrderedOn and more. Use brightpearl_get_contacts for the full record. GET /contact-service/contact-search.

ParameterTypeDescription
company_idsarrayOnly contacts of these company ids (one or more ids).
company_namestringCompany name (case-insensitive match).
contact_idsarrayOnly these contacts (one or more ids).
created_fromstringCreated: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
created_tostringCreated: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.
emailstringMatches any of the contact's email addresses (case-insensitive match).
exact_primary_emailstringExact primary email address.
first_namestringFirst name (case-insensitive match).
first_resultintegerPosition of the first row to return, from 1 (default 1). Pass the previous reply's next_first_result for the next page.
is_customerbooleanOnly customers (true).
is_staffbooleanOnly staff (true).
is_supplierbooleanOnly suppliers (true).
last_namestringLast name (case-insensitive match).
last_ordered_fromstringLast ordered: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
last_ordered_tostringLast ordered: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.
newest_firstbooleanNewest (highest id) first. Default: oldest first.
page_sizeintegerRows per page, 1-500 (default 25).
phonestringMatches any of the telephone or mobile numbers.
tag_idsarrayOnly contacts with these tag ids (one or more ids).
updated_fromstringLast updated: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
updated_tostringLast updated: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.

brightpearl_get_contacts Get contacts

Full records of one or more contacts by id: name, emails, phones, status, supplier/staff flags, financial details (price list, tax code, credit limit and terms), assignment, organisation, tags, dates; optionally custom fields and the full postal addresses. Up to 50 ids. GET /contact-service/contact/{ids}.

ParameterTypeDescription
contact_ids *arrayContact ids (1-50 ids).
include_addressesbooleanAlso return the full postal addresses.
include_custom_fieldsbooleanAlso return custom field values.

brightpearl_add_contact_note Add contact note

WRITE: add a note to a contact's timeline (for example a record of correspondence). The note is private (staff only) unless is_public is true, which makes it visible on the customer portal. Returns the new note id. Notes cannot be removed with this server. POST /contact-service/contact/{id}/note.

ParameterTypeDescription
contact_id *integerContact id.
text *stringThe note text.
is_publicbooleanVisible to the customer on the customer portal. Default false.

brightpearl_search_customer_payments Search customer payments

Search payments received against sales orders; each row has paymentId, transactionRef, paymentMethodCode, paymentType, orderId, currencyCode, amountAuthorized, amountPaid, paymentDate, createdOn, journalId. GET /accounting-service/customer-payment-search.

ParameterTypeDescription
created_fromstringCreated: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
created_tostringCreated: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.
first_resultintegerPosition of the first row to return, from 1 (default 1). Pass the previous reply's next_first_result for the next page.
newest_firstbooleanNewest (highest id) first. Default: oldest first.
order_idsarrayOnly payments on these orders (one or more ids).
page_sizeintegerRows per page, 1-500 (default 25).
payment_fromstringPayment date: on or after this day (yyyy-mm-dd) or ISO 8601 date-time with timezone.
payment_idsarrayOnly these payments (one or more ids).
payment_method_codestringPayment method code (brightpearl_list_payment_methods).
payment_tostringPayment date: on or before this day (yyyy-mm-dd, whole day included) or ISO 8601 date-time with timezone.
payment_typestringPayment type, for example RECEIPT, CAPTURE, AUTH.
transaction_refstringThe payment gateway's transaction reference.

brightpearl_list_payment_methods List payment methods

The payment methods (name, code, active, bank accounts with currency and nominal code). GET /accounting-service/payment-method.

brightpearl_list_tax_codes List tax codes

The tax codes (id, code, description, rate). GET /accounting-service/tax-code.