- Auth
- Apps Oauth
- Batch Jobs
- Currencies
- Customers
- Customer Groups
- Discounts
- Draft Orders
- Gift Cards
- Inventory Items
- Invites
- Notes
- Notifications
- Orders
- Create a Reservation
- Cancel Claim's Fulfillment
- Ship a Claim's Fulfillment
- Cancel Swap's Fulfilmment
- Get Order Reservations
- Add a Shipping Method
- Create a Refund
- Get an Order
- Update an Order
- Create a Fulfillment
- Cancel a Swap
- List Orders
- Create a Swap
- Complete an Order
- Create a Swap Fulfillment
- Cancel a Claim
- Process a Swap Payment
- Ship a Fulfillment
- Capture an Order's Payments
- Archive Order
- Update a Claim
- Request a Return
- Create a Claim Fulfillment
- Ship a Swap's Fulfillment
- Cancel a Fulfilmment
- Create a Claim
- Cancel an Order
- Order Edits
- Payments
- Payment Collections
- Product Collections
- Product Tags
- Product Types
- Product Variants
- Price Lists
- Products
- Product Categories
- Publishable Api Keys
- Reservations
- Regions
- Return Reasons
- Returns
- Sales Channels
- Shipping Options
- Shipping Profiles
- Stock Locations
- Store
- Swaps
- Uploads
- Tax Rates
- Users
List Return Reasons
GET
/admin/return-reasons
Return Reasons
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.medusa-commerce.com/admin/return-reasons'
Response Response Example
200 - Example 1
{
"return_reasons": [
{
"id": "rr_01G8X82GCCV2KSQHDBHSSAH5TQ",
"value": "damaged",
"label": "Damaged goods",
"description": "Items that are damaged",
"parent_return_reason_id": null,
"parent_return_reason": {},
"return_reason_children": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"metadata": {
"car": "white"
}
}
]
}
Request
None
Responses
🟢200OK
application/json
Body
return_reasons
array[object (Return Reason) {11}]
required
id
string
required
Example:
rr_01G8X82GCCV2KSQHDBHSSAH5TQ
value
string
required
Example:
damaged
label
string
required
Example:
Damaged goods
description
string | null
required
Example:
Items that are damaged
parent_return_reason_id
string | null
required
Example:
null
parent_return_reason
object | null
optional
return_reason_children
object
optional
created_at
string <date-time>
required
updated_at
string <date-time>
required
deleted_at
string <date-time> | null
required
metadata
object | null
required
Example:
{"car":"white"}
🟠400Client Error or Multiple Errors
🟠401User is not authorized. Must log in first
🟠404Not Found Error
🟠409Invalid State Error
🟠422Invalid Request Error
🔴500Server Error
Modified at 2023-10-10 11:56:36