Back to list
stateset

commerce-returns

by stateset

StateSet iCommerce

1🍴 0📅 Jan 24, 2026

SKILL.md


name: commerce-returns description: Use when processing return requests, managing RMAs, or handling refund workflows.

Commerce Returns Skill

Domain knowledge for return merchandise authorization (RMA) processing and refund workflows.

Return Lifecycle

Status Flow

[requested] ──► [approved] ──► [received] ──► [refunded]
      │
      └───────► [rejected]

Status Definitions

StatusDescriptionNext States
requestedCustomer initiated returnapproved, rejected
approvedRMA approved, awaiting itemsreceived, cancelled
rejectedReturn denied-
receivedItems received at warehouserefunded, exchanged
refundedRefund processed-
exchangedExchange fulfilled-
cancelledReturn cancelled-

Return Structure

{
  id: "uuid",
  returnNumber: "RMA-12345",
  orderId: "order-uuid",

  status: "requested",
  reason: "defective",
  reasonDetails: "Screen has dead pixels",

  // Items being returned
  items: [
    {
      orderItemId: "item-uuid",
      sku: "WIDGET-001",
      name: "Premium Widget",
      quantity: 1,
      condition: "defective"
    }
  ],

  // Refund details
  refundAmount: 29.99,
  refundMethod: "original_payment",

  // Timestamps
  requestedAt: "2024-01-15T10:00:00Z",
  approvedAt: null,
  receivedAt: null,
  completedAt: null
}

Return Reasons

Reason CodeDescriptionTypical Action
defectiveProduct defect/malfunctionFull refund, no restock
wrong_itemIncorrect item shippedFull refund + reship
not_as_describedDiffers from listingFull refund
changed_mindCustomer decisionRefund - restocking fee
better_price_foundFound cheaperRefund - restocking fee
no_longer_neededNo longer wantsRefund - restocking fee
damagedArrived damagedFull refund, file claim
otherOther reasonCase by case

Item Condition

ConditionDescriptionRestockable
newUnopened, unusedYes
like_newOpened but unusedYes
usedShows useMaybe
damagedCustomer damagedNo
defectiveProduct defectNo

Return Policy Guidelines

Standard Policy (Example)

  • Window: 30 days from delivery
  • Condition: Unused, in original packaging
  • Restocking fee: 15% for buyer's remorse
  • Free returns: Defective items, wrong item shipped

Calculating Refund

Original Amount:     $99.99
- Restocking Fee:   -$15.00 (15%)
- Return Shipping:  -$8.99  (if customer pays)
= Refund Amount:     $76.00

Exception Cases

  • Defective: Full refund, no fees
  • Wrong item: Full refund + free return shipping
  • Damaged in transit: Full refund + carrier claim
  • Final sale: No returns accepted

Return Processing Workflow

Customer Initiates Return

1. Customer contacts support
2. Verify order exists and eligible
3. Collect return reason
4. Create return request
5. Provide RMA number

Review & Approve

1. Review return request
2. Check return policy eligibility
3. Verify reason is valid
4. Calculate refund amount
5. Approve or reject with reason

Process Return

1. Customer ships items back
2. Receive and inspect items
3. Update condition assessment
4. Process refund
5. Restock if applicable

Rejection Reasons

When rejecting a return:

  • Outside return window
  • Item shows customer damage
  • Item not from this order
  • Final sale item
  • Missing components/packaging
  • Hygiene/safety item used

Always document clearly:

"Item shows signs of customer damage (scratches on surface)
not covered under warranty. Return window for change of mind
items is 30 days, this request is 45 days from delivery."

Refund Methods

MethodDescriptionTimeline
original_paymentCredit to original card3-5 days
store_creditAccount creditImmediate
exchangeShip replacementUpon receipt
checkMail check7-10 days

Inventory Impact

On Return Receipt

If restockable:

adjust_inventory(sku, +quantity, "Return RMA-12345")

If not restockable:

// No inventory adjustment
// Document as loss/damage

On Exchange

1. Process return item (may restock)
2. Ship replacement (reserve + fulfill)

Common Errors

ErrorCauseSolution
Order not foundInvalid order IDVerify order number
Already returnedItem has existing returnCheck return status
Outside windowPast return deadlineReview for exception
Invalid quantityMore than purchasedCheck order items

Metrics to Track

MetricDescription
Return rateReturns / Orders
Reason breakdownCount by reason
Processing timeRequest to complete
Refund amountTotal refunded
Restock rateItems restocked

Best Practices

  1. Respond quickly - Acknowledge within 24 hours
  2. Be clear about policy - Set expectations upfront
  3. Document everything - Photos, condition notes
  4. Make exceptions wisely - Balance customer vs cost
  5. Track patterns - Identify product issues
  6. Simplify process - Easy returns = customer loyalty

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon