price
BusinessGenerate realistic price values within configurable ranges. Supports custom precision for currencies that need 2 decimal places or whole numbers.
Example Outputs
79.9512.99249.004.501299.99Parameters
| Parameter | Description |
|---|---|
| min | Minimum price |
| max | Maximum price |
| precision | Decimal places |
API Usage
Send a POST request to generate price 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": "price",
"type": "price",
"params": {
"min": 1,
"max": 100
}
}
]
}
]
}'Common Use Cases
- E-commerce testing
- Invoice generation
- Price display testing
- Currency formatting tests
Quick Info
- Field Type
- price
- Category
- Business
- Parameters
- 3 parameters
- Output Format
- JSON, CSV, SQL
Related Types
Generate Price + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.