amount
BusinessGenerate monetary amounts within configurable ranges. Alias for price — use whichever name fits your schema better.
Example Outputs
249.991500.0042.509.99Parameters
| Parameter | Description |
|---|---|
| min | Minimum amount |
| max | Maximum amount |
| precision | Decimal places |
API Usage
Send a POST request to generate amount 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": "amount",
"type": "amount",
"params": {
"min": 1,
"max": 100
}
}
]
}
]
}'Common Use Cases
- Transaction testing
- Payment processing
- Invoice amounts
- Balance displays
Quick Info
- Field Type
- amount
- Category
- Business
- Parameters
- 3 parameters
- Output Format
- JSON, CSV, SQL
Generate Amount + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.