ReturnLogic MCP by usefulapi
v1.8.1Read 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.
| Parameter | Type | Description |
|---|---|---|
created_after | string | Only RMAs created on or after this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time. |
created_before | string | Only RMAs created on or before this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time. |
email | array | RMAs whose RMA email or order email matches one of these (case-insensitive, exact). |
external_order_number | string | The external (store) order number. |
limit | integer | Items to return, 1-250 (default 25). |
only_flagged | boolean | Only flagged RMAs. |
only_unpaid_invoices | boolean | Only exchange or warranty RMAs with unpaid invoices. |
only_warranty_out_of_stock | boolean | Only RMAs flagged Contact Customer Support (warranty item out of stock). |
order_name | string | The human-readable order name, e.g. #1001. |
requires_action | boolean | Only RMAs that are not scheduled for automatic processing and need a person. |
return_reason_code | array | Only RMAs with one of these return reason codes. |
return_type | array | Only RMAs with one of these return types. |
show_archived | boolean | true = only archived RMAs, false = only non-archived. |
skip | integer | Number of items to skip (default 0). Pass the previous reply's next_skip. |
third_party_only | boolean | Only RMAs whose order is not from Shopify. |
workflow_status | array | Only 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.
| Parameter | Type | Description |
|---|---|---|
created_after | string | Only RMAs created on or after this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time. |
created_before | string | Only RMAs created on or before this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time. |
email | array | RMAs whose RMA email or order email matches one of these (case-insensitive, exact). |
external_order_number | string | The external (store) order number. |
only_flagged | boolean | Only flagged RMAs. |
only_unpaid_invoices | boolean | Only exchange or warranty RMAs with unpaid invoices. |
only_warranty_out_of_stock | boolean | Only RMAs flagged Contact Customer Support (warranty item out of stock). |
order_name | string | The human-readable order name, e.g. #1001. |
requires_action | boolean | Only RMAs that are not scheduled for automatic processing and need a person. |
return_reason_code | array | Only RMAs with one of these return reason codes. |
return_type | array | Only RMAs with one of these return types. |
show_archived | boolean | true = only archived RMAs, false = only non-archived. |
third_party_only | boolean | Only RMAs whose order is not from Shopify. |
workflow_status | array | Only 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}.
| Parameter | Type | Description |
|---|---|---|
rma_id * | integer | ReturnLogic 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.
| Parameter | Type | Description |
|---|---|---|
rma_item_id * | integer | ReturnLogic 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.
| Parameter | Type | Description |
|---|---|---|
rma_id * | integer | ReturnLogic 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.
| Parameter | Type | Description |
|---|---|---|
rma_id * | integer | ReturnLogic RMA id. |
rma_item_id * | integer | ReturnLogic 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.
| Parameter | Type | Description |
|---|---|---|
created_after | string | Only orders created on or after this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time. |
created_before | string | Only orders created on or before this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time. |
email | string | Find orders by customer email (case-insensitive, exact). |
financial_status | string | Only orders with this financial status. |
limit | integer | Items to return, 1-250 (default 25). |
order_name | string | Find orders by order name, e.g. #1001. |
order_number | string | Find orders by order number. |
skip | integer | Number 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.
| Parameter | Type | Description |
|---|---|---|
created_after | string | Only orders created on or after this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time. |
created_before | string | Only orders created on or before this moment. A date (yyyy-mm-dd) or an ISO 8601 date-time. |
email | string | Find orders by customer email (case-insensitive, exact). |
financial_status | string | Only orders with this financial status. |
order_name | string | Find orders by order name, e.g. #1001. |
order_number | string | Find 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}.
| Parameter | Type | Description |
|---|---|---|
order_id * | integer | ReturnLogic 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.
| Parameter | Type | Description |
|---|---|---|
email | string | Customer email address. |
external_customer_id | string | The customer's id in the store (e.g. the Shopify customer id). |
limit | integer | Items to return, 1-250 (default 25). |
skip | integer | Number 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}.
| Parameter | Type | Description |
|---|---|---|
customer_id * | integer | ReturnLogic 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.
| Parameter | Type | Description |
|---|---|---|
category_id | integer | Only products in this ReturnLogic category id. |
external_product_ids | array | Only products matching these store product ids. |
limit | integer | Items to return, 1-250 (default 25). |
skip | integer | Number of items to skip (default 0). Pass the previous reply's next_skip. |
sku | string | Only products with a variant matching this SKU. |
status | string | active, inActive or any (default per API). |
returnlogic_count_products Count products
Count products matching a SKU, category or status filter. GET /v1/products/count.
| Parameter | Type | Description |
|---|---|---|
category_id | integer | Only products in this ReturnLogic category id. |
sku | string | Only products with a variant matching this SKU. |
status | string | active, 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}.
| Parameter | Type | Description |
|---|---|---|
product_id * | integer | ReturnLogic 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.
| Parameter | Type | Description |
|---|---|---|
external_category_ids | array | Only categories matching these store category ids. |
limit | integer | Items to return, 1-250 (default 25). |
name | string | Category name to search for. |
skip | integer | Number 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.
| Parameter | Type | Description |
|---|---|---|
rma_id * | integer | ReturnLogic RMA id. |
comment | string | Why 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.
| Parameter | Type | Description |
|---|---|---|
items * | array | The items to update. |
rma_id * | integer | ReturnLogic 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.
| Parameter | Type | Description |
|---|---|---|
metafields * | array | The metafields to create. |
rma_id * | integer | ReturnLogic RMA id. |