ReturnLogic MCP by usefulapi

v1.8.1
io.usefulapi/returnlogic Checked 3 days ago Published 1 day ago

Read returns, orders and products; flag returns and mark items received in ReturnLogic.

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

returnlogic_list_rmas List returns (RMAs)

List return merchandise authorizations (RMAs, i.e. customer returns) with workflow status, return type (refund, exchange, warranty, giftcard), items, customer email and order. Filter by status, type, reason, email, order, date range, flags or 'requires action'. GET /v1/rmas.

ParameterTypeDescription
created_afterstringOnly RMAs created on or after this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time.
created_beforestringOnly RMAs created on or before this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time.
emailarrayRMAs whose RMA email or order email matches one of these (case-insensitive, exact).
external_order_numberstringThe external (store) order number.
limitintegerItems to return, 1-250 (default 25).
only_flaggedbooleanOnly flagged RMAs.
only_unpaid_invoicesbooleanOnly exchange or warranty RMAs with unpaid invoices.
only_warranty_out_of_stockbooleanOnly RMAs flagged Contact Customer Support (warranty item out of stock).
order_namestringThe human-readable order name, e.g. #1001.
requires_actionbooleanOnly RMAs that are not scheduled for automatic processing and need a person.
return_reason_codearrayOnly RMAs with one of these return reason codes.
return_typearrayOnly RMAs with one of these return types.
show_archivedbooleantrue = only archived RMAs, false = only non-archived.
skipintegerNumber of items to skip (default 0). Pass the previous reply's next_skip.
third_party_onlybooleanOnly RMAs whose order is not from Shopify.
workflow_statusarrayOnly RMAs in one of these workflow statuses.

returnlogic_count_rmas Count returns (RMAs)

Count RMAs matching the same filters as returnlogic_list_rmas (for example how many returns are Requested or require action). GET /v1/rmas/count.

ParameterTypeDescription
created_afterstringOnly RMAs created on or after this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time.
created_beforestringOnly RMAs created on or before this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time.
emailarrayRMAs whose RMA email or order email matches one of these (case-insensitive, exact).
external_order_numberstringThe external (store) order number.
only_flaggedbooleanOnly flagged RMAs.
only_unpaid_invoicesbooleanOnly exchange or warranty RMAs with unpaid invoices.
only_warranty_out_of_stockbooleanOnly RMAs flagged Contact Customer Support (warranty item out of stock).
order_namestringThe human-readable order name, e.g. #1001.
requires_actionbooleanOnly RMAs that are not scheduled for automatic processing and need a person.
return_reason_codearrayOnly RMAs with one of these return reason codes.
return_typearrayOnly RMAs with one of these return types.
show_archivedbooleantrue = only archived RMAs, false = only non-archived.
third_party_onlybooleanOnly RMAs whose order is not from Shopify.
workflow_statusarrayOnly RMAs in one of these workflow statuses.

returnlogic_get_rma Get return (RMA)

One RMA by id: status, comments, order link, shopper and warehouse addresses, items with quantities, reasons, approval/receipt state, labels and timeline. GET /v1/rmas/{rlRmaId}.

ParameterTypeDescription
rma_id *integerReturnLogic RMA id (rlRmaId).

returnlogic_get_rma_item_type_history Get return type history of an RMA item

The history of return-type changes (e.g. refund changed to exchange) of one RMA item. GET /v1/rmas/{rlRmaItemId}/returntypehistory.

ParameterTypeDescription
rma_item_id *integerReturnLogic RMA item id (rlRmaItemId, from an RMA's items).

returnlogic_get_rma_metafields Get RMA metafields

Custom metafields (key, value, reportable) stored on an RMA. GET /v1/rmas/{rlRmaId}/metafields.

ParameterTypeDescription
rma_id *integerReturnLogic RMA id.

returnlogic_get_rma_item_metafields Get RMA item metafields

Custom metafields stored on one item of an RMA. GET /v1/rmas/{rlRmaId}/items/{rlRmaItemId}/metafields.

ParameterTypeDescription
rma_id *integerReturnLogic RMA id.
rma_item_id *integerReturnLogic RMA item id.

returnlogic_list_orders List orders

List orders known to ReturnLogic (synced from the store) with items, customer, amounts and statuses. Filter by order number/name, email, date range or financial status. GET /v1/orders.

ParameterTypeDescription
created_afterstringOnly orders created on or after this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time.
created_beforestringOnly orders created on or before this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time.
emailstringFind orders by customer email (case-insensitive, exact).
financial_statusstringOnly orders with this financial status.
limitintegerItems to return, 1-250 (default 25).
order_namestringFind orders by order name, e.g. #1001.
order_numberstringFind orders by order number.
skipintegerNumber of items to skip (default 0). Pass the previous reply's next_skip.

returnlogic_count_orders Count orders

Count orders matching the same filters as returnlogic_list_orders. GET /v1/orders/count.

ParameterTypeDescription
created_afterstringOnly orders created on or after this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time.
created_beforestringOnly orders created on or before this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time.
emailstringFind orders by customer email (case-insensitive, exact).
financial_statusstringOnly orders with this financial status.
order_namestringFind orders by order name, e.g. #1001.
order_numberstringFind orders by order number.

returnlogic_get_order Get order

One order by ReturnLogic order id (rlOrderId) with its line items, addresses and statuses. GET /v1/orders/{rlOrderId}.

ParameterTypeDescription
order_id *integerReturnLogic order id (rlOrderId; the rlOrderId field of an RMA).

returnlogic_list_customers List customers

List customers, or find one by email or external customer id. GET /v1/customers/list.

ParameterTypeDescription
emailstringCustomer email address.
external_customer_idstringThe customer's id in the store (e.g. the Shopify customer id).
limitintegerItems to return, 1-250 (default 25).
skipintegerNumber of items to skip (default 0). Pass the previous reply's next_skip.

returnlogic_get_customer Get customer

One customer by ReturnLogic customer id (rlCustomerId). GET /v1/customers/{rlCustomerId}.

ParameterTypeDescription
customer_id *integerReturnLogic customer id (rlCustomerId).

returnlogic_list_products List products

List products with their variants (SKUs, barcodes). Filter by SKU, category id, status or external (store) product ids. GET /v1/products.

ParameterTypeDescription
category_idintegerOnly products in this ReturnLogic category id.
external_product_idsarrayOnly products matching these store product ids.
limitintegerItems to return, 1-250 (default 25).
skipintegerNumber of items to skip (default 0). Pass the previous reply's next_skip.
skustringOnly products with a variant matching this SKU.
statusstringactive, inActive or any (default per API).

returnlogic_count_products Count products

Count products matching a SKU, category or status filter. GET /v1/products/count.

ParameterTypeDescription
category_idintegerOnly products in this ReturnLogic category id.
skustringOnly products with a variant matching this SKU.
statusstringactive, inActive or any (default per API).

returnlogic_get_product Get product

One product by ReturnLogic product id (rlProductId) with its variants. GET /v1/products/{rlProductId}.

ParameterTypeDescription
product_id *integerReturnLogic product id (rlProductId).

returnlogic_list_product_categories List product categories

List product categories (used for return rules). Search by name or external category ids. GET /v1/productCategories.

ParameterTypeDescription
external_category_idsarrayOnly categories matching these store category ids.
limitintegerItems to return, 1-250 (default 25).
namestringCategory name to search for.
skipintegerNumber of items to skip (default 0). Pass the previous reply's next_skip.

returnlogic_flag_rma Flag an RMA

WRITE: flag an RMA so the team can filter for it, with an optional comment. A flag cannot be removed afterwards. It sends nothing to the customer. POST /v1/rmas/{rlRmaId}/flag.

ParameterTypeDescription
rma_id *integerReturnLogic RMA id.
commentstringWhy the RMA is flagged (visible to the team).

returnlogic_mark_rma_items_received Mark RMA items received

WRITE: record the warehouse receipt of one or more RMA items (received true/false, optional disposition code that must already exist in ReturnLogic). When every item is received the RMA becomes Received, and if the store uses Automated Processing for Received, the RMA may then be processed automatically (refund, exchange or gift card issued, and the customer notified by ReturnLogic). Use only on the operator's instruction. PUT /v1/rmas/{rlRmaId}/fulfillment.

ParameterTypeDescription
items *arrayThe items to update.
rma_id *integerReturnLogic RMA id.

returnlogic_add_rma_metafields Add RMA metafields

WRITE: add custom metafields (key/value notes or reference numbers) to an RMA. A key can be used once per RMA. 'reportable' true makes the field visible on RMAs and reports; false keeps it API-only. Nothing is sent to the customer. POST /v1/rmas/{rlRmaId}/metafields.

ParameterTypeDescription
metafields *arrayThe metafields to create.
rma_id *integerReturnLogic RMA id.