Freshly Inventory MCP by usefulapi

v1.9.1
io.usefulapi/freshly-inventory Checked 2 days ago Published 1 day ago

Read batches and assignments; create, update and assign batches in Freshly Inventory.

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

freshly_get_shop Get Freshly shop

Return the Shopify store this API key belongs to (store name and shopify_domain). Good first call to confirm the key works. Freshly API: GET /api/shopify/shop.

freshly_list_inventory_batches List inventory batches

List inventory batches (lot tracking) with quantity, received and expiry dates and metadata. Filter by Shopify location or variant, or search by batch name, number, barcode or invoice. Freshly API: GET /api/shopify/inventory_batches.

ParameterTypeDescription
location_idShopify location id to filter by.
pageintegerPage number (default 1).
searchstringSearch batch name, batch number, barcode, invoice number, description or product.
variant_idShopify product variant id to filter by.

freshly_get_inventory_batch Get inventory batch

Return one inventory batch by its Freshly id. Freshly API: GET /api/shopify/inventory_batches/:id.

ParameterTypeDescription
batch_id *Freshly inventory batch id.

freshly_list_batch_assignments List batch assignments for an order line

List the inventory batches assigned to one Shopify order line item (batch, quantity, assignment id). Freshly API: GET /api/shopify/inventory_batch_order_items.

ParameterTypeDescription
line_item_id *Shopify line item id on that order.
order_id *Shopify order id.

freshly_create_inventory_batch Create inventory batch

Create a new inventory batch of one product variant at one Shopify location. Set enable_shopify_sync true only when the Shopify stock level must change too. Freshly API: POST /api/shopify/inventory_batches.

ParameterTypeDescription
location_id *Shopify location id.
quantity *integerUnits in the batch.
variant_id *Shopify product variant id.
barcodestringBatch barcode.
batch_namestringBatch name shown in Freshly.
batch_numberstringSupplier or internal batch number.
descriptionstringFree-text note.
enable_shopify_syncbooleantrue also applies a Shopify inventory adjustment for this batch. Leave unset to record in Freshly only.
expiry_datestringExpiry date, yyyy-mm-dd.
invoice_numberstringPurchase invoice number.
received_datestringDate the batch was received, yyyy-mm-dd.

freshly_update_inventory_batch Update inventory batch

Change fields of one inventory batch (quantity, location, variant, dates or text). Only the fields you pass change. Set enable_shopify_sync true only when the Shopify stock level must change too. Freshly API: PUT /api/shopify/inventory_batches/:id.

ParameterTypeDescription
batch_id *Freshly inventory batch id.
barcodestringBatch barcode.
batch_namestringBatch name shown in Freshly.
batch_numberstringSupplier or internal batch number.
descriptionstringFree-text note.
enable_shopify_syncbooleantrue also applies a Shopify inventory adjustment for this change. Leave unset to record in Freshly only.
expiry_datestringExpiry date, yyyy-mm-dd.
invoice_numberstringPurchase invoice number.
location_idNew Shopify location id.
quantityintegerNew quantity for the batch.
received_datestringDate the batch was received, yyyy-mm-dd.
variant_idNew Shopify product variant id.

freshly_assign_batch_to_line_item Assign batch to order line

Assign a quantity of one inventory batch to one Shopify order line item, so Freshly tracks which lot shipped. Freshly API: POST /api/shopify/inventory_batch_order_items.

ParameterTypeDescription
inventory_batch_id *Freshly inventory batch id to draw from.
line_item_id *Shopify line item id on that order.
order_id *Shopify order id.
quantity *integerUnits of the batch to assign to this line item.

freshly_remove_batch_assignment Remove batch assignment from order line

Remove one batch assignment from an order line item (the assignment id comes from freshly_list_batch_assignments). Freshly API: DELETE /api/shopify/inventory_batch_order_items/:id.

ParameterTypeDescription
assignment_id *Freshly batch assignment id (inventory_batch_order_items id).