360 Secure SkillHub
360 安全技能中心

Crossly Listing overrides

该 Skill 指导通过 Crossly API 为多平台商品刊登写入覆盖字段、类目与属性、严格校验、策略预设、字段规则、SKU 预设及刊登/描述模板,并读取 warnings 警告以处理缺失属性或被截断内容;跨平台发布、认证和连接管理由其他 Skill 负责。

分类:营销
crossly
热度 9.14
最近更新 2026-11-30 11:10:12

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add crossly/crossly-listing-overrides
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
crossly-listing-overrides
description
Tailor a Crossly listing per marketplace. Send per-platform overrides (top-level overrides or data.platformOverrides on POST /v1/listings and PATCH /v1/listings/{id}), a canonical categoryId with itemSpecifics checked against GET /v1/categories/{id}/aspects, marketplace taxonomy and required fields (GET /v1/taxonomy/{platform}/required-fields), policy preset picks (policies.shippingPresetId from GET /v1/policies), per-channel field rules (/v1/field-rules), SKU presets (/v1/sku-presets) and listing/description templates (/v1/me/templates), and read the warnings array (aspect_required_missing, aspect_unknown, ebay_field_mapped, description_truncated). Use when a listing needs eBay item specifics, an Etsy taxonomy, a Poshmark department, a different title or price on one channel, or reusable shipping/return policies.

Per-marketplace overrides, rules, presets and templates

A Crossly listing has one master record (title, description, price, brand, condition, photos) and a per-platform override map. An override is what one marketplace gets instead of the master value; a blank override inherits. Around that sit four reusable layers: field rules (rewrite a field for one channel on the way out), policy presets (shipping / return / payment / pricing terms), SKU presets (auto-generated SKUs) and templates (whole listings or description snippets with {tokens}).

Crossposting itself (jobs, polling platformListings, delist) is the crossly-crosspost skill. Auth: crossly-api-setup. Errors, idempotency, pagination, rate limits: crossly-api-conventions. Which marketplaces are connected: crossly-marketplace-connections.

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. Where overrides go on a listing write

POST /v1/listings and PATCH /v1/listings/{id} (scope listings:write) accept the same structured fields next to data / changes:

Field Shape What it does
overrides { [platform]: { [key]: string | number | boolean } } (string values up to 20,000 chars) Per-marketplace keys, stored verbatim (values become strings). Always wins over anything derived.
categoryId canonical id from GET /v1/categories/search (1-200 chars) Sets the master category and fills each marketplace's category keys from Crossly's category map. Unknown id: 422 category_not_found.
itemSpecifics { [aspectName]: string | string[] } Validated against the category's aspects, stored on the master and fanned to every marketplace that takes aspects.
strictItemSpecifics boolean Turn a missing required aspect into a 422 instead of a warning.
condition new, like_new, good, fair, poor, refurbished Master condition, mapped to each marketplace's own value (fill-only).
brand string, 1-120 Master brand.
policies { returnPresetId?, shippingPresetId?, paymentPresetId? } (uuid or null) Policy preset picks (section 4). null = the marketplace's own default. Unknown id: 422 policy_preset_not_found.

On create you may also put a map in data.platformOverrides; it is the base, and top-level overrides keys win over it. On PATCH, send overrides as the top-level overrides field: they merge into the stored map key by key. Everything derived from categoryId / condition only fills blanks, so a seller's explicit per-platform choice is never overwritten.

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

const cats = await crossly.taxonomy.canonical.search({ q: 'jeans', limit: 5 }) as { data: { id: string; path: string }[] };
const aspects = await crossly.taxonomy.canonical.aspects(cats.data[0].id) as {
  data: { name: string; required: boolean; cardinality: 'SINGLE' | 'MULTI'; values: string[]; freeText: boolean }[];
};

const res = await crossly.listings.create({                        // POST /v1/listings
  inventoryItemId: item.id,
  platforms: ['ebay', 'poshmark', 'etsy'],
  data: { title: "Levi's 501 Selvedge 32x32", description: '1990s, hemmed.', price: 84, weightLb: 2 },
  categoryId: cats.data[0].id,
  itemSpecifics: { Brand: "Levi's", 'Size Type': 'Regular', 'Inseam': '32 in' },
  condition: 'good',
  overrides: {
    ebay: { title: "Levi's 501 Selvedge Big E Redline Jeans 32x32 Vintage 90s", subtitle: 'Made in USA' },
    poshmark: { department: 'Men', category: 'Jeans', price: '89' },
    etsy: { whoMadeIt: 'someone_else', whenMadeIt: '1990_1999' },
  },
  policies: { returnPresetId: null },                               // leave returns to each marketplace
}, { idempotencyKey: crypto.randomUUID() });
curl -X PATCH https://crossly.net/api/v1/listings/$LISTING_ID \
  -H "Authorization: Bearer $CROSSLY_PAT" -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"changes":{},"platforms":["ebay"],"overrides":{"ebay":{"conditionDescription":"Light fade on the left knee"}}}'

With platforms set on a PATCH, the master columns stay as they are and only those marketplaces get the edit. Omit it to update the master and every live copy.

2. Which keys each marketplace reads

GET /v1/taxonomy/{platform}/required-fields?categoryId= (scope listings:read, SDK crossly.taxonomy.requiredFields(platform, { categoryId })) returns the normalized schema for ebay, etsy, poshmark, mercari, facebook, depop, grailed, vinted, whatnot, vestiaire, offerup, curtsy: each field's key, label, required, enumValues, master (true = a master field satisfies it) plus inlineAspects. Other platforms answer 400 unsupported_platform. Use it instead of hard-coding.

What blocks a publish (an override key, or the master field with the same meaning):

Platform Required before publish
ebay categoryId, brand, condition (conditionId override or master), price
etsy taxonomyId, price, whoMadeIt (i_did, someone_else, collective), whenMadeIt
shopify productType, price
poshmark department, category, subcategory (when a category is set), size, brand, condition, price
mercari categoryId, condition, price, shippingPayerId
depop productType (Depop's category slug, e.g. tshirts), condition, price
grailed department, categoryPath, designerId, condition, size, price
vinted catalogId, brandId (not for a brandless item), status (its condition), sizeId (only when the catalog has sizes), price
whatnot categoryId, a condition attribute (master condition also satisfies it), price
vestiaire category, brand, condition, material, color, price
facebook categoryId, condition, price
offerup condition, price (category and ZIP resolve on their own)
curtsy department, category, size, brand, condition, price
amazon productType, condition, price
walmart productCategory, productIdType, price
tcgplayer categoryId (the game), skuId
stockx productId, variantId
alias catalogId, size
poizon skuId (preAging for a pre-sale listing)
tiktok_shop categoryId (a leaf)
discogs releaseId
crossly price, plus package weight and dimensions on calculated shipping

Package weight is a separate rule (shipping-policy driven); see "Package weight" in crossly-crosspost.

Every platform's map also takes title, description and price (dollars, as a string) for that marketplace only. Optional keys the marketplace tabs accept beyond those:

  • ebay: listingFormat (FIXED_PRICE, AUCTION), paymentPolicyId, shippingPolicyId, returnPolicyId, storeCategoryId, secondaryCategoryId, itemSpecifics, subtitle, conditionDescription, conditionDescriptors, upc, ean, mpn, isbn, epid, originalRetailPrice, quantityLimitPerBuyer, lotSize, charityId + donationPercentage (10-100 in steps of 5; ids from GET /v1/taxonomy/ebay/charities), scheduledListingStartTime, auctionStartPrice, auctionReservePrice, packageWeightAndSize, compatibilityList, videoIds, minimumAdvertisedPrice, participatesInAuthenticityGuarantee and the EU compliance keys (responsiblePersons, productCompliancePolicies, energyEfficiencyLabel, repairScore, extendedProducerResponsibility).
  • etsy: isSupply, materials, occasions, recipients (comma-separated), shippingTemplateId, propertyValues.
  • poshmark: sizeSystem (us, eu, uk, au), nwt. curtsy: subcategory, shippingCost, nwt.
  • mercari: brandId, shippingClass. depop: gender, age, parcelSize, style, source.
  • grailed: designers, styles. vinted: packageSize, packagePresetId.
  • whatnot: shippingProfileId, startingBid, reservePrice. vestiaire: universe, page, vintage, facets.
  • offerup: categoryId, zipcode, packageSize. facebook: deliveryMethod (IN_PERSON, DOOR_PICKUP, SHIPPING), disableComments.
  • amazon: asin. walmart: countryOfOriginAssembly.

Title limits the forms enforce: eBay, Poshmark, Mercari, Depop 80; Grailed 70; Facebook, Vinted 100; Etsy 140; Whatnot, Vestiaire 200; Shopify 255.

3. Categories and item specifics

Endpoint Scope SDK
GET /v1/categories/search?q=&path=&limit= (limit 1-100) listings:read crossly.taxonomy.canonical.search(params)
GET /v1/categories/{id}: the category per marketplace listings:read crossly.taxonomy.canonical.get(id)
GET /v1/categories/{id}/aspects?valuesLimit= (0-500, default 50) listings:read crossly.taxonomy.canonical.aspects(id, params)
GET /v1/taxonomy/{platform}/categories?parent= listings:read crossly.taxonomy.categories(platform)
GET /v1/taxonomy/{platform}/categories/{id}/children listings:read crossly.taxonomy.children(platform, id)
GET /v1/taxonomy/{platform}/categories/{id}/aspects listings:read crossly.taxonomy.aspects(platform, id)
GET /v1/taxonomy/{platform}/suggest?q= listings:read crossly.taxonomy.suggest(platform, q)

The canonical aspects carry required and cardinality from the eBay category the concept maps to, freeText (any text) or known values, and marketplaces (each marketplace's attribute name). The marketplace taxonomy routes are live for eBay and Etsy and served from harvested trees for the cookie platforms (Etsy suggest returns an empty list: browse its tree). A marketplace that cannot be reached answers 502 taxonomy_fetch_failed.

To pin a marketplace's own category instead of the mapped one, put its key in overrides: ebay.categoryId, etsy.taxonomyId, vinted.catalogId, depop.productType and so on. Once any category key is set for a platform, categoryId no longer fills that platform.

4. Warnings and 422s

Every listing write may return warnings: [{ code, message, aspect?, field? }]. They never block the write:

Code Meaning
aspect_required_missing A required eBay aspect for the category was not sent (a 422 with strictItemSpecifics: true).
aspect_unknown The aspect is not in the category; it is kept for marketplaces that use it.
ebay_field_mapped An eBay-shaped field (listingPolicies.* ids, inline shipping) was mapped into Crossly's model.
ebay_field_ignored An eBay-shaped field was ignored, e.g. packageWeightAndSize when the listing has its own weight.
description_truncated The HTML description was saved but ends mid-tag or unbalanced.

The schema enum also lists item_specifics_invalid, aspect_cardinality and aspect_value_too_long: in practice those refuse the write as 422 item_specifics_invalid with details.problems[] (each { code, aspect, message }). Limits: at most 100 aspects, names up to 65 characters, values up to 200, one value for a SINGLE aspect. Treat unknown warning codes as informational.

5. Policy presets

Scopes: policy-presets:read (list, get, accounts, GET /v1/policies, POST /v1/geo/location-check) and policy-presets:write (create, update, delete, duplicate, applications). Presets are per store: send X-Storefront-Id (SDK opts.storefrontId) or the default store is used.

Endpoint SDK crossly.policyPresets.*
GET /v1/policies: presets grouped by kind with each defaultPresetId grouped()
GET /v1/policy-presets?kind=return|shipping|payment|pricing list(params)
POST /v1/policy-presets { kind, name (1-100), policy, isDefault? } create(body)
GET /v1/policy-presets/{id} / PATCH / DELETE get, update, delete
POST /v1/policy-presets/{id}/duplicate duplicate(id)
GET /v1/policy-presets/accounts accounts()
PUT /v1/policy-presets/{id}/applications setApplications(id, body)
POST /v1/geo/location-check checkLocation(body)
const preset = await crossly.policyPresets.create({
  kind: 'return',
  name: '30-day returns, buyer pays',
  policy: { returnsAccepted: true, returnPeriodDays: 30, returnShippingCostPayer: 'BUYER', refundMethod: 'MONEY_BACK' },
}, { idempotencyKey: crypto.randomUUID() }) as { id: string; incomplete: boolean; warnings: string[] };

await crossly.listings.update(listingId, { changes: {}, policies: { returnPresetId: preset.id } },
  { idempotencyKey: crypto.randomUUID() });

returnPeriodDays is 14, 30, 60 or 180; a shipping policy needs handlingTimeDays (1-30) and domestic.costType (flat, calculated, free, with flatRateCents in cents). An invalid body is 422 validation_error with details.fields. Deleting a preset moves its listings to the default of that kind (reassignedListings). applications[] sets, per account, mode: push (Crossly sends it), marketplace (leave the marketplace's own setting, optionally an eBay business policy id) or off (pricing). A listing that picks nothing follows the current default, so changing the default moves those listings too. Policy sync on eBay/Etsy accounts: crossly-marketplace-connections.

6. Field rules

A field rule rewrites one field for one channel (platform, optionally one accountSlot 1-50) as the listing goes out. The master listing never changes, a per-listing override still wins, and rules never touch price (pricing is a Pricing policy). Scopes: field-rules:read / field-rules:write. SDK crossly.fieldRules.list|get|create|update|delete|reorder|preview.

  • target: title, description, attribute (targetKey one of brand, size, color, condition, material, style, pattern, department, gender, customLabel) or item_specific (targetKey = aspect name).
  • actions (1-30, run in order): set, combine (template), append / prepend (with separator), replace (find, mode: literal|regex), extract (pattern, group, onNoMatch), lookup (entries[{from,to}] up to 500), trim (max, ellipsis), case (title|upper|lower|sentence), strip_html, strip_emoji, collapse_whitespace. An unsafe regex is a 400.
  • conditions: { match: all|any, items[≤20]: { field, op, value } } on category, brand, price, tag, title, description, condition, size, color, sku, material. Conditions test the source listing, not a previous rule's output.
  • Rules run by position; stopAfter ends the chain. POST /v1/field-rules/reorder takes up to 500 { id, position }.
await crossly.fieldRules.create({
  name: 'eBay title suffix', platform: 'ebay', target: 'title',
  actions: [{ type: 'append', value: '| Fast Shipping' }, { type: 'trim', max: 80 }],
  conditions: { match: 'all', items: [{ field: 'category', op: 'contains', value: 'Jeans' }] },
}, { idempotencyKey: crypto.randomUUID() });

const out = await crossly.fieldRules.preview({ platform: 'ebay', listingId });  // POST /v1/field-rules/preview: nothing is saved

7. SKU presets

Per store (X-Storefront-Id). listings:read for GET /v1/sku-presets, GET /v1/sku-presets/{id} and POST /v1/sku-presets/preview; listings:write for create, PATCH, DELETE and PUT /v1/sku-presets/default. SDK crossly.skuPresets.list|get|create|update|delete|setDefault|preview.

A template is literal text plus {token}s: item_name, brand, category, condition, color, size, price, source, list_date (YYYYMMDD), year, month, seq (running count), rand (4 characters). Values are uppercased and stripped to A-Z0-9; empty tokens drop with their separator. The store's default preset fills the SKU of any new listing created without one; setDefault(null) turns that off.

curl -X POST https://crossly.net/api/v1/sku-presets/preview \
  -H "Authorization: Bearer $CROSSLY_PAT" -H "Content-Type: application/json" \
  -d '{"template":"{brand}-{size}-{seq}","fields":{"brand":"Levi'\''s","size":"32x32"}}'

8. Listing and description templates

/v1/me/templates: inventory:read for list, get, suggest and render; inventory:write for create, PATCH, DELETE, share and import. GET /v1/public/templates/{token} needs no auth. SDK crossly.templates.list|get|suggest|render|create|patch|remove|share|revokeShare|importJson|fetchShared.

  • scope (listing = a whole listing, description = a snippet) and name (1-120) are required on create (400 scope_required, name_required); at most 200 templates per seller (429 template_limit_reached).
  • A listing template can carry title, description, up to 5 titleVariants / descriptionVariants (A/B), brand, condition, size, weightOz, dimensions, categoryPath, tags and its own platformOverrides. defaultForCategory + isDefault make it the one GET /v1/me/templates/suggest?category= returns ({ template: null } when there is none).
  • POST /v1/me/templates/{id}/render with { context, variantIndex? } returns title, description, tokensUsed and missingTokens. Tokens use single braces: {item_name}, {brand}, {model}, {category}, {condition}, {color}, {size}, {material}, {style}, {price}, {sku}, {year}, {month}, {date}.
  • POST /v1/me/templates/import takes one template or an array; bad entries are skipped and counted (imported, skipped).

Rendering is read-only: apply the result yourself by sending it in data on POST /v1/listings.

Rules

  • Put marketplace-specific values in overrides.<platform>, never in the master: the master feeds every other marketplace.
  • Send overrides at the top level on PATCH; derived values only fill blanks, so read the listing first if you mean to replace an existing override.
  • Call GET /v1/taxonomy/{platform}/required-fields (or the table above) before crossposting, and expect the missing ones to come back in skipped.
  • Read warnings on every write; turn on strictItemSpecifics when a missing eBay aspect must stop the write.
  • Policy presets and SKU presets are per store: send X-Storefront-Id for a non-default store.
  • Send an Idempotency-Key on every write.

Docs: https://crossly.net/docs/categories-and-sizes, https://crossly.net/docs/policy-presets, https://crossly.net/docs/listing-templates, https://crossly.net/docs/api-templates, https://crossly.net/docs/ebay, https://crossly.net/docs/api-listings