Ship Crossly orders: rates, labels and tracking
An order can be shipped three ways, and the marketplace decides which apply: a Crossly Shipping label bought from the seller's prepaid shipping wallet, the marketplace's own prepaid label (Poshmark, Whatnot, Grailed and others), or your own label with the tracking number submitted back. Every route below acts on a Crossly order id (GET /v1/orders, see the crossly-orders-sales skill).
Scopes: orders:read for reads, quotes of marketplace labels, PDFs and lists; orders:write to buy, void, print, pull labels and book pickups; fulfillment:write (or orders:write) to submit tracking and mark shipped. fulfillment:write is the narrow scope for a 3PL or dropship app: through PATCH /v1/orders/{id} it may only set trackingNumber, carrier and status shipped, in_transit or delivered (anything else is a 403). Auth: crossly-api-setup. Errors, idempotency, pagination: 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
Which label an order can use
The per-platform shipping capability (Crossly's SHIPPING_CAPABILITIES model) decides:
| Platform group | Crossly label (/rates, /label) |
Marketplace label | Your own label + tracking |
|---|---|---|---|
| eBay, Amazon | yes | they also sell their own labels (not through /v1) |
yes |
| Etsy, Shopify, Walmart, Mercari, Reverb, Bonanza, BigCommerce, GoDaddy, Wix, WooCommerce, Square, Squarespace, Discogs, TCGplayer, Mana Pool, Cardmarket, BrickLink, Brick Owl, OnBuy, Trade Me, eBid, Crossly | yes | no | yes |
| Depop, Whatnot, CardNexus, Kaufland, Allegro | yes | yes | yes |
| Poshmark, Vinted, Vestiaire, OfferUp, Curtsy, Grailed, StockX, TikTok Shop, Alias, POIZON | no (400 own_label_not_supported) |
prepaid label | no |
| Facebook Marketplace | no (400 local_only_no_shipping) |
no | local pickup only |
Crossly can only pull or generate the marketplace label for platforms with a label wire:
| Platform | How | Extras |
|---|---|---|
| Poshmark | pull the prepaid label | buy a replacement (wrong_size, overweight_package, label_expired, additional_label); auto-upgrade to the item's weight tier; its packing slip is cut from the sheet |
| Whatnot | generate after you confirm the package | package edit with a quoted cost, surcharge confirm, its own packing slip |
| Grailed | fetched automatically ~seconds after the sale | PDF + USPS QR code |
| CardNexus, Alias, POIZON | generate for a service you pick (options) |
POIZON's generate also marks the order shipped |
| Kaufland, Allegro | generate from the package you enter (grams, cm) | Allegro also takes a service |
| TikTok Shop | pull | short-lived links, own packing slip |
For the others with a prepaid label, the seller prints it in the marketplace app; you only see the tracking once it arrives.
Crossly Shipping labels
import { createClient } from '@crossly/sdk';
const crossly = createClient({ pat: process.env.CROSSLY_PAT! });
// GET /v1/orders/{id}/suggested-parcel: source learned | box | item | none
const parcel = await crossly.orders.suggestedParcel(orderId) as {
source: string; presetId?: string | null; lengthIn?: number | null; widthIn?: number | null;
heightIn?: number | null; weightOz?: number | null;
};
// POST /v1/orders/{id}/rates
const { rates } = await crossly.orders.rates(orderId, {
weightOz: parcel.weightOz ?? 24, // required, > 0, max 1120 (70 lb)
presetId: parcel.presetId ?? undefined, // a saved box, or lengthIn/widthIn/heightIn (each <= 108)
}, { idempotencyKey: crypto.randomUUID() }) as {
rates: Array<{ id: string; carrier: string; service: string; rate: number; isCheapest: boolean;
isFastest: boolean; isBestValue: boolean; isCubic: boolean; estimatedDeliveryDays?: number }>;
};
// POST /v1/orders/{id}/label: debits the shipping wallet
const cheapest = rates.find((r) => r.isCheapest)!;
const label = await crossly.orders.label(orderId,
{ rateId: cheapest.id, labelSize: '4x6' }, // or 'letter'
{ idempotencyKey: crypto.randomUUID() }) as { trackingNumber: string; labelUrl: string; carrier: string; service: string };
rateis dollars, all-in (carrier cost plus Crossly's service fee). Rates also carryisCubic(USPS Cubic pricing for small heavy parcels).- With no preset and no dimensions, Crossly picks the parcel itself, the same way
suggested-parceldoes. - Buying a label submits the tracking to the marketplace itself and moves the order to
label_purchased. Don't call/trackingagain for it. curl:
curl -X POST https://crossly.net/api/v1/orders/$ORDER_ID/rates \
-H "Authorization: Bearer $CROSSLY_PAT" -H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" -d '{"weightOz":24,"lengthIn":12,"widthIn":9,"heightIn":3}'
Errors from /rates and /label:
| Code | Status | Meaning |
|---|---|---|
own_label_not_supported |
400 | The platform ships on its own prepaid label only |
local_only_no_shipping |
400 | Local pickup platform |
no_ship_from_address |
400 | No ship-from address for the order's store (set one with PUT /v1/storefront/shipping) |
preset_not_found |
404 | presetId is not one of the store's boxes |
rates_failed |
400 | The carrier quote failed (bad address, oversize parcel) |
no_shipment |
400 | /label before /rates |
bad_status |
400 | Order not in needs_fulfillment or label_purchased |
label_exists |
409 | The order already has a label; existingLabel is in the error. Resend with allowSecondLabel: true only for a real second parcel (a second charge) |
insufficient_shipping_balance |
402 | Wallet short; requiredCents and balanceCents say by how much |
label_price_drift |
409 | Buyer-paid (calculated) shipping now costs more; drift has the numbers. Resend with acceptDrift: true to pay the difference |
quoted_service_unavailable |
409 | The service the buyer paid for is no longer offered |
ships_to_authenticator |
409 | A Crossly sale that ships to the authenticator: buy that label from its authentication flow |
label_purchase_failed |
502 | Carrier refused; nothing kept |
Void an unused label with crossly.orders.voidLabel(orderId, { idempotencyKey }) (POST /v1/orders/{id}/label/void): only before the first carrier scan and within 30 days. The full charge is owed back (refundPendingCents, credited later; refundedCents stays 0), the order returns to needs_fulfillment, and tracking.outcome says what happens to tracking already sent (not_submitted, removal_queued, replace_on_next_label, update_manually with platformOrderUrl). Errors: no_label, label_already_scanned, void_window_passed, label_void_failed. A repeat returns alreadyVoided: true.
Other Crossly-label routes: POST /v1/orders/{id}/pickup-label (pickup-point orders, allowSecondLabel), GET /v1/orders/pickup-ready, POST /v1/orders/pickups (orderIds, date, minTime, maxTime, optional address, instructions; one carrier, window >= 1 hour, <= 14 days out), GET /v1/orders/pickups, POST /v1/orders/scan-forms (orderIds?, shipDate?), GET /v1/orders/scan-forms, GET /v1/orders/scan-forms/{id} (a queued form gets its PDF once built). SDK: pickupLabel, pickupReady, schedulePickup, pickups, createScanForms, scanForms, scanForm.
The shipping wallet can also be topped up from Crossly Funding (POST /v1/funding/pay/shipping-labels, see crossly-payouts-billing). There is no API to read the wallet balance; a 402 tells you the shortfall.
Marketplace (platform) labels
SDK: crossly.orders.platformLabel.<verb>.
| Route | SDK | Scope |
|---|---|---|
POST /v1/orders/{id}/platform-label/pull |
pull |
orders:write |
GET /v1/orders/{id}/platform-label/state |
state |
orders:read |
GET /v1/orders/{id}/platform-label/options |
options |
orders:read |
GET /v1/orders/{id}/platform-label/url |
url |
orders:read |
GET /v1/orders/{id}/platform-label/packing-slip |
packingSlip |
orders:read |
POST /v1/orders/{id}/platform-label/quote |
quote |
orders:read |
POST /v1/orders/{id}/platform-label/package/quote |
quotePackage |
orders:read |
POST /v1/orders/{id}/platform-label/package |
updatePackage |
orders:write |
POST /v1/orders/{id}/platform-label/purchase |
purchase |
orders:write |
pullanswers{ url, persisted, expiresInSeconds, provenance: verified | provisional, shippingLabelUrl, trackingNumber }. Refusals:platform_does_not_provide_label,label_pull_unsupported,missing_platform_order_id.POST /v1/orders/{id}/pull-platform-labelis the older spelling of the same call.urlis a fresh short-lived link, never stored: fetch it right before printing.- Always
quotebeforepurchase; a purchase can charge the seller (Poshmark replacement labels) and a package change can cost money (costCents). The purchase and quote bodies are platform-specific and are not described in the OpenAPI spec; readoptionsfirst (weight tiers,servicesto pick aserviceIdfrom,customsRequired). - Whatnot keeps typed aliases:
GET /v1/orders/{id}/whatnot/shipment,POST /v1/orders/{id}/whatnot/package/quoteand/whatnot/package(weightOzrequired,lengthIn,widthIn,heightIn,acceptCostCents),POST /v1/orders/{id}/whatnot/label(acceptSurchargeCents: resend with the exact surcharge the first try reported),GET /v1/orders/{id}/whatnot/packing-slip.
Your own label: tracking
// POST /v1/orders/{id}/tracking: carrier is required
const { jobId } = await crossly.orders.submitTracking(orderId,
{ trackingNumber: '9405511899561234567890', carrier: 'usps', labelCost: 6.45 }, // labelCost: dollars, optional
{ idempotencyKey: crypto.randomUUID() }) as { jobId: string | null };
Marks the order shipped (once; order.shipped fires once), records the parcel with its cost, and queues the push to the marketplace (jobId, null when the order has no marketplace order id). A second call on a shipped order only updates the number.
- Wrong number already on the marketplace:
crossly.orders.tracking.correct(orderId, { trackingNumber, carrier?, confirm? })(POST /v1/orders/{id}/correct-tracking,orders:write).correctionisreplace,remove_then_submitorsubmit. Refused withvalidation_errorwhere the platform can't change tracking, when the tracking came with a label (void it instead) or the order is closed or delivered;conflictwhile the previous update is in flight. - Many orders at once:
crossly.orders.bulkMarkShipped({ orderIds, trackingNumber?, carrier? }, { idempotencyKey })(POST /v1/orders/bulk-mark-shipped, 1-500 ids,fulfillment:writeororders:write). Answers{ updated, skipped }; cancelled and refunded orders are skipped, and each marketplace order is told once. The onetrackingNumberis applied to every order in the call, so send one call per parcel. PATCH /v1/orders/{id}(crossly.orders.updateOrder) setstrackingNumber(<= 100),carrier(<= 40),status,notes,labelCost(dollars).
Tracking status
The order carries carrier, service, trackingNumber, shippedAt, estimatedDelivery, deliveredAt, carrierStatus, carrierStatusDetail, trackingHistory, trackingSubmittedAt, trackingSubmitStatus and carrierTracking, who reports parcel progress:
carrierTracking |
Meaning |
|---|---|
crossly_label |
A label bought through Crossly; tracked automatically |
crossly |
Crossly's paid carrier tracking is registered for this number |
platform |
The marketplace reports shipped and delivered itself; mirrored free |
off |
Nobody tracks it: the order stays shipped until you mark it delivered (paid tracking is opt-in) |
none |
No tracking number yet |
Statuses only move forward: label_purchased → shipped → in_transit → delivered. Listen for order.shipped, tracking.updated (carrier status moved: in transit, out for delivery, an exception) and order.delivered (crossly-webhooks) instead of polling. For a "never arrived" claim, GET /v1/orders/{id}/proof-of-delivery (crossly.orders.proofOfDelivery(id, { format: 'json' }); read gaps before filing), GET /v1/orders/{id}/delivery-photo (state: found, none, not_delivered) and GET /v1/orders/{id}/evidence.
Ship-by: shipByAt is the marketplace's deadline (null when the platform sends none, which never counts as late) and handlingTimeDays the promised handling time. order.ship_by_soon and order.ship_by_overdue fire for unshipped orders near or past it.
Parcels and multi-box orders
GET /v1/orders/{id}/shipments (crossly.orders.shipments) lists every parcel: weightOz, lengthIn, widthIn, heightIn (decimal strings), carrier, service, trackingNumber, labelUrl, labelQrUrl, labelCostCents, voidedAt, presetId. Use totalLabelCostCents for cost of sale; the order's own labelCost is the primary parcel only.
Weight, dimensions and box selection
Item size lives on the inventory item and listing: weightLb, weightOz, dimensionLIn, dimensionWIn, dimensionHIn (numbers, >= 0; see crossly-inventory). Total weight is weightLb * 16 + weightOz ounces.
Crossly does not compute a dimensional (DIM) weight itself: the carrier prices DIM weight from the parcel you send, so a tight box is the lever. Crossly's box selection (selectBox) picks the smallest saved box by volume where each item fits on all three axes (rotation allowed) and the combined item volume is at most 75% of the box volume; parcel weight = sum of item ounces times quantity + the box's tare weight. If any line has no dimensions, or nothing fits, it falls back rather than guess. That box is what suggested-parcel returns (source: box), what /rates uses when you send no dimensions, and what listings send to marketplaces as their parcel. Boxes (package presets) are managed in the dashboard (Settings → Shipping); there is no v1 endpoint for them, but presetId values come back from suggested-parcel.
An order with no weight is never labelled on a guess: send weightOz yourself.
Printing, slips and picking
| Route | SDK | Notes |
|---|---|---|
GET /v1/orders/{id}/label/print |
orders.printLabel(id, { size, flip, parcelId }) |
PDF fitted to 4x6, letter, a4 or native |
POST /v1/orders/{id}/label/print |
orders.printStation.printLabel |
Sends to the seller's print agent: mode agent, pdf (reason no_agent, offline, not_capable) or skipped (already_printed; reprint: true) |
GET /v1/devices/scale |
orders.printStation.readScale |
USB postal scale via the print agent: weightOz, stable |
GET /v1/orders/{id}/packing-slip |
orders.packingSlip |
Crossly packing slip PDF |
POST /v1/orders/bulk-packing-slips |
orders.bulkPackingSlips |
orderIds 1-50, one PDF |
GET /v1/orders/pick-list |
orders.pickList({ orderIds, storefrontId }) |
Grouped by storage bin; orderIds comma list <= 500; format=pdf |
POST /v1/orders/{id}/pack-scan |
orders.verifyPackScan(id, code) |
ok, matchedBy or reason wrong_item / no_item |
Storefront shipping settings
GET /v1/storefront/shipping (listings:read) and PUT /v1/storefront/shipping (listings:write) read and set the Crossly storefront's shipping policy and default ship-from address, for the store named by X-Storefront-Id (else the default store). SDK: crossly.storefrontShipping.get({ storefrontId }) / .update(body, { storefrontId, idempotencyKey }).
shippingPolicy:handlingTimeDays,domestic(costTypefree | flat | calculated,carriersUSPS/UPS/FedEx/DHL,flatRateCents,additionalItemCents,freeOverCents,calculated.autoPurchaseLabel),international(costTypeincl.not_offered,enabled,shipsTo,excludes),localPickup,packageInfo(weightOz, inches). Money here is cents.shipFrom:fullName,street1,cityrequired;countryISO alpha-2; a phone is needed by carriers to print. A sanctioned origin is a 422.- Per-listing customs:
PUT /v1/listings/{id}/customs(setListingCustoms): HS code, country of origin, countries it must not ship to. - A teammate token also needs the store's Policies or Shipping permission (see crossly-team-stores).
Rules
- Read the platform before choosing a path: a Crossly label on a prepaid-only platform is a 400, and on those platforms never submit your own tracking.
- Send an
Idempotency-Keyon every label, void, pickup and tracking call. Never retry/labelwithallowSecondLabel: trueto "fix" a timeout: read the order first. - Confirm with the seller before anything that charges the wallet or the marketplace account (
/label,acceptDrift, platform-labelpurchase,acceptCostCents,acceptSurchargeCents). - Money units differ by field:
rate,labelCostare dollars;…Centsfields are integer cents. - Fetch marketplace label links just before use; they expire in minutes.
Docs: https://crossly.net/docs/crossly-shipping · https://crossly.net/docs/orders-and-shipping · https://crossly.net/docs/api-orders
