Returns, exchanges, and cancellation management with 3-layer architecture: API Gateway -> Order Management Service -> Core Microservices
View Postman DocumentationAPIs for checking return, exchange, and cancellation eligibility
Check if an order is eligible for return, exchange, or cancellation (1 step)
GET /orders/:order_id/eligibility
GET /orders/:order_id/eligibility
Orchestrates 1 service call
GET /api/orders/:order_id/eligibility
Get Order Eligibility
Check if a specific item is eligible for return or exchange (1 step)
GET /orders/:order_id/items/:item_id/eligibility
GET /orders/:order_id/items/:item_id/eligibility
Orchestrates 1 service call
GET /api/orders/:order_id/items/:item_id/eligibility
Get Item Eligibility
APIs for creating return, exchange, and cancellation requests
Create a return request for order items with pickup scheduling (1 step)
POST /order-actions
POST /order-actions
Orchestrates 1 service call
POST /api/order-actions
Create Return Request
{
"action_type": "RETURN",
"order_id": "ORD123456789",
"items": [
{
"item_id": "ITEM987654321",
"quantity": 1,
"reason": "SIZE_ISSUE",
"reason_description": "Product is too small",
"images": []
}
],
"pickup_address_id": "ADDR456789",
"refund_method": "ORIGINAL_PAYMENT",
"additional_comments": "Please process refund quickly"
}
Create an exchange request with new variant selection (1 step)
POST /order-actions
POST /order-actions
Orchestrates 1 service call
POST /api/order-actions
Create Exchange Request
{
"action_type": "EXCHANGE",
"order_id": "ORD123456789",
"items": [
{
"item_id": "ITEM987654321",
"quantity": 1,
"reason": "SIZE_ISSUE",
"reason_description": "Need larger size",
"exchange_with": {
"product_id": "PROD12345",
"variant_id": "VAR67890",
"sku": "TSH-BLU-L",
"size": "L",
"color": "Blue"
}
}
],
"pickup_address_id": "ADDR456789",
"delivery_address_id": "ADDR456789",
"additional_comments": "Please send size L"
}
Create a cancellation request for order items or entire order (1 step)
POST /order-actions
POST /order-actions
Orchestrates 1 service call
POST /api/order-actions
Create Cancellation Request
{
"action_type": "CANCEL",
"order_id": "ORD123456789",
"items": [
{
"item_id": "ITEM987654321",
"quantity": 1,
"reason": "CHANGED_MIND",
"reason_description": "No longer need this product"
}
],
"cancel_entire_order": false,
"refund_method": "ORIGINAL_PAYMENT",
"additional_comments": "Please cancel as soon as possible"
}
APIs for checking request status and history
Get all return, exchange, and cancellation requests for an order (1 step)
GET /orders/:order_id/actions
GET /orders/:order_id/actions
Orchestrates 1 service call
GET /api/orders/:order_id/actions
Get Order Actions
Get detailed information about a specific return, exchange, or cancellation request (1 step)
GET /order-actions/:action_id
GET /order-actions/:action_id
Orchestrates 1 service call
GET /api/order-actions/:action_id
Get Request Details
Orchestration layer for post-fulfillment operations
Returns, exchanges, cancellations, eligibility checks
Post Fulfillment Module - Orchestra Internal API Mapping | 7 APIs | 7 Total Steps