This template produces 3 to 8 orders. Each order has an ID, one of five statuses (pending, paid, shipped, delivered or refunded), a placement date in 2024 or 2025, a customer with a name and email, one to four line items with a product name, quantity and unit price, and a payment block with a card issuer and card number. The card numbers are random and do not belong to anyone.
Open in JSON GeneratorPaste this into the JSON Generator to produce data like the sample below.
{
"orders": [
"repeat(3,8)",
{
"orderId": "objectId()",
"status": "enum(pending, paid, shipped, delivered, refunded)",
"placedAt": "date(2024-01-01, 2025-12-31)",
"customer": {
"name": "firstName() lastName()",
"email": "email()"
},
"items": [
"repeat(1,4)",
{
"product": "productName()",
"quantity": "int(1,5)",
"unitPrice": "double(5,250,2)"
}
],
"payment": {
"issuer": "creditCardIssuer()",
"card": "creditCardNumber()"
}
}
]
}| Field | Template | What it generates |
|---|---|---|
orders[] | repeat(3,8) | An array of 3–8 items |
orders[].orderId | objectId() |
|
orders[].status | enum(pending, paid, shipped, delivered, refunded) |
|
orders[].placedAt | date(2024-01-01, 2025-12-31) |
|
orders[].customer.name | firstName() lastName() |
|
orders[].customer.email | email() |
|
orders[].items[] | repeat(1,4) | An array of 1–4 items |
orders[].items[].product | productName() |
|
orders[].items[].quantity | int(1,5) |
|
orders[].items[].unitPrice | double(5,250,2) |
|
orders[].payment.issuer | creditCardIssuer() |
|
orders[].payment.card | creditCardNumber() |
|
The first 2 items of each list from one run of the template. Every click on Generate produces new data.
{
"orders": [
{
"orderId": "6b0e1c05a1920ac0471796ef",
"status": "delivered",
"placedAt": "2025-03-30T08:54:52.282Z",
"customer": {
"name": "Norval Hickle",
"email": "Clair_Zieme20@yahoo.com"
},
"items": [
{
"product": "Generic Concrete Soap",
"quantity": 1,
"unitPrice": 233.53
},
{
"product": "Licensed Marble Bike",
"quantity": 5,
"unitPrice": 7.01
},
{
"product": "Small Steel Bacon",
"quantity": 2,
"unitPrice": 177.55
},
{
"product": "Practical Steel Ball",
"quantity": 5,
"unitPrice": 20.74
}
],
"payment": {
"issuer": "jcb",
"card": "3036-894464-2847"
}
},
{
"orderId": "6b0e1c053c741e2b0532aef7",
"status": "delivered",
"placedAt": "2024-11-22T21:21:13.348Z",
"customer": {
"name": "Sebastian Schaefer",
"email": "Jaycee73@yahoo.com"
},
"items": [
{
"product": "Tasty Steel Soap",
"quantity": 4,
"unitPrice": 135.62
}
],
"payment": {
"issuer": "discover",
"card": "3637-547045-8047"
}
}
]
}More sample data: User profiles, Product catalog, Addresses, Flight bookings, Network logs, Employee directory.
See the template tag reference for every tag, browse all examples, or turn your generated data into a contract with the JSON Schema Generator.