Customer order placed in an e-commerce system. Contains order details, customer information, item counts, pricing breakdown (subtotal, tax, shipping), payment method, delivery address, and order status.
https://api.mockly.codes/orders?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/ordersGet a collection of orders
/commerce/orders/orders/:idGet a single order by ID
/commerce/orders/:id/orders/metaGet resource metadata and schema
/commerce/orders/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/orders?q=laptopGET https://api.mockly.codes/orders?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 orders
fetch('https://api.mockly.codes/orders?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/orders?count=10'
)
data = response.json()curl "https://api.mockly.codes/orders?count=10"fetch('https://api.mockly.codes/orders?nocache=true')idintegerUnique identifier for the order
random_intorder_numberstringHuman-readable order number or reference code for customer tracking
order_numbercustomer_idintegerForeign key reference to the customer who placed this order
random_intcustomer_namestringFull name of the customer who placed the order
namecustomer_emailstringEmail address of the customer for order confirmations and updates
emailemailitems_countintegerTotal number of distinct items/products in the order
random_intsubtotalnumberSum of all item prices before taxes and shipping
pricetaxnumberTotal tax amount calculated based on applicable tax rates
taxshippingnumberShipping and handling cost for the order
shipping_costtotalnumberFinal total amount including subtotal, tax, and shipping
pricecurrencystringISO currency code for all monetary values (e.g., USD, EUR, GBP)
currencystatusstringCurrent order status (e.g., pending, processing, shipped, delivered, cancelled, refunded)
order_statuspayment_methodstringPayment method used (e.g., credit_card, paypal, bank_transfer, cash_on_delivery)
payment_methodshipping_addressstringComplete delivery address where the order should be shipped
addresscreated_atstringTimestamp when the order was placed
past_datedate-timeupdated_atstringTimestamp when the order was last modified
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