Manage Crossly inventory
An inventory item is the physical thing you own; a listing is one way of selling it. One item stays one item whether it is live on three marketplaces, sitting in a draft or waiting on a shelf. That link is how Crossly keeps stock honest: a sale anywhere lowers the one count, and at zero every other listing comes down.
The item holds the physical facts: stock, cost, SKU, location, weight, photos. Price, description and category belong on the listing (one item can be priced differently per marketplace). There is no defaultPrice or defaultDescription on an item; set those on POST /v1/listings (see the crossly-crosspost skill).
Scopes: inventory:read / inventory:write; channel-inventory:read / channel-inventory:write for per-account caps; analytics:read for aging and sell-through. Auth: crossly-api-setup. Pagination, errors, rate limits, idempotency: 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
Create and update
import { createClient } from '@crossly/sdk';
const crossly = createClient({ pat: process.env.CROSSLY_PAT! });
const item = await crossly.inventory.create({ // POST /v1/inventory -> 201
defaultTitle: 'Nike Air Max 90, size 10', // required, 1-140 chars
sku: 'NK-AM90-10',
quantity: 3, // available stock, default 1
brand: 'Nike', size: '10', condition: 'good',
costBasisCents: 4200, // what one unit cost you, integer cents
warehouseLocation: 'Garage, rack B', storageBin: 'B-14',
weightLb: 3, weightOz: 4,
images: ['https://cdn.example.com/am90-1.jpg'],
labels: ['consignment'],
}, { idempotencyKey: crypto.randomUUID() }) as { id: string };
await crossly.inventory.update(item.id, // PATCH /v1/inventory/{id}, partial
{ storageBin: 'C-02', quantity: 2 },
{ idempotencyKey: crypto.randomUUID() });
curl -X POST https://crossly.net/api/v1/inventory \
-H "Authorization: Bearer $CROSSLY_PAT" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"defaultTitle":"Nike Air Max 90, size 10","sku":"NK-AM90-10","quantity":3,"costBasisCents":4200}'
Body fields (create and update take the same set; update is partial):
| Field | Type / limit | Notes |
|---|---|---|
defaultTitle |
string 1-140, required on create | The item's name. Listings carry their own titles. |
sku |
string ≤80 | Optional. Not enforced unique; check with sku-exists first. |
quantity |
integer ≥0 | Available stock. Reserved units of open orders are kept on top of it. |
costBasisCents |
integer ≥0 or null | Unit cost in cents: net profit's cost of goods. |
originalPrice |
number or numeric string, dollars | The manually entered unit cost (the dashboard's Cost field). When set it wins over costBasisCents. Not a retail or "was" price. |
brand ≤80, size ≤40, condition ≤40, material, style, pattern, department, gender, itemType (≤200), sizeSystem ≤50, color[] |
strings | Item specifics. Condition values: new, like_new, good, fair, poor, refurbished. |
tags[], labels[] |
strings | Labels are your private organising tags. |
images[], videoUrl |
URLs | |
notes ≤8000 |
string | Private. |
warehouseLocation ≤200, storageBin ≤80, storageNote ≤500 |
strings | Where it sits. |
weightLb, weightOz, dimensionLIn, dimensionWIn, dimensionHIn |
numbers ≥0 | Package size; a weight is needed where a label is priced from the package. |
supplier |
object or null | { name (1-80, required), kind: "retailer" | "wholesale", productUrl, productId, sku, handlingTimeDays (0-30), shipFromRegion ("US", "US-CA") }. Decides which marketplaces a dropshipped item may be crossposted to; Crossly never orders from the supplier. |
Create counts toward the plan's monthly new-item allowance (Free 25, Starter 150, Pro 500, Business 10,000, Scale 100,000); over it the call is 402 plan_limit_reached. A PATCH with nothing to change is 400 no_changes; an item that isn't yours is 404 not_found.
quantity on PATCH is not written raw: it goes through the same path as bulk-quantity, so every live listing is pushed the new number (and delisted at 0).
Archive, restore, delete, merge
| Action | Endpoint | Notes |
|---|---|---|
| Archive one | DELETE /v1/inventory/{id} |
Soft: status becomes archived, history and costs stay, listings are left alone. SDK crossly.inventory.archive(id). |
| Archive many | POST /v1/inventory/bulk-archive { ids } |
SDK bulkArchive. |
| Restore | POST /v1/inventory/bulk-restore { ids } |
Back to active, or sold_out when no stock. Returns restoredIds. There is no single-item restore; send one id. |
| Delete | POST /v1/inventory/bulk-delete { ids, force?, deleteListings? } |
Permanent. Items linked to listings answer 409 inventory_linked_to_listings with details.blockedCount, cascadeByPlatform and cascadeTotal; show that to the seller, then retry with force: true. deleteListings: true also ends those listings. |
| Merge | POST /v1/inventory/merge { keepItemId, mergeItemIds (1-50) } |
Same physical item twice → one. Listings, sales and orders follow the kept item; the others are archived. Stock is not summed. |
Bulk verbs on many ids are covered in crossly-bulk-operations.
Find items
GET /v1/inventory (crossly.inventory.list(...)) pages with page, limit (max 100) and filters search, status (active, sold_out, archived), kind (physical, web3), platforms (comma-separated, items live on any of them) with platformMode=not_listed to invert, assignee, sku (exact) and updatedSince.
- SKU lookup:
GET /v1/inventory?sku=NK-AM90-10returns the item a supplier SKU maps to.GET /v1/inventory/sku-exists?sku=...answers{ exists }before you create (crossly.inventory.skuExists). - Sync:
GET /v1/inventory?updatedSince=<ISO 8601>returns rows created or changed at or after that time, oldest change first. Store theupdatedAtof the last row you processed and pass it next time. A malformed date is a400. - Ids only:
GET /v1/inventory/idsreturns every matching id (no paging) to drive a bulk call. - Pickers:
GET /v1/inventory/facets(distinct brands and categories),GET /v1/inventory/labels,GET /v1/inventory/labels/stats(counts and colours),POST /v1/inventory/labels/rename{ from, to }. - History:
GET /v1/inventory/{id}/activity(created, sold, edited, quantity adjusted…;limitmax 100). GET /v1/inventory/{id}returns the item with itsplatformListings.
Items carry quantity, quantityAvailable, quantityReserved (sold, not shipped) and quantitySold (shipped), plus status and stockState (in_stock, active, inactive, out_of_stock) on the list.
The quantity model
One count per item, shared by every channel. Listing on more marketplaces never uses up a unit per listing.
- Live-count marketplaces (eBay, Etsy, Shopify, Poshmark, Whatnot, Depop, the Crossly marketplace, Lightspeed) show the real available number and are updated after every sale or stock change.
- One-at-a-time marketplaces (Facebook, Mercari, Grailed, Vinted, Vestiaire, Curtsy, OfferUp and the rest) list one unit; after it sells, Crossly puts up a fresh listing while stock remains.
- A platform listing's own
quantityis what that channel shows, not your stock. Read stock from the inventory item. - At 0, every listing comes down (see auto-delist). On restock, eBay, Etsy, Shopify and Whatnot bring the same listing back; others are republished automatically when the account's
autoRepublishis on, or wait as restock prompts (GET /v1/restock-prompts,POST /v1/restock-prompts/{id}/republish).
Change stock
// One value for many items: mode set | increase | decrease, value 0-1,000,000
await crossly.inventory.bulkQuantity(
{ ids: [itemA, itemB], mode: 'decrease', value: 1 },
{ idempotencyKey: crypto.randomUUID() });
// A stock per item (1-5000 items, each id once)
const r = await crossly.inventory.bulkQuantity(
{ mode: 'set', items: [{ id: itemA, quantity: 7 }, { id: itemB, quantity: 0 }] },
{ idempotencyKey: crypto.randomUUID() }) as { affected: number; skipped: number; bulkJobId?: string };
POST /v1/inventory/bulk-quantity sets available stock. The numbers change at once; live listings are pushed in the background against bulkJobId, and anything reaching 0 is delisted. skipped counts ids that did not move (already at that number, or not yours). syncMarketplaces: false changes Crossly's number only and leaves marketplaces showing the old one. Mixing the two body shapes, a repeated id or more than 5,000 items is a 400. On a Free plan, more than one item at a time is 403 forbidden (bulk actions need a paid plan).
Per-account caps and buffers
Each connected account (a second Poshmark account is its own channel) has inventory settings in each store:
const { data } = await crossly.channelInventory.listAccounts() as { data: { accountId: string; platform: string }[] };
await crossly.channelInventory.setAccount(data[0].accountId, { // PUT /v1/channel-accounts/{accountId}/settings
quantityCap: 5, // show at most 5; null = no cap
quantityBuffer: 2, // hold 2 back from this channel
syncQuantity: true, // false: Crossly never changes the count here
outOfStockAction: 'end', // end | zero (eBay, Shopify) | delete (Whatnot)
excludedCategories: [], excludedListingIds: [], excludedSetIds: [],
autoRepublish: true, // relist automatically when stock returns
}, { idempotencyKey: crypto.randomUUID() });
PUT is a merge write (omitted fields keep their value); DELETE /v1/channel-accounts/{accountId}/settings resets to defaults (no cap, no buffer, sync on, end on sell-out, republish on). The response includes effectiveOutOfStockAction and the account's capabilities. Send X-Storefront-Id to target a store other than the default.
The channel shows min(cap, stock − buffer), never below 0: stock 10, buffer 2, cap 5 shows 5; stock 4 shows 2; stock 2 with buffer 2 shows 0 and the listing comes down. A new publish always lists at least 1. Turning sync off or excluding a category never stops Crossly ending listings at a real sell-out.
Deprecated: /v1/channel-inventory and /v1/channel-inventory/{platform}/{slot} (keyed by platform and slot), and the store-wide GET/PUT /v1/restock-prompts/settings, are aliases of /v1/channel-accounts. They answer with Deprecation, Sunset and Link headers and stop working after 2027-03-01. Use /v1/channel-accounts/{accountId}/settings (autoRepublish per account).
Variations (sizes, colours)
Crossly has no child-variant rows on an item. A product in several sizes is several listings, each with its own inventory item, price, quantity and SKU, joined in a variation group (scopes listings:read / listings:write):
POST /v1/variation-groups/generate{ sourceListingId, axisName, sourceValue, options: [{ value, price?, quantity?, sku? }] }copies one listing into one listing per value and groups them;POST /v1/variation-groups/generate-matrixdoes the same over up to three axes (Size × Color).POST /v1/variation-groupsgroups listings you already have (kind: "variation", or"group"for a purchase rule like "buy any 3").POST /v1/variation-groups/{id}/publish{ platforms }publishes one listing with a variation picker where the marketplace supports it (eBay, Shopify, Etsy) and one listing per option elsewhere; each platform reports its own outcome.GET /v1/variation-groups/{id}/publish-planpreviews that.GET /v1/listings/{id}/variation-grouptells you whether a listing belongs to one.DELETE /v1/variation-groups/{id}dissolves the group; the options stay as ordinary listings.
Members are standalone listings with their own stock: count and reprice them as separate products. Call these over HTTP; the crossly.variationGroups methods in @crossly/sdk 0.3.0 build /api/api/v1/... URLs and fail.
Holds and units
GET /v1/inventory/{id}/holdslists units set aside by a program:sourceKind(wholesale_quote,rental_booking,live_lineup,cart,vault_submission,consignment,manual),sourceId, units, expiry andstate(active,lapsed,released).?history=trueadds released holds.GET /v1/inventory/holds/issueslistsheld_but_listedandexpired_hold_unreleasedproblems.POST /v1/inventory/holds/{holdId}/releaseputs the units back on sale (409 hold_already_releasedif it already ended). SDK:crossly.inventoryHolds.list / issues / release.POST /v1/inventory/{id}/units/identifiersrecords a serial, IMEI, licence key or GTIN (namespace:serial,imei,licence_key,gtin,custom). Record before the sale: each identifier'sstrengthisstrong(before it sold),good(at packing) orweak(after it shipped), which is what makes it usable as evidence on a return.GET /v1/inventory/{id}/unitslists them;POST /v1/inventory/units/lookup{ value, namespace }answers "have I seen this serial?". SDK:crossly.units.record / listForItem / lookup.
Cost of goods
Net profit = sale price − marketplace fees − cost of goods − shipping you paid. Per unit, cost is the manual cost (originalPrice, else costBasisCents), else the landed cost from the item's purchase invoices, else unknown (counted as $0). Cost is snapshotted onto each sale when it sells, so changing it later never rewrites past sales. Set it before the item sells.
Rules
- Never send
defaultPriceordefaultDescription; price and description go on the listing. - Send quantities as available stock. Don't add reserved units yourself.
- Sync with
updatedSince, not by re-reading every page, and look items up by exactsku. - Send an
Idempotency-Keyon every write; a retried create without one makes two items. - Archive (or merge) instead of deleting when in doubt; delete can't be undone.
- Use
/v1/channel-accounts, not the deprecated/v1/channel-inventoryor/v1/restock-prompts/settings.
Docs: https://crossly.net/docs/inventory-model · https://crossly.net/docs/multi-quantity-and-channels · https://crossly.net/docs/net-profit-and-cogs · https://crossly.net/docs/api-inventory
