MockHero

discount_code

Business

Generate realistic promotional discount codes like SAVE20, SUMMER50, WELCOME10. For e-commerce coupon and promotion system testing.

Example Outputs

SAVE20SUMMER50WELCOME10FLASH30VIP25

API Usage

Send a POST request to generate discount code data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "discount_code",
          "type": "discount_code"
        }
      ]
    }
  ]
}'

Common Use Cases

  • Coupon system testing
  • Promo code validation
  • Marketing campaign seeding

Quick Info

Field Type
discount_code
Category
Business
Parameters
None required
Output Format
JSON, CSV, SQL

Try it now

Generate discount code data instantly in the playground.

Generate Discount Code + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free