# Stripe Candidate Code & Import Script Generator

Generate candidate strings, a CSV template and a local Node.js importer. This website does not create codes in Stripe or track redemptions. Running the importer needs your Stripe API key on your own machine.

> Canonical page: https://test.elysiatools.com/en/tools/stripe-promo-code-batch-generator

- **Category:** Development

- **Keywords:** stripe, candidate code, coupon, import script, promo code, CSV template

## Overview

This server-side generator packages candidate codes, a CSV template and a Node.js importer without connecting your Stripe account. Candidates are not active discounts. Existing-account and global uniqueness are not checked. Seeded output is reproducible, not a security secret. CSV redemption fields are empty placeholders, not live tracking. Inspect and run the importer locally with your own Stripe API key to create actual resources; DRY_RUN creates nothing. Stripe validates restrictions, availability and API compatibility. Idempotent retries are not guaranteed indefinitely.

## Inputs

- **Campaign name** (text): e.g. black-friday-2026
- **Number of codes** (number)
- **Prefix** (text): e.g. BF26- (letters, digits, dashes)
- **Suffix** (text): e.g. -VIP
- **Random body length** (number)
- **Character set** (select)
- **Exclude ambiguous characters (0, O, 1, I, L)** (checkbox)
- **Seed (blank = random)** (text): reuse a seed to regenerate the same batch
- **Discount type** (select)
- **Percent off (%)** (number)
- **Amount off** (number)
- **Currency (3-letter ISO)** (text): usd
- **Duration** (select)
- **Repeat for how many months** (number)
- **Max redemptions per code (0 = unlimited)** (number)
- **Expire date (optional)** (date)
- **First-time customers only** (checkbox)

## When to use

- Preparing large batches of single-use or limited-redemption promotion codes for marketing launches without connecting your Stripe dashboard to third-party tools.
- Standardizing coupon formats across campaigns using customizable prefixes, suffixes, and character sets that filter out confusing characters like 0, O, 1, and I.
- Exporting an idempotent Node.js script and companion CSV to inspect, test with DRY_RUN, and execute securely from your local developer environment.

## How it works

- Configure campaign parameters including discount type (percentage or fixed amount), redemption limits, character sets, and code length.
- Optionally provide a seed string to generate a deterministic, reproducible set of candidate promotion codes.
- Download the generated package containing candidate strings, a formatted CSV template, and a standalone Node.js import script.
- Inspect the script and execute it locally using your private Stripe API key to create coupons and promotion codes in your own Stripe account.

## Use cases

- E-commerce stores generating single-use checkout promotion codes for seasonal campaigns like Black Friday.
- SaaS platforms preparing targeted referral discount codes restricted to first-time subscribers.
- Developers needing reproducible promo code test fixtures and import scripts for staging environments.

## Frequently asked questions

### Does this tool automatically create promotion codes in my Stripe account?

No. The tool generates candidate strings, a CSV file, and a Node.js script. You run the script locally with your own Stripe API key to create the codes.

### Are candidate codes guaranteed to be unique within my Stripe account?

No. The generator ensures internal uniqueness within the generated batch, but it cannot inspect your existing Stripe account data to check for previous duplicates.

### Can I test the import script before creating live resources in Stripe?

Yes. The generated Node.js script includes a DRY_RUN mode so you can preview requests and validate your CSV data without creating resources in Stripe.

### What is the purpose of the seed parameter?

Entering a seed string ensures deterministic pseudorandom generation, allowing you to recreate the exact same batch of codes later if needed.

### Does the CSV track live code redemptions?

No. Redemption columns in the exported CSV are blank structural templates intended for local logging or reference, not live analytics.

## Related tools

- [Barcode Batch Generator](https://test.elysiatools.com/en/tools/barcode-batch-generator): Batch generate Code 128, EAN-13, UPC-A, ITF-14, QR Code, and Data Matrix outputs from CSV or multiline text
- [CSV Histogram, Scatter and Box Plot Chart Studio](https://test.elysiatools.com/en/tools/csv-histogram-scatter-box-plot-chart-studio): Upload or paste a CSV and chart it instantly: histograms with Sturges / Freedman-Diaconis / Scott binning, scatter plots with Pearson r and a least-squares fit, and Tukey box plots — every chart downloadable as PNG and SVG.
- [CSV Splitter](https://test.elysiatools.com/en/tools/csv-splitter): Split CSV content by specified number of rows per file. Perfect for processing large datasets, dividing data for analysis, batch processing, and managing file size limits. Features: - Split CSV by row count - Support multiple output formats - Preserve header row in each split - Flexible output format options - Support for large datasets - Fast and efficient processing Common Use Cases: - Split large CSV files for processing - Divide data for parallel processing - Create manageable data chunks - Export data in different formats - Prepare data for batch operations - Manage file size limitations
- [CSV to Database Migration Planner](https://test.elysiatools.com/en/tools/csv-to-database-migration-planner): Infer a relational schema from CSV data and generate create-table plus ALTER migration plans for PostgreSQL, MySQL, SQLite, or SQL Server
- [Fitness Workout PDF Generator](https://test.elysiatools.com/en/tools/fitness-workout-pdf-generator): Generate a printable workout-plan PDF from JSON or CSV data with exercise tables, progress boxes, and optional QR video links
- [JSON-LD Generator from CSV](https://test.elysiatools.com/en/tools/json-ld-generator-from-csv): Turn CSV or Excel rows into Schema.org JSON-LD for articles, products, or events, with validation-ready output for SEO workflows
- [AI Lead Generation Quiz Builder](https://test.elysiatools.com/en/tools/ai-lead-generation-quiz-builder): Create 3–10 editable questions with profile or score results, a share link and voluntary email collection with CSV export.
- [Mock Data Prefix / Abbreviation Conflict Detector](https://test.elysiatools.com/en/tools/mock-data-naming-conflict-detector): Detect visually confusing field names and prefix collisions in CSV, JSON, or schema inputs, then suggest clearer renames

## Samples

- [CSV Samples](https://test.elysiatools.com/en/samples/csv-samples): Sample CSV files with various data types, sizes, and complexity levels
- [Windows String Processing - C# Samples](https://test.elysiatools.com/en/samples/windows-string-processing-csharp): Comprehensive C# string processing examples for Windows platform including string manipulation, splitting, joining, regex operations, and text analysis
- [Python Samples](https://test.elysiatools.com/en/samples/python): Essential Python code examples and Hello World demonstrations
- [Import Path Examples](https://test.elysiatools.com/en/samples/import-path-examples): Collection of JavaScript and TypeScript import examples demonstrating various import patterns and module systems

## Related content

- [Stripe Promo Code Batch Review and Import Preflight](https://test.elysiatools.com/en/hubs/stripe-promo-code-batch-review-and-import-preflight): Review candidate codes, reconcile CSV and embedded importer data, inspect revisions and record a local dry run before approving a Stripe import package.
