sequence
LogicGenerate 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-001Parameters
| Parameter | Description |
|---|---|
| start | Starting number |
| step | Increment |
| prefix | Prefix string |
| suffix | Suffix 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
Related Types
Generate Sequence + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.