Refund transaction record for returning money to a customer. Tracks refund amount, reason, status, processing date, and associated order.
https://api.mockly.codes/refunds?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/refundsGet a collection of refunds
/commerce/refunds/refunds/:idGet a single refund by ID
/commerce/refunds/:id/refunds/metaGet resource metadata and schema
/commerce/refunds/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/refunds?q=laptopGET https://api.mockly.codes/refunds?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 refunds
fetch('https://api.mockly.codes/refunds?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/refunds?count=10'
)
data = response.json()curl "https://api.mockly.codes/refunds?count=10"fetch('https://api.mockly.codes/refunds?nocache=true')idintegerUnique identifier for the refund record
random_intorder_idintegerForeign key reference to the order this refund is associated with
random_intamountnumberRefund amount to be returned to the customer
pricecurrencystringISO currency code for the refund amount (e.g., USD, EUR, GBP)
currencyreasonstringReason for the refund (e.g., defective product, wrong item, customer request)
sentencestatusstringCurrent refund status (e.g., pending, processing, completed, cancelled)
statusprocessed_datestringTimestamp when the refund was processed and funds were returned
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