360 Secure SkillHub
360 安全技能中心

Crossly Catalog lookup

该 Skill 提供 Crossly 商品目录 API 的调用流程:用条码、款号或应用标识及图片扫描识别商品,浏览市场商品和变体报价,将库存匹配到目录产品,查询各平台类目、必填字段与商品属性,并检查评分价值和证书。扫描只生成未发布草稿。

分类:营销
crossly
热度 13.16
最近更新 2026-11-30 11:07:06

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add crossly/crossly-catalog-lookup
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
crossly-catalog-lookup
description
Identify an item and describe it the way every marketplace wants. Look up a barcode, style code, LEGO set, TCGplayer, Discogs or ASIN id (GET /v1/catalog/lookup), browse the Crossly market catalog and its price book (/v1/market/products, variants book and tiers), link inventory to a catalog product (catalog-matches), scan photos with Magic List (POST /v1/magic/scan, synthesize a draft, automated matching), pick Crossly canonical categories and item specifics (/v1/categories/search, aspects), per-marketplace taxonomy and required fields (/v1/taxonomy/{platform}/required-fields), brand and size reference lists, grading worth and cert checks, and search across the business (/v1/search). Use when a seller integration must turn a barcode or photo into a listing, choose categories or item specifics, or price from comps.

Catalog, taxonomy and identification

A seller integration usually needs three answers before it lists something: what is it (identifier or photo), where does it go (category and item specifics on each marketplace) and what is it worth (comps and the market book). Crossly answers all three from one catalog, so a listing built this way maps cleanly to every marketplace.

Scopes, per group below. Auth: crossly-api-setup. Errors and rate limits: crossly-api-conventions.

Setup

  1. Create a free Crossly account: https://crossly.net/register
  2. Create a personal access token at https://crossly.net/settings/api/tokens/new (guide: https://crossly.net/guides/personal-access-tokens). Use a crossly_pat_test_ token against the sandbox while building.
  3. Export it as CROSSLY_PAT and send it as Authorization: Bearer $CROSSLY_PAT to https://crossly.net/api/v1/*. Full docs: https://crossly.net/docs

1. Identify by identifier

import { createClient } from '@crossly/sdk';
const crossly = createClient({ pat: process.env.CROSSLY_PAT! });

const hit = await crossly.catalog.lookup('gtin', '0194956623456') as {   // GET /v1/catalog/lookup
  data: { identifier: { namespace: string; value: string };
          offers: { kind: 'listing' | 'ask'; priceCents: number; currency: string; condition?: string;
                    title?: string; url: string; available?: number }[] };
  meta: { count: number; truncatedAt: number; identifiersAccepted: number };
};
curl -sS "https://crossly.net/api/v1/catalog/lookup?namespace=style_code&value=DD1391-100" \
  -H "Authorization: Bearer $CROSSLY_PAT"
  • Scope catalog:read (marketplace data only; it exposes nothing about the seller's own account).
  • namespace: gtin, style_code, lego_set, tcgplayer, discogs, asin; value ≤64 chars.
  • Identifier-first, no fuzzy fallback. A GTIN is checked against its GS1 check digit and normalised to 14 digits, so a UPC-A and its EAN-13 twin resolve to the same product. An identifier that doesn't validate returns no offers rather than a guess. Never retry with a "close" barcode.
  • offers are live Crossly listings and market asks with priceCents: a price signal for sourcing, not a verdict.

The market catalog

The Crossly market is the shared product catalog (products → variants such as size or grade). Scope catalog:read.

Endpoint SDK (crossly.market.*) Use
GET /v1/market/products listProducts Approved products: search (name, brand, style code), categorySlug, graded=true, grader + minGrade, page, limit ≤100. lowestAskCentsFrom is the cheapest ask in any condition or grade, not "the" price.
GET /v1/market/products/{id} getProduct One product with its variants and images.
GET /v1/market/products/{id}/related related Related products.
GET /v1/market/variants/{id}/book book Bids and asks for one variant at one condition (default DS) and gradeKey (absent = ungraded).
GET /v1/market/variants/{id}/tiers tiers Price per grade tier: a graded slab is its own market.
GET /v1/market/graders graders Graders and their grade vocabularies (needed to build a valid tier query).

Browsing is windowed: past the first 800 products a page comes back empty, so search or filter instead of walking the catalog.

Link inventory to a catalog product

Linking an inventory item to a catalog product (market_sku_id) is what makes sold comps and market prices apply to it. Scope inventory:read / inventory:write; SDK crossly.catalogMatches.*.

  • POST /v1/inventory/{id}/catalog-matches/refresh runs matching now. An identifier (UPC, style code, catalogue number) that resolves to exactly one product links it; otherwise likely products come back as suggestions.
  • GET /v1/catalog-matches lists pending suggestions across inventory (limit, before); GET /v1/inventory/{id}/catalog-matches shows one item's binding and suggestions.
  • POST /v1/catalog-matches/{id}/confirm links; POST /v1/catalog-matches/{id}/dismiss rejects (that product is never suggested for the item again). Nothing is linked until confirmed, so ask the seller when the match isn't certain.

2. Identify from photos (Magic List)

Magic List searches eBay by image and the seller's connected marketplaces by text, then builds a draft from the matches the seller keeps. Scopes listings:write (scan, synthesize, automated matching) and listings:read (recent scans, drafts, settings).

const scan = await crossly.magic.scan({                    // POST /v1/magic/scan
  imageUrls: ['https://cdn.example.com/front.jpg', 'https://cdn.example.com/tag.jpg'],   // 1-4
  hint: '1990s single stitch, size L',                     // optional, 1-120 chars
}, { idempotencyKey: crypto.randomUUID() }) as { runId: string; topHits: unknown[]; possibleDuplicates: unknown[] };

const draft = await crossly.magic.synthesize(scan.runId, { // POST /v1/magic/scan/{runId}/synthesize
  confirmedMatchKeys: ['<key of each kept match>'],
  chosenPriceCents: 4500,                                  // integer cents
  note: 'Small stain on the left sleeve',                  // ≤300 chars, wins over the matches
}, { idempotencyKey: crypto.randomUUID() }) as { draftId: string; payload: Record<string, unknown> };
  • The hint matters: it is part of the scan cache key and decides which eBay hit becomes the item's identity. Use it for year, edition, colourway or "graded PSA 9".
  • possibleDuplicates lists items the seller may already have; check it before creating another.
  • Scanning more than one photo reads the photos with the seller's own AI vision provider and spends their monthly photo-read allowance (one per photo: Free 10, Starter 100, Pro 500, Business 10,000, Scale 100,000). A single-photo scan doesn't, and re-scanning the same photos reuses the earlier read.
  • Synthesize writes a draft, never publishes. GET /v1/magic/drafts/{draftId} reads it back; publish through the listing routes (crossly-crosspost). GET /v1/magic/recent lists recent scans.
  • A failed scan is 500 scan_failed; plan refusals keep their own status and code.

Automated matching (matchMode / mode: off, auto, review_all; default review_all):

  • POST /v1/magic/auto/items { imageUrls, hint?, itemRef?, mode? } scans one item and matches it in one call; in auto a confident match becomes a draft. Answers verdict (accepted, review, none) and confidence. Drafts only, never published.
  • POST /v1/magic/auto/runs/{runId} scores an existing run; POST /v1/magic/auto/runs/{runId}/swipes records kept and rejected keys; POST /v1/magic/auto/decisions/{decisionId}/undo deletes the unpublished draft an automated decision made.
  • GET / PUT /v1/magic/auto/settings read and set the remembered mode.

For many items photographed at once, use bulk batches (crossly-bulk-operations).

3. Category and item specifics

Crossly's canonical categories (use these on listings)

Scope listings:read. SDK crossly.taxonomy.canonical.*.

  • GET /v1/categories/search?q=running shoes searches names and paths; ?path=Clothing & Shoes > Men without q browses one branch, with meta.branches naming the next level so you can walk down to a leaf. limit ≤100. The returned ids are what listings take as categoryId.
  • GET /v1/categories/{id} returns the category with the category it maps to on each marketplace.
  • GET /v1/categories/{id}/aspects?valuesLimit=50 (0-500) returns the item specifics: required or optional (from the mapped eBay category), cardinality, freeText or known values, and the attribute name each marketplace uses. Send them as itemSpecifics on POST /v1/listings.

Pick the most specific leaf: the deeper the category, the better every marketplace match. Mappings are reviewed by people where they exist, else matched to the closest live category, so show the seller the per-marketplace result on general marketplaces (eBay, Facebook).

Per-marketplace taxonomy

Scope listings:read. SDK crossly.taxonomy.*.

Endpoint SDK Use
GET /v1/taxonomy/{platform}/categories (?parent=) categories(platform) A marketplace's own tree, top level or one level down.
GET /v1/taxonomy/{platform}/categories/{id}/children children(platform, id) Direct children.
GET /v1/taxonomy/{platform}/categories/{id}/aspects aspects(platform, id) eBay item specifics, Etsy properties, fixed enums on session marketplaces.
GET /v1/taxonomy/{platform}/suggest?q= suggest(platform, q) Categories matching a phrase: eBay live, harvested trees for Poshmark, Mercari, Depop, Grailed, Vinted, Whatnot, Vestiaire, OfferUp, Facebook, Curtsy. Etsy answers an empty list.
GET /v1/taxonomy/{platform}/required-fields (?categoryId=) requiredFields(platform, …) Everything the seller must fill before crossposting there.
GET /v1/taxonomy/ebay/charities?q= ebayCharities(…) charityOrgId for overrides.ebay.charityId.

Per-marketplace category choices go in that platform's overrides (crossly-listing-overrides). Some marketplaces only accept certain categories (Depop no electronics, Vestiaire fashion only, Discogs recorded music, TCGplayer and Cardmarket cards, BrickLink LEGO) and a catalog marketplace needs its own product id; Crossly refuses those targets rather than risk the account.

Reference lists

Any valid token, no scope. SDK crossly.reference.*. Static, safe to cache for hours.

  • GET /v1/categories: the legacy two-level tree { main, sub }.
  • GET /v1/brands?search=levi: up to 50 brand names (first 50 alphabetically without search). Free-text brands are still accepted on writes.
  • GET /v1/styles, GET /v1/patterns, GET /v1/departments, GET /v1/genders, GET /v1/types (eBay item-specific values) and GET /v1/size-systems (US, UK, EU, AU, FR, KR): search, limit (1-500, default 50).
  • GET /v1/reference/countries, GET /v1/reference/postal/{country}/{code} for addresses.

Sizes belong to categories on most fashion marketplaces (Poshmark, Vinted, Grailed, Depop): re-check the size whenever the category changes.

Grading (cards and collectibles)

Scopes inventory:read / inventory:write. SDK crossly.grading.*.

  • GET /v1/grading/worth/{inventoryItemId}: raw value vs what each grade is worth at each grader, against the cost, in cents. It never predicts the grade.
  • POST /v1/grading/verify-cert { graderSlug, certNumber }: looks a cert up with its grader; found: false when the grader has no record. Check a slab's cert before listing it as graded.
  • GET /v1/grading/price-book and GET /v1/grading/rate-card: graders, services and per-card prices (cents; null = paused).
  • GET /v1/grading/runs, POST /v1/grading/runs/{id}/reserve (needs a full-access token and an Idempotency-Key; charged only if the run locks), GET /v1/grading/submissions, POST /v1/grading/submissions/{id}/cancel, POST /v1/grading/submissions/{id}/shipped.

Find something the seller already has

GET /v1/search?q= searches inventory, listings, orders, sales, customers, conversations, offers, shipments and returns at once. Exact identifiers (SKU, barcode, order or tracking number, marketplace listing id or a pasted listing URL) rank first. Operators: sku:, order:, buyer:, tracking:, in:orders, status:, platform:. types narrows the groups, limit 1-50 hits per group. It needs any one read scope, and only returns the groups the token's scopes cover (inventory:read → inventory, orders:read → orders, shipments, returns…). SDK crossly.search.query({ q }). Run it before creating an item from a scan to avoid duplicates.

Rules

  • Prefer an identifier over a photo, and a photo over a title; never fuzzy-match barcodes.
  • Confirm catalog matches and Magic List keeps with the seller unless the identifier resolved to exactly one product.
  • Put Crossly's canonical categoryId and itemSpecifics on the listing; override per marketplace only when the mapping is wrong.
  • Money here is integer cents (priceCents, chosenPriceCents, grading prices) unless the field says otherwise.
  • Cache reference lists; don't call them per keystroke without a debounce.

Docs: https://crossly.net/docs/magic-list · https://crossly.net/docs/categories-and-sizes · https://crossly.net/docs/api-reference-data · https://crossly.net/docs/vault-and-grading · https://crossly.net/docs/market-listing