Overview
Cancel orders and process refunds automatically. The cancellation API supports both full order cancellation and line-item level cancellation, with intelligent refund routing based on payment method and order status.
Endpoints
Cancel Entire Order
POST /api/v2/cancel-order
Cancels all items in an order and initiates refund.
Cancel Specific Line Item
POST /api/v2/cancel-order-line-item
Cancels individual products within an order.
Get Cancellation Details
GET /api/v2/order/cancel/{orderId}
Retrieve cancellation eligibility and details for an order.
Authentication
All cancellation endpoints require user authentication.
Bearer token for authenticated user session
Cancel Order Request
The ID of the order to cancel
Reason for cancellation (optional)
Preferred refund method:
1 - Original payment source
2 - Bank account
3 - TSS Money (wallet)
4 - Gift voucher
Required if refund_mode is bank transfer:
account_number - Bank account number
ifsc_code - Bank IFSC code
account_holder_name - Account holder name
Cancel Line Item Request
The ID of the specific line item (has_product) to cancel
Reason for cancelling this item
Preferred refund method (see Cancel Order refund modes)
Cancellation Policies
Cancellation Windows
- Open Window: Order can be cancelled freely
- Before order is shipped
- Typically 24-48 hours after order placement
- Closed Window: Cancellation restricted or not allowed
- After order is shipped
- For international orders
- For certain product categories
Cancellation Restrictions
The following orders cannot be cancelled:
-
International Orders: Orders shipped outside India
- Message: “International orders cannot be cancelled”
-
Already Delivered: Orders with status “Delivered”
-
Already Cancelled: Orders with status “Cancelled”
-
Return/Exchange in Progress: Orders with active return/exchange requests
-
Special Product Categories:
- Non-exchangeable products (from
NON_EXCHANGEABLE_PRODUCTS list)
- Some exclusive membership products
Product-Level Cancellation Rules
- Minimum one product must remain in the order
- Cannot cancel if it’s the only remaining product
- Single valid product cancellation may affect coupon eligibility
- Bundle products may have special cancellation rules
Refund Processing
Refund Modes
Refund will be processed via:
| Mode ID | Refund Method | Processing Time | Notes |
|---|
| 1 | Original Source | 5-7 business days | Default for prepaid orders |
| 2 | Bank Transfer | 7-10 business days | Requires bank details |
| 3 | TSS Money | Instant | Added to wallet immediately |
| 4 | Gift Voucher | Instant | For gift voucher orders only |
Refund Components
Refunds include the following components based on order:
Base product price refunded
Proportional coupon/discount refunded
TSS Money returned to wallet
Gift voucher amount returned
Shipping charges refunded (if applicable)
Platform fee refunded for undelivered orders
Automated Refund Flow
-
Cancellation Initiated
- Order/line item status updated to “Cancelled”
- Refund calculation performed
-
Refund Routing
- TSS Money → Instant credit to wallet
- TSS Points → Instant credit to points balance
- Gift Vouchers → Reactivated and credited
- Payment Gateway → Automated refund initiated
-
Inventory Release
- Stock released back to inventory
- Hold removed from warehouse
-
Notifications
- Email sent with refund details
- SMS notification (if configured)
- Refund tracking available
Refund Restrictions
COD Orders
- No monetary refund (payment not made)
- TSS Money/Points/Vouchers still refunded
- Coupon code may be restored
Undelivered Orders (RTO)
For Return to Origin (RTO) orders:
POST /api/v2/return-payamt-tss-money-undelivered-order
- Automatic refund processing
- Platform fees may be refunded (if
ENABLE_PLATFORM_FEE_REFUND_ON_UNDELIVERED enabled)
- Deduction for return shipping if applicable
Partial Cancellations
- Refund calculated proportionally
- Shipping charges not refunded for partial cancellations
- Minimum order value restrictions may apply to remaining items
- Coupon eligibility re-evaluated
Response
Whether cancellation was successful
Detailed refund breakdown
refund_details.total_refund
Total amount being refunded
refund_details.refund_mode
Method of refund (e.g., “TSS Money”, “Original Source”)
refund_details.processing_time
Expected refund processing time
Example Request - Cancel Order
{
"order_id": 123456,
"cancel_reason": "Changed my mind",
"refund_mode": 3
}
Example Request - Cancel Line Item
{
"has_product_id": 789012,
"cancel_reason": "Wrong size selected",
"refund_mode": 1
}
Example Response
{
"success": true,
"message": "Order cancelled successfully",
"refund_details": {
"total_refund": 1299.00,
"refund_mode": "TSS Money",
"processing_time": "Instant",
"breakdown": {
"product_amount": 1199.00,
"tss_money_refund": 100.00,
"discount_amount": 0.00,
"shipping_refund": 0.00
}
}
}
Error Responses
Common Errors
Order not found - Invalid order ID
Order cannot be cancelled at this stage - Outside cancellation window
International orders cannot be cancelled - International shipping restriction
This order has already been cancelled - Duplicate cancellation attempt
Cannot cancel last product in order - Use full order cancellation instead
Invalid refund mode selected - Unsupported refund method
Bank details required for bank transfer - Missing required information
Return and Exchange
For delivered orders, use return/exchange endpoints instead:
- Return Window:
MAX_RETURN_DAYS from delivery (typically 7-15 days)
- Exchange Window:
MAX_EXCHANGE_DAYS from delivery
- Exchange Limit: Maximum
MAX_EXCHANGE_TIMES exchanges per order
Return Statuses
| Status | Description |
|---|
| RETURN_INITIATED (30) | Return request created |
| RETURN_PICKED_UP (31) | Product picked up from customer |
| RETURN_IN_TRANSIT (32) | Return shipment in transit |
| RETURN_RECEIVED (33) | Return received at warehouse |
| REVERSE_PICKUP_TERMINATED (34) | Return pickup cancelled |
Exchange Statuses
| Status | Description |
|---|
| EXCHANGE_INITIATED | Exchange request created |
| PRODUCT_PICKED_UP | Original product picked up |
| EXCHANGE_IN_TRANSIT | Exchange shipment in transit |
| EXCHANGE_COMPLETED | New product delivered |
| EXCHANGE_TERMINATED | Exchange cancelled |
Additional Endpoints
Incomplete Order Line Item
POST /api/v2/incomplete-order-line-item
Mark line item as incomplete (not available to fulfill).
Restore Coupon
POST /api/v2/restore-coupon
Restore coupon usage after order cancellation.
Cancel Hyperlocal Order
POST /api/v2/cancel-hl-order
Special endpoint for same-day delivery cancellations.
Refund Hyperlocal Charges
POST /api/v2/refund-hl-charges
Refund hyperlocal delivery fees for cancelled same-day orders.
Notes
- Cancellations are final and cannot be reversed
- Refunds to payment gateway typically take 5-7 business days
- TSS Money and TSS Points refunds are instant
- Inventory is automatically released upon cancellation
- Exclusive membership purchases have special cancellation rules
- Some artist/brand collaborations may have non-cancellable products
- Automated refund emails are sent to registered email address
- Cancel duplicate order endpoint available for admin use