Spreadconnect MCP by usefulapi

v1.2.1
io.usefulapi/spod Checked 1 day ago Published 10 hours ago

Read orders, shipments, stock and articles; create, confirm and cancel orders in Spreadconnect.

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

spod_get_account Get account

The Spreadconnect integration this API key belongs to: merchant id, point-of-sale id, name and type. A cheap way to confirm the connection. GET /authentication.

spod_list_articles List articles

List the articles (your own designed products) of this point of sale: id, title, description and variants with sku, size, colour and prices. The sku is what spod_create_order needs. GET /articles.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset to get the next page.

spod_get_article Get article

One article with all details: variants (sku, size, colour, prices), images and configuration. GET /articles/{articleId}.

ParameterTypeDescription
article_id *integerSpreadconnect article id (from spod_list_articles).

spod_get_order Get order

One order by Spreadconnect order id: state (NEW, CONFIRMED, PROCESSED, CANCELLED), items with their production state, prices and the shipping address. There is no list-orders endpoint, so the id must be known (from spod_create_order or the Spreadconnect app). GET /orders/{orderId}.

ParameterTypeDescription
order_id *integerSpreadconnect order id.

spod_get_order_shipments Get order shipments

The shipments of an order: carrier, tracking number and link, and which order items each contains. GET /orders/{orderId}/shipments.

ParameterTypeDescription
order_id *integerSpreadconnect order id.

spod_get_order_shipping_types Get order shipping types

The shipping types available for an order, with id, carrier, name and price. Pick one id for spod_set_order_shipping_type. GET /orders/{orderId}/shippingTypes.

ParameterTypeDescription
order_id *integerSpreadconnect order id.

spod_create_order Create order (unconfirmed)

WRITE: create a new order in Spreadconnect from article skus (spod_list_articles) and a delivery address. The order is created UNCONFIRMED (state NEW): nothing is produced or charged until it is confirmed with spod_confirm_order, which needs a shipping type first (spod_get_order_shipping_types, spod_set_order_shipping_type). The customer's email and phone are sent to Spreadconnect and the carrier. Prices are what the customer paid (for the invoice/customs), not what you pay Spreadconnect. Calling it twice creates two orders. POST /orders.

ParameterTypeDescription
email *stringCustomer email used for communication.
external_order_reference *stringYour own order number/reference.
items *array
phone *stringCustomer phone number (required by the API).
shipping_address *object
shipping_customer_price *objectWhat the customer paid for shipping.
billing_addressobjectDefaults to the shipping address.
customer_tax_typestring
external_order_namestringOptional display name for the order.
preferred_shipping_typestringPreferred shipping speed (default decided by Spreadconnect).

spod_set_order_shipping_type Set order shipping type

WRITE: choose the shipping type of an order that is not confirmed yet (ids from spod_get_order_shipping_types). Required before spod_confirm_order. Setting it again replaces the choice. POST /orders/{orderId}/shippingType.

ParameterTypeDescription
order_id *integerSpreadconnect order id.
shipping_type_id *stringShipping type id from spod_get_order_shipping_types.

spod_confirm_order Confirm order (sends it to production)

WRITE, SPENDS MONEY: confirm an order so Spreadconnect prints and ships it and bills your account for production and shipping. A shipping type must be set first (spod_set_order_shipping_type). After production starts it cannot be undone; before that spod_cancel_order may still work. Only call it when the user clearly asked to place the order. POST /orders/{orderId}/confirm.

ParameterTypeDescription
order_id *integerSpreadconnect order id.

spod_cancel_order Cancel order

WRITE, DESTRUCTIVE: cancel an order. Spreadconnect refuses it once items are in production or sent. A cancelled order cannot be reopened. POST /orders/{orderId}/cancel.

ParameterTypeDescription
order_id *integerSpreadconnect order id.

spod_list_product_types List product types

The Spreadconnect catalog of blank products you can put designs on (t-shirts, hoodies, mugs...): id, name, brand, sizes, colours (appearances), print type, views and print areas. The ids are used to create articles. The reply is large. GET /productTypes.

ParameterTypeDescription
limitintegerReturn only the first N product types (default 50) to keep the reply small.
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset to get the next page.

spod_get_product_type Get product type

One catalog product type with all details: sizes, colours, print areas, views, print type and descriptions. GET /productTypes/{productTypeId}.

ParameterTypeDescription
product_type_id *integerProduct type id (from spod_list_product_types).

spod_list_product_categories List product categories

The catalog category tree plus the available features, brands and genders. GET /productTypes/categories.

spod_list_stock List stock

Available stock for the variants of this point of sale as a map of sku to stock amount, paged. GET /stock.

ParameterTypeDescription
limitintegerResults per page, 1-100 (default 50).
offsetintegerNumber of results to skip (default 0). Pass the previous reply's next_offset to get the next page.

spod_get_stock_by_sku Get stock for a sku

Available stock of one variant by its sku. GET /stock/{sku}.

ParameterTypeDescription
sku *stringVariant sku.

spod_get_stock_by_product_type Get stock for a product type

Available stock of every size and colour of one catalog product type. GET /stock/productType/{productTypeId}.

ParameterTypeDescription
product_type_id *integerProduct type id (from spod_list_product_types).

spod_upload_design Upload design from URL

WRITE: have Spreadconnect download an image from a public URL and store it as a reusable design; returns a designId for spod_create_article. Uploading the same URL again stores another copy. POST /designs/upload.

ParameterTypeDescription
url *stringPublic https URL of the design image (PNG, under 10 MB).

spod_create_article Create article

WRITE: create an article (a sellable product) from a catalog product type, chosen colours and sizes, and one or more designs placed on views. Get the ids from spod_get_product_type and use designId from spod_upload_design or a public PNG url. Spreadconnect makes the article available in the connected shop integration. Calling it twice creates two articles. Returns the new article id. POST /articles.

ParameterTypeDescription
configurations *array
description *string
title *string
variants *array
print_typestringDD (default) or DTF; DTF only for accounts activated for it.

spod_delete_article Delete article

WRITE, DESTRUCTIVE: permanently delete an article from this point of sale. It cannot be restored; existing orders are not affected. DELETE /articles/{articleId}.

ParameterTypeDescription
article_id *integerSpreadconnect article id (from spod_list_articles).