Skip to content

About

Crossly for Zapier: instant triggers for sales, orders, offers and stock, plus crosspost, reprice, delist and fulfilment actions for resellers.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Crossly for Zapier

CI Release Zapier Platform License: MIT

A Zapier Platform CLI integration for Crossly, the multi-marketplace crossposting platform for resellers. List once, sell on eBay, Poshmark, Mercari, Depop and more, and wire every sale, order, offer and stock change into the rest of your Zaps.

  • 21 instant triggers (REST hooks): Crossly pushes the event to Zapier the moment it happens. No polling, no task burn.
  • 9 actions: crosspost a listing, reprice, delist, add inventory, set stock, update an order, add tracking, answer an offer.
  • 3 searches: find a listing or inventory item by SKU, get an order by id.

Every endpoint, field and event name comes from the public OpenAPI spec (https://crossly.net/openapi/seller.json) and the API docs. Request bodies the spec does not model are taken from the endpoint's docs page.

Connect your account

The integration authenticates with a Crossly Personal Access Token.

  1. In Crossly open Settings → API & webhooks and create a token (it starts with crossly_pat_).

  2. Give it the scopes your Zaps need:

    Scope Needed for
    webhooks:write (+ webhooks:read) every trigger (the integration registers one webhook per Zap)
    orders:read, sales:read, listings:read, inventory:read, inbox:read receiving the matching events and the searches
    listings:write Create / Update / Delist Listing
    inventory:write Create / Update Inventory Item, Set Stock
    orders:write Update Order, Add Tracking
  3. In Zapier pick Crossly, choose Connect a new account and paste the token. Zapier checks it with GET /v1/me and labels the connection with your account email.

The token is sent as Authorization: Bearer <token> to https://crossly.net/api. It is stored by Zapier, never in your Zap's data.

Triggers (instant, REST hooks)

Turning a Zap on calls POST /v1/webhooks with Zapier's hook URL and only that trigger's event; turning it off calls DELETE /v1/webhooks/{id}. You will see the subscription (described Zapier: <event>) in Settings → API & webhooks → Webhooks.

Every delivery is verified before it reaches your Zap: the Crossly-Signature header (t=<unix>,v1=<hex HMAC-SHA256 of "t.rawBody">) is checked in constant time with the secret Crossly returned when the webhook was created, and anything forged, tampered with or older than 5 minutes is dropped. Each Zap item is the event's data flattened, plus id (the event id, which Zapier dedupes on), eventType and eventCreated.

Trigger Key Crossly event Fires when
Sale Detected sale_detected sale.detected A new sale was detected on any platform.
Order Created order_created order.created An order was created from a sale.
Buyer Address Available order_address_available order.address_available The buyer's shipping address arrived after the order was created: name, address and phone, ready to ship.
Order Shipped order_shipped order.shipped The order shipped: marked shipped, or the carrier's first in-network scan. Once per order.
Order Delivered order_delivered order.delivered The carrier reports the package delivered.
Order Cancelled order_cancelled order.cancelled An order was cancelled before it shipped.
Order Refunded order_refunded order.refunded An order was refunded, in full or in part: the amount, the running total and whether anything is left.
Refund Issued refund_issued refund.issued A refund was issued on a platform.
Return Requested return_requested return.requested A Crossly-marketplace buyer asked to return an order: the reason, their note and photos.
Return Resolved return_resolved return.resolved A return request closed: refunded in full or in part, no refund, or withdrawn by the buyer.
Listing Created listing_created listing.created A listing was published on a platform.
Price Changed listing_price_changed listing.price_changed A listing price changed, from any path: editor, repricer, API or bulk edit.
Listing Delisted listing_delisted listing.delisted A platform listing came down, on request or reported gone by the marketplace.
Stock Changed inventory_quantity_changed inventory.quantity_changed An item's stock changed, from any path (a sale, a cancellation, a return, an edit, the API): the counts after the change, and soldOut when none are left.
Offer Received offer_received offer.received A buyer made an offer.
Offer Accepted offer_accepted offer.accepted An offer was accepted, by you or an auto-respond rule.
Offer Declined offer_declined offer.declined An offer was declined.
Offer Countered offer_countered offer.countered An offer was countered.
Message Received message_received message.received A buyer sent you a message.
Connection Lost connection_disconnected connection.disconnected A platform session died; syncing for it has stopped until you reconnect.
Automation Failed automation_failed automation.failed An automation run failed.

Sample data while building a Zap. Order Created and Sale Detected load your three most recent orders (GET /v1/orders) or sales (GET /v1/sales) mapped onto the webhook's field names, falling back to the documented sample when you have none. Every other trigger shows the documented sample payload from the event catalog (lib/events.json). To see a real delivery, press Send test on the webhook in Crossly, or call POST /v1/webhooks/{id}/test with {"event": "<name>"}.

Actions and searches

Zapier step Type Endpoint operationId Scope
Create Listing (Crosspost) Action POST /v1/listings createListing listings:write
Update Listing Action PATCH /v1/listings/{id} updateListing listings:write
Delist Listing Action DELETE /v1/listings/{id} deleteListing listings:write
Create Inventory Item Action POST /v1/inventory createInventory inventory:write
Update Inventory Item Action PATCH /v1/inventory/{id} updateInventory inventory:write
Set Stock Action POST /v1/inventory/bulk-quantity createInventoryBulkQuantity inventory:write
Update Order Action PATCH /v1/orders/{id} updateOrder orders:write
Add Tracking Action POST /v1/orders/{id}/tracking createOrderTracking orders:write
Respond to Offer Action POST /v1/offers/{id}/respond createOfferRespond —
Find Listing by SKU Search GET /v1/listings?sku= listListings listings:read
Find Inventory Item by SKU Search GET /v1/inventory?sku= listInventory inventory:read
Find Order by ID Search GET /v1/orders/{id} getOrder orders:read
(connection test) Auth GET /v1/me getMe —
(trigger on / off) Hook POST /v1/webhooks, DELETE /v1/webhooks/{id} createWebhook, deleteWebhook webhooks:write

Notes:

  • Create Listing sends { platforms, inventoryItemId?, data: { title, description, price, images, condition, brand, size, sku }, createInventoryItem?, clientReferenceId? }. Pass an Inventory Item ID so the listing inherits the item and the sale cascade can find it. Repeating a Client Reference ID returns the existing listing instead of a duplicate.
  • Update Listing sends { changes, platforms? }; leave Platforms empty to push everywhere the listing is live. Update Inventory Item does not touch live listings.
  • Set Stock sets, increases or decreases the available stock of one or more items in a single write; live listings follow in the background, and anything reaching 0 is delisted.
  • Respond to Offer acts on offers made on your Crossly marketplace listings (GET /v1/offers). Offers on other marketplaces arrive through the offer triggers but cannot be answered through the API.
  • Create actions send an Idempotency-Key, so a Zapier retry does not create a second listing or item.

Errors and rate limits

Crossly answers errors as { "error": { "code", "message" }, "correlationId" }; the integration shows the message and the correlation id in the Zap history. A 429 becomes a Zapier ThrottledError with Crossly's Retry-After, so Zapier waits and retries instead of failing the run. Writes are the scarce bucket on the Free plan (15 / minute); see Rate limits.

Develop

Requires Node 22 and the Zapier CLI (npm install -g zapier-platform-cli).

git clone https://github.com/crossly-dev/crossly-zapier && cd crossly-zapier
npm install
npm test                       # jest + nock, no network
npx zapier-platform validate   # schema + (signed in) style checks
npx zapier-platform build      # build/build.zip, what `push` uploads

Layout: index.js (app definition), authentication.js, triggers/hooks.js (one REST hook trigger per entry in lib/events.json), creates/, searches/, lib/http.js (auth header, error and 429 mapping), lib/signature.js (webhook verification), test/.

CI (.github/workflows/ci.yml) runs npm install, zapier-platform validate, the tests and a build on every push and pull request. Tagging v* runs .github/workflows/release.yml: it builds the zip, attests its build provenance, attaches it to a GitHub Release and, when enabled, pushes it to Zapier. Check a release zip with:

gh attestation verify crossly-zapier-v0.1.0.zip -R crossly-dev/crossly-zapier

Publishing to Zapier

One-time setup by a Crossly maintainer:

  1. zapier login (or zapier login --sso) with the Crossly Zapier developer account.
  2. zapier register "Crossly" in this repo. It writes .zapierapprc with the integration id; commit that file.
  3. zapier deploykey (or Developer Platform → Settings → Deploy Keys) and save it as the repo secret ZAPIER_DEPLOY_KEY; set the repo variable ZAPIER_PUSH to true. From then on every v* tag runs zapier push. By hand it is just zapier push.

A pushed version is private: share it with testers via zapier users:add or the invite link, and promote with zapier promote <version> / zapier migrate.

To list the integration publicly in the Zapier App Directory:

  1. Fill in the integration's branding (logo, description, homepage, category) and the auth help text in the Developer Platform.
  2. Run zapier validate while signed in and fix every style-check error (integration checks).
  3. Get live usage: Zapier requires the integration to have active users with live Zaps (currently at least 3 users with live Zaps) and every trigger/action tested.
  4. Submit with Publish → Submit for review (or zapier promote then the publishing form). Zapier reviews the integration (typically 1–2 weeks), may request changes, and then releases it into beta in the App Directory; it leaves beta after it has been public and stable for a while (Zapier's criteria at the time).

Publishing requirements and timings change; see Zapier's publishing guide.

License

MIT

About

Crossly for Zapier: instant triggers for sales, orders, offers and stock, plus crosspost, reprice, delist and fulfilment actions for resellers.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages