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…
от 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
- 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
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,totalat what the buyer paid.- When
reasonsis a list, the refund'sreasonmust be one of itskeys. 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-Keyheader, or on a hash of the body when you send none: the same request twice refunds once (the replay answers200withreplayed: 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.refundedand the olderrefund.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 |
Установить 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic