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
- Create a free Crossly account: https://crossly.net/register
- 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. - Export it as
CROSSLY_PATand send it asAuthorization: Bearer $CROSSLY_PATtohttps://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.
offersare live Crossly listings and market asks withpriceCents: 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/refreshruns matching now. An identifier (UPC, style code, catalogue number) that resolves to exactly one product links it; otherwise likely products come back assuggestions.GET /v1/catalog-matcheslists pending suggestions across inventory (limit,before);GET /v1/inventory/{id}/catalog-matchesshows one item's binding and suggestions.POST /v1/catalog-matches/{id}/confirmlinks;POST /v1/catalog-matches/{id}/dismissrejects (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
hintmatters: 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". possibleDuplicateslists 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/recentlists 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; inautoa confident match becomes a draft. Answersverdict(accepted,review,none) andconfidence. Drafts only, never published.POST /v1/magic/auto/runs/{runId}scores an existing run;POST /v1/magic/auto/runs/{runId}/swipesrecords kept and rejected keys;POST /v1/magic/auto/decisions/{decisionId}/undodeletes the unpublished draft an automated decision made.GET/PUT /v1/magic/auto/settingsread 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 shoessearches names and paths;?path=Clothing & Shoes > Menwithoutqbrowses one branch, withmeta.branchesnaming the next level so you can walk down to a leaf.limit≤100. The returned ids are what listings take ascategoryId.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,freeTextor knownvalues, and the attribute name each marketplace uses. Send them asitemSpecificsonPOST /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 withoutsearch). 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) andGET /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: falsewhen the grader has no record. Check a slab's cert before listing it as graded.GET /v1/grading/price-bookandGET /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 anIdempotency-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
categoryIdanditemSpecificson 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
