Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Crossly Returns refunds

БесплатноБез исполняемых скриптовНе проверен

Refund, cancel, return and dispute Crossly orders through the API. Check GET /v1/orders/{id}/refund-options, refund in full or part with POST…

crosslyот crossly71 установка в других каталогах

Об этом скилле

Refunds, cancellations, returns and disputes

Four separate things, each with its own endpoint:

  • Refund: money back to the buyer, on the order (POST /v1/orders/{id}/refunds).
  • Cancel: the order never ships (POST /v1/orders/{id}/cancel). On a Crossly-marketplace order it refunds the buyer too.
  • Return: the goods come back (/v1/returns). A return record does not move money by itself.
  • Dispute: a case against the order (POST /v1/orders/{id}/dispute), backed by delivery evidence.

Scopes:

Scope Allows
orders:read Refund history and options, cancel eligibility, returns, evidence
orders:refund POST /v1/orders/{id}/refunds and /resolve; needed in addition to orders:write to cancel a Crossly-marketplace order or refund while accepting a return
orders:write Cancel, returns create/update/accept/decline, disputes

orders:write alone cannot call /refunds. fulfillment:write can do none of this. Auth: crossly-api-setup; errors and retries: crossly-api-conventions.

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

Refunds

1. Ask what the platform allows

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

// GET /v1/orders/{id}/refund-options
const opts = await crossly.orders.refundOptions(orderId);
// { supported, full, partial, partialCap: 'item' | 'total' | null, beforeShipment,
//   reasons: [{ key, label }] | null, comment, cancelsSale, untilCompleted, windowClosed, note }
  • supported: false: Crossly can't refund this platform's orders; refund on the marketplace.
  • partialCap: 'item' means a partial is capped at the item price, total at what the buyer paid.
  • When reasons is a list, the refund's reason must be one of its keys.
  • cancelsSale (Mercari): the refund IS the cancellation and must be full. windowClosed: the platform's refund window ended when the order completed.

2. Refund

// POST /v1/orders/{id}/refunds  (orders:refund)
const r = await crossly.orders.createRefund(orderId, {
  reason: 'buyer_requested',          // required, 1-500 chars (or a key from refund-options)
  amount: 12.5,                       // DOLLARS; omit for everything left
  comment: 'Sorry about the stain.',  // optional, <= 1000, only where the platform takes one
}, { idempotencyKey: crypto.randomUUID() });
// 201 { id, orderId, amount, full, status, platform, platformRefundId, source, lineItems,
//       totalRefunded, remaining, replayed, createdAt, completedAt }
curl -X POST https://crossly.net/api/v1/orders/$ORDER_ID/refunds \
  -H "Authorization: Bearer $CROSSLY_PAT" -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" -d '{"reason":"Item arrived damaged","amount":12.50}'
  • Money is dollars (12.5 = $12.50, max 1,000,000). lineItems (1-50 entries of { quantity, orderId?, amount? }) refunds units of the order instead of an amount.
  • Idempotency is built in. The ledger keys on the Idempotency-Key header, or on a hash of the body when you send none: the same request twice refunds once (the replay answers 200 with replayed: true). Two deliberate, identical partial refunds therefore need two different keys.
  • Crossly-marketplace orders refund the buyer's card; crossposted orders refund through the marketplace where Crossly can (eBay, Shopify, Etsy, WooCommerce, BigCommerce, Square, Walmart, Reverb, Allegro, Kaufland, Amazon, TikTok Shop and others: trust refund-options, not this list).
  • A partial refund keeps the order's status. Fires order.refunded and the older refund.issued.

Refund status: pending, reconciling, succeeded, failed, unverified (and pending_app when an app that manages the order must carry it out).

Code Status What to do
refund_exceeds_remaining 422 Lower the amount; details.remaining (dollars) is what is left
already_refunded 409 Nothing left to refund
refund_exceeds_item_amount 422 Over the item price on a partialCap: item platform (details.itemAmount)
partial_refund_unsupported, full_refund_unsupported, invalid_refund_reason 400 Outside the platform's capability; read refund-options
amount_required 422 The sale price isn't known yet (detailsPending): name the amount
invalid_amount, invalid_line_item 400 Fix the body
refund_in_progress 409 Retry later with the same key to read the outcome
refund_unverified 409 Check the marketplace, the
Полный SKILL.md на ClawHub

Установить Crossly Returns refunds в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Crossly Returns refunds?

Refund, cancel, return and dispute Crossly orders through the API. Check GET /v1/orders/{id}/refund-options, refund in full or part with POST /v1/orders/{id}/refunds (scope orders:refund, dollars, idempotent ledger, never past what the buyer paid), resolve unverified refunds, cancel with GET /v1/orders/{id}/cancel-eligibility and POST /v1/orders/{id}/cancel, run the physical return workflow on /v1/returns (create, received, inspected, restocked), accept or decline Crossly-marketplace return requests, flag disputes and gather delivery evidence, and react to order.refunded, refund.issued, order.cancelled and return.* webhooks. Use when building customer-service, refund, returns-processing or dispute tooling on Crossly.

Как установить скилл Crossly Returns refunds?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Crossly Returns refunds запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Crossly Returns refunds с