Product return request initiated by a customer. Tracks return reason, status, refund amount, request date, and processing completion date.
https://api.mockly.codes/returns?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/returnsGet a collection of returns
/commerce/returns/returns/:idGet a single return by ID
/commerce/returns/:id/returns/metaGet resource metadata and schema
/commerce/returns/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/returns?q=laptopGET https://api.mockly.codes/returns?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 returns
fetch('https://api.mockly.codes/returns?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/returns?count=10'
)
data = response.json()curl "https://api.mockly.codes/returns?count=10"fetch('https://api.mockly.codes/returns?nocache=true')idintegerUnique identifier for the return request
random_intorder_idintegerForeign key reference to the original order being returned
random_intreasonstringReason for the return (e.g., defective item, wrong size, not as described, changed mind)
sentencestatusstringCurrent return status (e.g., requested, approved, in_transit, received, processed, rejected)
statusrefund_amountnumberAmount to be refunded to the customer for this return
pricerequested_datestringTimestamp when the customer requested the return
past_datedate-timeprocessed_datestringTimestamp when the return was fully processed and refund issued
past_datedate-timecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request