What is the Coupon Codes mock data preset useful for?
The Coupon Codes preset supplies promotional codes, discount percentages, minimum order amounts, usage limits, redemption counts, active states, and validity dates for ecommerce campaigns.
Generate API-ready mock data from this preset schema using the hosted mocking.dev faker API.
Edit, reorder, add, or remove fields before generating mock data from this preset.
This preview always requests one generated item from faker.mocking.dev, regardless of the download count.
The Coupon Codes preset supplies promotional codes, discount percentages, minimum order amounts, usage limits, redemption counts, active states, and validity dates for ecommerce campaigns.
The Coupon Codes preset includes these top-level fields: id, code, discountPercent, minimumOrderAmount, usageLimit, redemptionCount, isActive, startsAt, expiresAt. You can rename, remove, or extend the fields before generating data, including nested objects and arrays where supported.
Use it to test coupon tables, active and expired states, discount validation, usage limits, minimum-spend rules, campaign filters, and CSV export or import flows.
Customize the fields, row count, seed, and locale in the editor. The preview updates as you make changes, and you can download the generated records as a JSON file when the schema is ready.
Yes. mocking.dev uses Faker.js through its mock data API to generate names, emails, dates, numbers, locations, commerce data, and other realistic values. The seed makes results repeatable, while the locale controls regional data.
No. The records are synthetic and intended for development, demos, fixtures, and automated tests. Generated values can resemble real information by coincidence, so do not treat them as verified identities or use them to contact people.
{
id: string;
isbn: string;
title: string;
author: string;
publisher: string;
category: string;
unitPrice: string;
stockQuantity: number;
publishedAt: string;
}{
id: string;
productId: string;
authorName: string;
authorAvatarUrl: string;
rating: number;
title: string;
comment: string;
isVerifiedPurchase: boolean;
helpfulCount: number;
createdAt: string;
}{
id: string;
orderId: string;
amount: string;
currency: string;
status: string;
customer: {
id: string;
name: string;
email: string;
};
paymentMethod: {
brand: string;
last4: number;
countryCode: string;
};
billingAddress: {
line1: string;
city: string;
state: string;
postalCode: string;
countryCode: string;
};
createdAt: string;
}