MockHero

amount

Business

Generate monetary amounts within configurable ranges. Alias for price — use whichever name fits your schema better.

Example Outputs

249.991500.0042.509.99

Parameters

ParameterDescription
minMinimum amount
maxMaximum amount
precisionDecimal 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

Try it now

Generate amount data instantly in the playground.

Generate Amount + 155 more types via API

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

Get Started Free