Printful MCP by usefulapi
Browse the Printful catalog, orders, shipping quotes and stats, and create draft orders and mockups.
사용해야 할까요
품질 및 안전성
발견 사항 (2)
- LOWprintful_list_catalog_categories에서
- LOWprintful_calculate_shipping_rates에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"printful": {
"url": "https://printful.usefulapi.io/mcp"
}
}
}원격 엔드포인트
https://printful.usefulapi.io/mcpstreamable-http할 수 있는 일
도구 목록
도구 (21)
🟢printful_list_stores
List the stores this token can reach (id, name, platform type). A cheap way to confirm the token works, and where to find the store_id an ACCOUNT-level token needs. Printful: GET /stores.
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_list_catalog_categories
List Printful's catalog categories (T-shirts, Mugs, Posters…) with their ids and parent ids — the filter for printful_list_catalog_products. Printful: GET /categories.
입력 스키마
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_list_catalog_products(category_id)
List the blank products Printful can print on (id, title, brand, model, variant count, print-file placements), optionally filtered by category. Printful: GET /products.
입력 스키마
{
"type": "object",
"properties": {
"category_id": {
"description": "Comma-separated category ids, e.g. 24 or 24,55 (see printful_list_catalog_categories).",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_get_catalog_product(product_id)
Fetch one catalog product with ALL its variants (size, color, variant_id, price, stock). Use the variant_id values when quoting shipping or building an order. Printful: GET /products/{id}.
입력 스키마
{
"type": "object",
"properties": {
"product_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Catalog product id, e.g. 71."
}
},
"required": [
"product_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_get_catalog_variant(variant_id)
Fetch one catalog variant and its parent product. Printful: GET /products/variant/{id}.
입력 스키마
{
"type": "object",
"properties": {
"variant_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Catalog variant id, e.g. 4012."
}
},
"required": [
"variant_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_list_store_products(status, category_id, store_id)
List the Sync Products in a Manual-order / API store. For a Shopify, Etsy, WooCommerce or other integrated store use printful_list_sync_products instead. Printful: GET /store/products.
입력 스키마
{
"type": "object",
"properties": {
"status": {
"description": "Filter by sync status.",
"type": "string",
"enum": [
"all",
"synced",
"unsynced",
"ignored",
"imported",
"discontinued",
"out_of_stock"
]
},
"category_id": {
"description": "Comma-separated catalog category ids.",
"type": "string"
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_get_store_product(product_id, store_id)
Fetch one product of a Manual-order / API store with all its Sync Variants — catalog variant, print files, retail price. For a Shopify, Etsy, WooCommerce or other integrated store use printful_get_sync_product instead. Printful: GET /store/products/{id}.
입력 스키마
{
"type": "object",
"properties": {
"product_id": {
"type": "string",
"description": "Numeric Printful id, or your platform's External ID prefixed with @ (e.g. @988123)."
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"product_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_list_sync_products(search, status, offset, limit, store_id)
List the products Printful has imported from an integrated store (Shopify, Etsy, WooCommerce…), with how many variants are synced. Filter by status=unsynced to find products that still need a design or catalog variant. Printful: GET /sync/products.
입력 스키마
{
"type": "object",
"properties": {
"search": {
"description": "Product name search.",
"type": "string"
},
"status": {
"description": "Filter by sync status.",
"type": "string",
"enum": [
"all",
"synced",
"unsynced",
"ignored",
"imported",
"discontinued",
"out_of_stock"
]
},
"offset": {
"description": "Result set offset (items to skip).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Items per page, 1-100.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_get_sync_product(product_id, store_id)
Fetch one product imported from an integrated store (Shopify, Etsy, WooCommerce…) with all its Sync Variants — catalog variant, print files, retail price, sync status. Ids come from printful_list_sync_products. Printful: GET /sync/products/{id}.
입력 스키마
{
"type": "object",
"properties": {
"product_id": {
"type": "string",
"description": "Numeric Printful id, or your platform's External ID prefixed with @ (e.g. @988123)."
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"product_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_list_orders(status, offset, limit, store_id)
List the store's orders, newest first, optionally by status (draft, pending, failed, canceled, inprocess, onhold, partial, fulfilled, archived). Printful: GET /orders.
입력 스키마
{
"type": "object",
"properties": {
"status": {
"description": "Order status, e.g. draft, pending, fulfilled, failed.",
"type": "string"
},
"offset": {
"description": "Result set offset (items to skip).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"limit": {
"description": "Items per page, 1-100.",
"type": "integer",
"minimum": 1,
"maximum": 100
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_get_order(order_id, store_id)
Fetch one order: status, recipient, items, costs, and shipments with carrier and tracking links — the answer to 'where is my order?'. Printful: GET /orders/{id}.
입력 스키마
{
"type": "object",
"properties": {
"order_id": {
"type": "string",
"description": "Numeric Printful order id, or your External ID prefixed with @ (e.g. @SHOP-1001)."
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"order_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_calculate_shipping_rates(recipient, items, currency, locale, store_id)
Quote the shipping options (method id, name, rate, delivery-day estimate) for a set of items to an address. Only country_code is required (plus state_code for US/CA/AU). Changes nothing. Printful: POST /shipping/rates.
입력 스키마
{
"type": "object",
"properties": {
"recipient": {
"type": "object",
"properties": {
"country_code": {
"type": "string",
"description": "Two-letter ISO country code."
},
"state_code": {
"description": "Required for US, CA and AU.",
"type": "string"
},
"city": {
"type": "string"
},
"zip": {
"type": "string"
},
"address1": {
"type": "string"
},
"address2": {
"type": "string"
},
"phone": {
"type": "string"
}
},
"required": [
"country_code"
],
"description": "Destination; more detail can return more precise rates."
},
"items": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"variant_id": {
"description": "Catalog variant id.",
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "string"
}
]
},
"external_variant_id": {
"description": "Your platform's variant id.",
"type": "string"
},
"warehouse_product_variant_id": {
"description": "Warehouse product variant id.",
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "string"
}
]
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991,
"description": "Quantity."
},
"value": {
"description": "Item retail value, helps customs estimates.",
"type": "string"
}
},
"required": [
"quantity"
]
},
"description": "Items to ship — give one of the variant ids per item."
},
"currency": {
"description": "3-letter currency to quote in (default: store currency).",
"type": "string"
},
"locale": {
"description": "Locale for rate names: en_US (default) or es_ES.",
"type": "string"
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"recipient",
"items"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_estimate_order_costs(recipient, items, shipping, retail_costs, store_id)
Price an order WITHOUT creating it: item, print, shipping and tax costs, plus retail totals. Same item shape as printful_create_draft_order. Changes nothing. Printful: POST /orders/estimate-costs.
입력 스키마
{
"type": "object",
"properties": {
"recipient": {
"type": "object",
"properties": {
"name": {
"description": "Full name.",
"type": "string"
},
"company": {
"description": "Company name.",
"type": "string"
},
"address1": {
"description": "Address line 1.",
"type": "string"
},
"address2": {
"description": "Address line 2.",
"type": "string"
},
"city": {
"description": "City.",
"type": "string"
},
"state_code": {
"description": "State code — required for US, CA and AU.",
"type": "string"
},
"country_code": {
"type": "string",
"description": "Two-letter ISO country code, e.g. US."
},
"zip": {
"description": "ZIP / postal code.",
"type": "string"
},
"phone": {
"description": "Phone number.",
"type": "string"
},
"email": {
"description": "Email address.",
"type": "string"
},
"tax_number": {
"description": "Tax number (required for Brazil: CPF/CNPJ).",
"type": "string"
}
},
"required": [
"country_code"
],
"description": "Ship-to address."
},
"items": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"external_id": {
"description": "Your line-item id.",
"type": "string"
},
"variant_id": {
"description": "Catalog variant id (then give files).",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"sync_variant_id": {
"description": "Sync Variant id from your Printful store.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"external_variant_id": {
"description": "Your platform's variant id for a Sync Variant.",
"type": "string"
},
"warehouse_product_variant_id": {
"description": "Warehouse product variant id.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"product_template_id": {
"description": "Product Template to generate print files from (variant_id is then required).",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"description": "Quantity (max 1000 per item)."
},
"retail_price": {
"description": "Retail price shown on the packing slip, e.g. \"29.99\".",
"type": "string"
},
"name": {
"description": "Display name on the packing slip.",
"type": "string"
},
"sku": {
"description": "Your SKU.",
"type": "string"
},
"files": {
"description": "Print files (needed with a plain catalog variant_id).",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"description": "Placement / role of the file, e.g. default, front, back, preview (see the catalog product's files).",
"type": "string"
},
"url": {
"description": "Public URL of the print file. Give url or id.",
"type": "string"
},
"id": {
"description": "Id of a file already in the File Library. Give url or id.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"options": {
"description": "Additional file options.",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Option id, e.g. stitch_color or thread_colors."
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Option value."
}
},
"required": [
"id",
"value"
]
}
},
"filename": {
"description": "File name.",
"type": "string"
}
}
}
},
"options": {
"description": "Product options, e.g. embroidery thread colors.",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Option id, e.g. stitch_color or thread_colors."
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Option value."
}
},
"required": [
"id",
"value"
]
}
}
},
"required": [
"quantity"
]
},
"description": "Order items."
},
"shipping": {
"description": "Shipping method id from printful_calculate_shipping_rates (default STANDARD).",
"type": "string"
},
"retail_costs": {
"description": "Retail costs to show on the packing slip.",
"type": "object",
"properties": {
"currency": {
"description": "3-letter currency code.",
"type": "string"
},
"subtotal": {
"type": "string"
},
"discount": {
"type": "string"
},
"shipping": {
"type": "string"
},
"tax": {
"type": "string"
}
}
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"recipient",
"items"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_get_file(file_id, store_id)
Fetch one File Library entry — processing status (ok / waiting / failed), dimensions, DPI and preview URLs. Poll this after printful_add_file. Printful: GET /files/{id}.
입력 스키마
{
"type": "object",
"properties": {
"file_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "File id."
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"file_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_get_printfiles(product_id, orientation, technique, store_id)
List the print areas (placements) and required print-file pixel sizes/DPI for each variant of a catalog product — what a design must match before mockups or orders. DTG is assumed unless technique is given. Printful: GET /mockup-generator/printfiles/{id}.
입력 스키마
{
"type": "object",
"properties": {
"product_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Catalog product id."
},
"orientation": {
"description": "For wall art: orientation.",
"type": "string",
"enum": [
"horizontal",
"vertical"
]
},
"technique": {
"description": "Printing technique for multi-technique products, e.g. DTG, EMBROIDERY, SUBLIMATION, DTFILM.",
"type": "string"
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"product_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_get_mockup_task(task_key, store_id)
Check a mockup-generation task: status (pending / completed / failed) and, when done, the mockup image URLs per placement and variant. Printful: GET /mockup-generator/task.
입력 스키마
{
"type": "object",
"properties": {
"task_key": {
"type": "string",
"description": "The task_key returned by printful_create_mockup_task."
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"task_key"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢printful_get_statistics(date_from, date_to, report_types, currency, store_id)
Sales, costs, profit and order-count reports for a period of at most 6 months. Printful: GET /reports/statistics.
입력 스키마
{
"type": "object",
"properties": {
"date_from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Start date, YYYY-MM-DD."
},
"date_to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "End date, YYYY-MM-DD (max 6 months after date_from)."
},
"report_types": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"sales_and_costs",
"sales_and_costs_summary",
"printful_costs",
"profit",
"total_paid_orders",
"costs_by_amount",
"costs_by_product",
"costs_by_variant",
"average_fulfillment_time"
]
},
"description": "Reports to include, e.g. [\"sales_and_costs_summary\", \"profit\", \"total_paid_orders\"]."
},
"currency": {
"description": "3-letter currency, or display_currency for the account's display currency (default: store currency).",
"type": "string"
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"date_from",
"date_to",
"report_types"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴printful_create_draft_order(recipient, items, external_id, shipping, retail_costs, ...)
Create an order as a DRAFT — nothing is charged or produced. It must be confirmed later in the Printful dashboard, where the charge is shown. Each item needs one of variant_id (+ files), sync_variant_id, external_variant_id, warehouse_product_variant_id or product_template_id (+ variant_id). Printful: POST /orders (never with confirm).
입력 스키마
{
"type": "object",
"properties": {
"recipient": {
"type": "object",
"properties": {
"name": {
"description": "Full name.",
"type": "string"
},
"company": {
"description": "Company name.",
"type": "string"
},
"address1": {
"description": "Address line 1.",
"type": "string"
},
"address2": {
"description": "Address line 2.",
"type": "string"
},
"city": {
"description": "City.",
"type": "string"
},
"state_code": {
"description": "State code — required for US, CA and AU.",
"type": "string"
},
"country_code": {
"type": "string",
"description": "Two-letter ISO country code, e.g. US."
},
"zip": {
"description": "ZIP / postal code.",
"type": "string"
},
"phone": {
"description": "Phone number.",
"type": "string"
},
"email": {
"description": "Email address.",
"type": "string"
},
"tax_number": {
"description": "Tax number (required for Brazil: CPF/CNPJ).",
"type": "string"
}
},
"required": [
"country_code"
],
"description": "Ship-to address (name, address1, city, country_code, zip are normally needed)."
},
"items": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"external_id": {
"description": "Your line-item id.",
"type": "string"
},
"variant_id": {
"description": "Catalog variant id (then give files).",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"sync_variant_id": {
"description": "Sync Variant id from your Printful store.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"external_variant_id": {
"description": "Your platform's variant id for a Sync Variant.",
"type": "string"
},
"warehouse_product_variant_id": {
"description": "Warehouse product variant id.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"product_template_id": {
"description": "Product Template to generate print files from (variant_id is then required).",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"description": "Quantity (max 1000 per item)."
},
"retail_price": {
"description": "Retail price shown on the packing slip, e.g. \"29.99\".",
"type": "string"
},
"name": {
"description": "Display name on the packing slip.",
"type": "string"
},
"sku": {
"description": "Your SKU.",
"type": "string"
},
"files": {
"description": "Print files (needed with a plain catalog variant_id).",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"description": "Placement / role of the file, e.g. default, front, back, preview (see the catalog product's files).",
"type": "string"
},
"url": {
"description": "Public URL of the print file. Give url or id.",
"type": "string"
},
"id": {
"description": "Id of a file already in the File Library. Give url or id.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"options": {
"description": "Additional file options.",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Option id, e.g. stitch_color or thread_colors."
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Option value."
}
},
"required": [
"id",
"value"
]
}
},
"filename": {
"description": "File name.",
"type": "string"
}
}
}
},
"options": {
"description": "Product options, e.g. embroidery thread colors.",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Option id, e.g. stitch_color or thread_colors."
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Option value."
}
},
"required": [
"id",
"value"
]
}
}
},
"required": [
"quantity"
]
},
"description": "Order items."
},
"external_id": {
"description": "Your own order id; the order is then also addressable as @<external_id>.",
"type": "string"
},
"shipping": {
"description": "Shipping method id from printful_calculate_shipping_rates (default STANDARD).",
"type": "string"
},
"retail_costs": {
"description": "Retail costs to show on the packing slip.",
"type": "object",
"properties": {
"currency": {
"description": "3-letter currency code.",
"type": "string"
},
"subtotal": {
"type": "string"
},
"discount": {
"type": "string"
},
"shipping": {
"type": "string"
},
"tax": {
"type": "string"
}
}
},
"gift": {
"description": "Gift message for the packing slip.",
"type": "object",
"properties": {
"subject": {
"description": "Gift message title.",
"type": "string"
},
"message": {
"description": "Gift message text.",
"type": "string"
}
}
},
"packing_slip": {
"description": "Custom packing slip.",
"type": "object",
"properties": {
"email": {
"description": "Customer-service email.",
"type": "string"
},
"phone": {
"description": "Customer-service phone.",
"type": "string"
},
"message": {
"description": "Custom packing-slip message.",
"type": "string"
},
"logo_url": {
"description": "Logo / sticker URL (printed monochrome).",
"type": "string"
},
"store_name": {
"description": "Store name override for the return address.",
"type": "string"
},
"custom_order_id": {
"description": "Your own order id to print instead of Printful's.",
"type": "string"
}
}
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"recipient",
"items"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴printful_update_draft_order(order_id, recipient, items, external_id, shipping, ...)
Change a DRAFT order (unsubmitted orders only) — send only the fields to change. CAUTION: if you send `items`, it replaces the list: existing items not included (by id or external_id) are removed. The order stays a draft; nothing is charged. Printful: PUT /orders/{id} (never with confirm).
입력 스키마
{
"type": "object",
"properties": {
"order_id": {
"type": "string",
"description": "Numeric Printful order id, or External ID prefixed with @."
},
"recipient": {
"description": "New ship-to address fields.",
"type": "object",
"properties": {
"name": {
"description": "Full name.",
"type": "string"
},
"company": {
"description": "Company name.",
"type": "string"
},
"address1": {
"description": "Address line 1.",
"type": "string"
},
"address2": {
"description": "Address line 2.",
"type": "string"
},
"city": {
"description": "City.",
"type": "string"
},
"state_code": {
"description": "State code — required for US, CA and AU.",
"type": "string"
},
"country_code": {
"type": "string",
"description": "Two-letter ISO country code, e.g. US."
},
"zip": {
"description": "ZIP / postal code.",
"type": "string"
},
"phone": {
"description": "Phone number.",
"type": "string"
},
"email": {
"description": "Email address.",
"type": "string"
},
"tax_number": {
"description": "Tax number (required for Brazil: CPF/CNPJ).",
"type": "string"
}
}
},
"items": {
"description": "Full replacement item list (see caution).",
"type": "array",
"items": {
"type": "object",
"properties": {
"external_id": {
"description": "Your line-item id.",
"type": "string"
},
"variant_id": {
"description": "Catalog variant id (then give files).",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"sync_variant_id": {
"description": "Sync Variant id from your Printful store.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"external_variant_id": {
"description": "Your platform's variant id for a Sync Variant.",
"type": "string"
},
"warehouse_product_variant_id": {
"description": "Warehouse product variant id.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"product_template_id": {
"description": "Product Template to generate print files from (variant_id is then required).",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"description": "Quantity (max 1000 per item)."
},
"retail_price": {
"description": "Retail price shown on the packing slip, e.g. \"29.99\".",
"type": "string"
},
"name": {
"description": "Display name on the packing slip.",
"type": "string"
},
"sku": {
"description": "Your SKU.",
"type": "string"
},
"files": {
"description": "Print files (needed with a plain catalog variant_id).",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"description": "Placement / role of the file, e.g. default, front, back, preview (see the catalog product's files).",
"type": "string"
},
"url": {
"description": "Public URL of the print file. Give url or id.",
"type": "string"
},
"id": {
"description": "Id of a file already in the File Library. Give url or id.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"options": {
"description": "Additional file options.",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Option id, e.g. stitch_color or thread_colors."
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Option value."
}
},
"required": [
"id",
"value"
]
}
},
"filename": {
"description": "File name.",
"type": "string"
}
}
}
},
"options": {
"description": "Product options, e.g. embroidery thread colors.",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Option id, e.g. stitch_color or thread_colors."
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Option value."
}
},
"required": [
"id",
"value"
]
}
},
"id": {
"description": "Existing line-item id to keep/update.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"quantity"
]
}
},
"external_id": {
"description": "New external id.",
"type": "string"
},
"shipping": {
"description": "New shipping method id.",
"type": "string"
},
"retail_costs": {
"type": "object",
"properties": {
"currency": {
"description": "3-letter currency code.",
"type": "string"
},
"subtotal": {
"type": "string"
},
"discount": {
"type": "string"
},
"shipping": {
"type": "string"
},
"tax": {
"type": "string"
}
}
},
"gift": {
"type": "object",
"properties": {
"subject": {
"description": "Gift message title.",
"type": "string"
},
"message": {
"description": "Gift message text.",
"type": "string"
}
}
},
"packing_slip": {
"type": "object",
"properties": {
"email": {
"description": "Customer-service email.",
"type": "string"
},
"phone": {
"description": "Customer-service phone.",
"type": "string"
},
"message": {
"description": "Custom packing-slip message.",
"type": "string"
},
"logo_url": {
"description": "Logo / sticker URL (printed monochrome).",
"type": "string"
},
"store_name": {
"description": "Store name override for the return address.",
"type": "string"
},
"custom_order_id": {
"description": "Your own order id to print instead of Printful's.",
"type": "string"
}
}
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"order_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴printful_add_file(url, type, filename, visible, options, ...)
Add a print file to the File Library from a public URL (PNG/JPG recommended). If a file with the same URL already exists it is returned instead. Processing is async — poll printful_get_file until status is ok. Printful: POST /files.
입력 스키마
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Public URL Printful downloads the file from."
},
"type": {
"description": "Role of the file, e.g. default or preview.",
"type": "string"
},
"filename": {
"description": "File name to store it under.",
"type": "string"
},
"visible": {
"description": "Show the file in the dashboard's File Library (default true).",
"type": "boolean"
},
"options": {
"description": "Additional file options.",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Option id, e.g. stitch_color or thread_colors."
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Option value."
}
},
"required": [
"id",
"value"
]
}
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"url"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴printful_create_mockup_task(product_id, variant_ids, files, product_template_id, format, ...)
Start generating product mockups for a design on a catalog product — returns a task_key; poll printful_get_mockup_task for the images. Heavily rate-limited (about 10/min for established stores, 2/min for new ones). Printful: POST /mockup-generator/create-task/{id}.
입력 스키마
{
"type": "object",
"properties": {
"product_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Catalog product id."
},
"variant_ids": {
"minItems": 1,
"type": "array",
"items": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"description": "Catalog variant ids to render."
},
"files": {
"description": "Design files per placement. Give files or product_template_id.",
"type": "array",
"items": {
"type": "object",
"properties": {
"placement": {
"type": "string",
"description": "Placement, e.g. front, back (see printful_get_printfiles)."
},
"image_url": {
"type": "string",
"description": "Public URL of the design image."
},
"position": {
"description": "Where the image sits inside the print area, in pixels.",
"type": "object",
"properties": {
"area_width": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"area_height": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"width": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"height": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"top": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"left": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"area_width",
"area_height",
"width",
"height",
"top",
"left"
]
},
"options": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Option id, e.g. stitch_color or thread_colors."
},
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Option value."
}
},
"required": [
"id",
"value"
]
}
}
},
"required": [
"placement",
"image_url"
]
}
},
"product_template_id": {
"description": "Use a saved Product Template instead of files.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"format": {
"description": "Output format (png is transparent).",
"type": "string",
"enum": [
"jpg",
"png"
]
},
"width": {
"description": "Mockup width in px, 50-2000 (default 1000).",
"type": "integer",
"minimum": 50,
"maximum": 2000
},
"options": {
"description": "Mockup option names to generate (see printfiles).",
"type": "array",
"items": {
"type": "string"
}
},
"option_groups": {
"description": "Mockup option groups to generate.",
"type": "array",
"items": {
"type": "string"
}
},
"product_options": {
"description": "Product options, e.g. embroidery thread colors.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
},
"store_id": {
"description": "Store id (numeric) for an ACCOUNT-level token; overrides PRINTFUL_STORE_ID. Not needed with a store-level token.",
"type": "string"
}
},
"required": [
"product_id",
"variant_ids"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}커뮤니티
증거