printful-listing-auditor
Read-only audit of the products and variants held in a Printful store using the Printful REST API (api.printful.com). Use to check which listings have a validated print file attached, which are live versus ignored, which lack price or SKU, and to review embroidery or thread colour options before publishing. Creates, changes and deletes nothing.
Latest: v1.0.0
- Introduces a read-only auditor for Printful store products and variants.
- Reports print-file validation, live/ignored status, prices, SKUs, and embroidery or thread-colour options.
- Flags missing or invalid print files and missing prices or SKUs, including live variants without validated print files.
- Supports text and JSON reports, with
--strictto exit non-zero when findings exist. - Uses the Printful REST API and requires a
sync_products/readtoken.
Printful Listing Auditor
Audit the listings held in a Printful store using only the Printful REST API (https://api.printful.com). This skill is strictly read-only: it never creates, changes or deletes anything.
Use printful-management for general account work (orders, webhooks, tax,
shipping, warehouse, reports, exports). This skill is the read-only listing
review that pairs with printful-product-builder and printful-design-attacher.
Companion script
scripts/audit_printful_listings.py
Requirements
- Python 3.9+ (standard library only).
- Environment:
PRINTFUL_API_TOKEN(required) - scope:sync_products/readPRINTFUL_STORE_ID(optional) - sent as theX-PF-Store-Idheader
Workflow
- Stores -
GET /storeslists every store and its type, so the audit states which shop it is looking at before reporting on it. - Products -
GET /sync/products?status=alllists Sync Products. On a native store, fall back toGET /store/products.GET /sync/products/{id}returns the product with all of its Sync Variants. - Variants - for each variant, record:
- attached print files (excluding
previewimages) with their file id, filename and validationstatus retail_price,sku,is_ignored,synced- embroidery and thread colour
options
- attached print files (excluding
- Findings - flag:
- a variant with no print file attached
- a file whose status is not
ok(Printful could not process it) - a variant with no retail price or no SKU
- a LIVE product (not
is_ignored) whose variants have no validated print file - this is the risk that matters, because such a variant can be sold unprinted
- Report - print a per-product, per-variant table and the finding count.
--jsonemits the same data as JSON;--strictexits non-zero when findings exist so it can gate a publish step.
Usage
python scripts/audit_printful_listings.py
python scripts/audit_printful_listings.py --strict
python scripts/audit_printful_listings.py --product-id 501345091 --json
Guardrails
- Read-only. Do not add a write path to this skill.
- Never print the API token.
- Report findings as they are; do not silently fix a listing from this skill.
