Apilo MCP by usefulapi

v1.8.1
io.usefulapi/apilo Checked 2 days ago Published 21 hours ago

Read orders, shipments, products and stock; set order status, notes and stock quantity in Apilo.

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

apilo_whoami Get API key info

The Apilo API key (application) this connection uses: client id, name and the date it is valid to. GET /rest/api/whoami/.

apilo_get_map Get lookup table

Apilo's id lookup tables, each a list of { id, key, name, description }: `status` (order statuses, for apilo_list_orders and apilo_update_order_status), `payment` (payment types), `carrier`, `carrier_account`, `platform` (sales channels and their accounts), `tag`, `document` (document types), `shipment_status`. GET /rest/api/orders/<table>/map/.

ParameterTypeDescription
table *stringWhich lookup table.

apilo_list_orders List orders

List or search orders (all connected marketplaces and shops), with items, customer address and totals. Filter by date, status, payment, sales channel, carrier, email or phone. Status, payment, carrier and platform ids come from apilo_get_map. Page with limit/offset (reply has totalCount and next_offset). GET /rest/api/orders/.

ParameterTypeDescription
carrierIdintegerOnly orders with this carrier (apilo_get_map carrier).
createdAfterstringCreated at or after (ISO 8601 date or date-time; offsets are converted to UTC, no zone = UTC).
createdBeforestringCreated at or before (ISO 8601).
emailstringCustomer email.
idstringApilo order id.
idExternalstringThe order id in the marketplace or shop.
isOrderDocumentbooleanOnly orders with (true) or without (false) an order document.
limitintegerResults per page, 1-512 (default 25).
offsetintegerRecords to skip (default 0). Pass the previous reply's next_offset.
orderStatusIdsarrayOnly these order statuses (ids from apilo_get_map status).
orderedAfterstringOrdered by the buyer at or after (ISO 8601).
orderedBeforestringOrdered by the buyer at or before (ISO 8601).
paymentStatusintegerPayment status code.
paymentTypeintegerPayment type id (apilo_get_map payment).
phonestringCustomer phone.
platformAccountIdintegerOnly orders of this sales channel account (apilo_get_map platform).
sortstringSort order.
updatedAfterstringUpdated at or after (ISO 8601).
updatedBeforestringUpdated at or before (ISO 8601).

apilo_get_order Get order

One order in full: status, payment, items (SKU, EAN, price, quantity), customer/delivery/invoice addresses, payments, notes, discounts, carrier and sales channel. GET /rest/api/orders/{id}/.

ParameterTypeDescription
id *stringApilo order id, e.g. AL231100017 (the `id` of an order from apilo_list_orders).

apilo_list_order_notes List order notes

The notes of an order (internal notes and customer messages), with type 1 = customer message, 2 = internal note. GET /rest/api/orders/{id}/note/.

ParameterTypeDescription
id *stringApilo order id, e.g. AL231100017 (the `id` of an order from apilo_list_orders).

apilo_list_order_documents List order documents

The documents attached to an order (invoices, receipts, labels). GET /rest/api/orders/{id}/documents/.

ParameterTypeDescription
id *stringApilo order id, e.g. AL231100017 (the `id` of an order from apilo_list_orders).
limitintegerResults per page, 1-512 (default 25).
offsetintegerRecords to skip (default 0). Pass the previous reply's next_offset.

apilo_list_order_shipments List order shipments

The shipments created for an order (Apilo id and carrier's id). GET /rest/api/orders/{id}/shipment/.

ParameterTypeDescription
id *stringApilo order id, e.g. AL231100017 (the `id` of an order from apilo_list_orders).
limitintegerResults per page, 1-512 (default 25).
offsetintegerRecords to skip (default 0). Pass the previous reply's next_offset.

apilo_get_shipment Get order shipment

One shipment of an order with its details. GET /rest/api/orders/{id}/shipment/{shipment}/.

ParameterTypeDescription
id *stringApilo order id, e.g. AL231100017 (the `id` of an order from apilo_list_orders).
shipment *stringShipment id from apilo_list_order_shipments.

apilo_list_shipment_tracking List shipment tracking

Tracking status of shipments (status, status date and description, received date and days in transit), filtered by carrier account, post date, received date or status. Page with limit/offset (reply has totalCount and next_offset). GET /rest/api/shipping/shipment/tracking/.

ParameterTypeDescription
carrierAccountIdarrayCarrier account ids (apilo_get_map carrier_account).
limitintegerResults per page, 1-512 (default 25).
offsetintegerRecords to skip (default 0). Pass the previous reply's next_offset.
postDateAfterstringShipment created in Apilo at or after (ISO 8601).
postDateBeforestringShipment created in Apilo at or before (ISO 8601).
receivedDateAfterstringDelivered at or after (ISO 8601).
receivedDateBeforestringDelivered at or before (ISO 8601).
statusarrayShipment status codes: 0 new, 1 waiting, 2 registered, 21 in delivery, 9 removed, 31 awaiting collection, 32 returning/error, 100 received, 101 return delivered.

apilo_list_products List products

List warehouse products with SKU, EAN, name, stock quantity, prices, tax and location. Filter by id, SKU, name, EAN or status. GET /rest/api/warehouse/product/.

ParameterTypeDescription
eanstringEAN.
idintegerApilo product id.
limitintegerResults per page, 1-512 (default 25).
namestringProduct name (text).
offsetintegerRecords to skip (default 0). Pass the previous reply's next_offset.
skustringExact SKU.
status0 inactive, 1 active, 8 archived.

apilo_get_product Get product

One warehouse product by Apilo id. GET /rest/api/warehouse/product/{id}/.

ParameterTypeDescription
id *integerApilo product id.

apilo_list_categories List categories

Product categories with id, name and parent ids. GET /rest/api/warehouse/category/.

ParameterTypeDescription
idintegerOnly this category id.
limitintegerResults per page, 1-512 (default 25).
offsetintegerRecords to skip (default 0). Pass the previous reply's next_offset.

apilo_list_locations List warehouse locations

Warehouse locations (shelves, bins) with id, name and code. GET /rest/api/warehouse/location/.

ParameterTypeDescription
codestringLocation code.
idintegerOnly this location id.
limitintegerResults per page, 1-512 (default 25).
namestringLocation name.
offsetintegerRecords to skip (default 0). Pass the previous reply's next_offset.

apilo_list_finance_documents List accounting documents

Accounting documents (invoices, receipts, corrections) with number, amounts, currency and dates. Filter by type and invoice date. GET /rest/api/finance/documents/.

ParameterTypeDescription
invoiceAfterstringInvoiced at or after (ISO 8601 date or date-time).
invoiceBeforestringInvoiced at or before (ISO 8601 date or date-time).
limitintegerResults per page, 1-512 (default 25).
offsetintegerRecords to skip (default 0). Pass the previous reply's next_offset.
typeDocument type: 1 invoice, 5 receipt, 10 proforma, 31 corrective invoice.

apilo_update_order_status Update order status

WRITE: set an order's status (id from apilo_get_map status). Apilo may run its own automations on a status change (emails, marketplace updates, shipping). Setting the current status changes nothing. PUT /rest/api/orders/{id}/status/.

ParameterTypeDescription
id *stringApilo order id, e.g. AL231100017 (the `id` of an order from apilo_list_orders).
status *integerNew status id (apilo_get_map status).

apilo_add_order_note Add internal order note

WRITE: add an INTERNAL note to an order (never a message to the customer). Not idempotent: calling twice adds two notes. POST /rest/api/orders/{id}/note/.

ParameterTypeDescription
comment *stringThe note text, up to 1024 characters.
id *stringApilo order id, e.g. AL231100017 (the `id` of an order from apilo_list_orders).

apilo_set_product_stock Set product stock quantity

WRITE: set the stock quantity of one warehouse product to an absolute number (it replaces the current quantity, so read it with apilo_get_product first if unsure). Apilo may push the new quantity to connected marketplaces. PATCH /rest/api/warehouse/product/.

ParameterTypeDescription
id *integerApilo product id.
quantity *integerThe new stock quantity (units).