MockHero

sequence

Logic

Generate auto-incrementing sequences with optional prefix and suffix. Create order numbers (ORD-1001), ticket IDs (TICK-0001), or any sequential pattern.

Example Outputs

ORD-1001ORD-1002TICK-0001INV-2026-001

Parameters

ParameterDescription
startStarting number
stepIncrement
prefixPrefix string
suffixSuffix string

API Usage

Send a POST request to generate sequence 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": "sequence",
          "type": "sequence"
        }
      ]
    }
  ]
}'

Common Use Cases

  • Order number generation
  • Ticket ID creation
  • Invoice numbering
  • Sequential reference codes

Quick Info

Field Type
sequence
Category
Logic
Parameters
4 parameters
Output Format
JSON, CSV, SQL

Try it now

Generate sequence data instantly in the playground.

Generate Sequence + 155 more types via API

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

Get Started Free