- Returns
- Get Returns
Returns
Get Returns
Retrieve return (RMA) information with filtering and pagination
curl --request GET \
--url https://sandbox.masonhub.co/dragonfly-cosmetics-demo/api/v1/rmas \
--header 'Authorization: Bearer <token>'The Returns API manages RMA (Return Merchandise Authorization) processes, allowing customers to return items for processing, refund, or replacement. This endpoint retrieves return information with powerful filtering capabilities.
RMAs can be created without existing orders, facilitating go-live scenarios with historical returns.
​Query Parameters
MasonHub RMA UUID strings. Supports batching 1-30 IDs per request.
Filter by RMA status. Options:
open- RMA created, awaiting return shipmenttendered- Return package tendered to carrierinTransit- Return package in transitdelivered- Return package delivered to facilityreceived- Return items received and processedundeliverable- Return package undeliverable
Start date/time filter in RFC3339 format (e.g., 2018-12-01T00:00:00Z).
End date/time filter in RFC3339 format (e.g., 2018-12-31T23:59:59Z).
Pagination offset for retrieving subsequent pages of results.
Number of results to return. Range: 1-100.
Response detail level. Options:
detail- Full RMA information including all fieldssummary- Condensed view with essential fields only
curl -X GET "https://app.masonhub.co/{account}/api/v1/rmas?status=open&sdt=2018-12-01T00:00:00Z&limit=25" \
-H "Authorization: Bearer your_jwt_token"
{
"limit": 25,
"offset": 0,
"list_type": "detail",
"data": [
{
"id": "vf79fyn5-ec61-7892-ae7b-57a173b68133",
"customer_identifier": "rma123",
"manifest_id": "manifest001",
"return_type": "rma_submitted_by_customer",
"status": "open",
"package_id": "1z324897234nferg45",
"return_tracking_number": "9302020514103629166400",
"return_label_url": "https://app.masonhub.co/demo_account/api/v1/return-labels/demo1234.pdf",
"customer_address_name": "John Smith",
"customer_address_street_line_one": "100 First Ave",
"customer_address_street_line_two": "Apt 16",
"customer_address_city": "New York",
"customer_address_state": "NY",
"customer_address_postal_code": "10016",
"customer_address_country_code": "US",
"customer_instructions": "Dry clean before restocking",
"line_items": [
{
"customer_order_id": "54321",
"customer_sku_id": "shirts872340",
"quantity": 1,
"quantity_received": 0,
"return_reason_code": "tooBig",
"return_notes": "Didn't fit properly",
"return_inventory_status": "quality-control",
"not_on_original_rma": false
}
],
"created_at": "2018-12-01T08:30:00Z",
"updated_at": "2018-12-01T08:30:00Z"
}
]
}
​RMA Status Lifecycle
Understanding the status progression helps you track returns effectively:
Open
RMA created, awaiting return shipment from customer
Tendered
Return package tendered to carrier for pickup
In Transit
Return package is in transit to the facility
Delivered
Return package delivered to MasonHub facility
Received
Return items received and processed into inventory
Undeliverable
Return package could not be delivered (terminal status)
​Return Types
​Batch Queries
You can query multiple RMAs in a single request using arrays:
# Query by multiple RMA IDs
GET /rmas?id=vf79fyn5-ec61-7892-ae7b-57a173b68133&id=550e8400-e29b-41d4-a716-446655440000
# Query by date range and status
GET /rmas?status=received&sdt=2018-12-01T00:00:00Z&edt=2018-12-31T23:59:59Z
Maximum 30 identifiers per batch request for the id parameter. Exceeding this limit will result in a 400 error.
​Performance Tips
Use Date Ranges
Filter by sdt and edt to narrow down results instead of retrieving all RMAs.
Filter by Status
Use the status parameter to retrieve only RMAs in specific states.
Summary Lists
Use list_type=summary when you only need basic RMA information.
Appropriate Limits
Use reasonable limit values to avoid timeouts on large datasets.
​Return Label Access
Return label URLs require API authentication and contain customer personal information. Labels are time-limited for security.
To access a return label PDF:
curl -X GET "https://app.masonhub.co/{account}/api/v1/return-labels/demo1234.pdf" \
-H "Authorization: Bearer your_jwt_token"
curl -X GET "https://app.masonhub.co/{account}/api/v1/rmas?status=open&sdt=2018-12-01T00:00:00Z&limit=25" \
-H "Authorization: Bearer your_jwt_token"
curl --request GET \
--url https://sandbox.masonhub.co/dragonfly-cosmetics-demo/api/v1/rmas \
--header 'Authorization: Bearer <token>'{
"limit": 25,
"offset": 0,
"list_type": "detail",
"data": [
{
"id": "vf79fyn5-ec61-7892-ae7b-57a173b68133",
"customer_identifier": "rma123",
"manifest_id": "manifest001",
"return_type": "rma_submitted_by_customer",
"status": "open",
"package_id": "1z324897234nferg45",
"return_tracking_number": "9302020514103629166400",
"return_label_url": "https://app.masonhub.co/demo_account/api/v1/return-labels/demo1234.pdf",
"customer_address_name": "John Smith",
"customer_address_street_line_one": "100 First Ave",
"customer_address_street_line_two": "Apt 16",
"customer_address_city": "New York",
"customer_address_state": "NY",
"customer_address_postal_code": "10016",
"customer_address_country_code": "US",
"customer_instructions": "Dry clean before restocking",
"line_items": [
{
"customer_order_id": "54321",
"customer_sku_id": "shirts872340",
"quantity": 1,
"quantity_received": 0,
"return_reason_code": "tooBig",
"return_notes": "Didn't fit properly",
"return_inventory_status": "quality-control",
"not_on_original_rma": false
}
],
"created_at": "2018-12-01T08:30:00Z",
"updated_at": "2018-12-01T08:30:00Z"
}
]
}