Mocking.Dev

Coupon Codes

Generate API-ready mock data from this preset schema using the hosted mocking.dev faker API.

Customize schema

Edit, reorder, add, or remove fields before generating mock data from this preset.

Example mock data

This preview always requests one generated item from faker.mocking.dev, regardless of the download count.

Frequently asked questions

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.

What fields are included in the Coupon Codes preset?

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.

What can I test with the Coupon Codes preset?

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.

How do I generate and download mock data?

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.

Does this mock data generator use Faker.js?

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.

Does generated mock data contain real personal information?

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.

Similar mock data presets