#kabobbob

1 messages · Page 1 of 1 (latest)

zealous jackalBOT
dull moat
solar wharf
dull moat
#

I'll try that

dull moat
#

Doesn't seem to work. This post:

  "billing_scheme": "tiered",
  "recurring": {
    "interval": "month",
    "usage_type": "licensed",
    "interval_count": "3"
  },
  "currency": "usd",
  "nickname": "2024_model_api",
  "tiers": {
    "0": {
      "flat_amount": "0",
      "up_to": "1",
      "unit_amount_decimal": "0"
    },
    "1": {
      "flat_amount_decimal": "3750",
      "up_to": "1000000",
      "unit_amount_decimal": "0"
    },
    "2": {
      "flat_amount_decimal": "10000",
      "up_to": "inf",
      "unit_amount_decimal": "0"
    }
  },
  "product": "prod_...",
  "tiers_mode": "volume"
}```
creates the following price:
solar wharf
#

For the first tier, omit flat_amount and set unit_amount to what you want the flat fee to be

dull moat
#

Ah! I got it:

  "billing_scheme": "tiered",
  "recurring": {
    "interval": "month",
    "usage_type": "licensed",
    "interval_count": "3"
  },
  "currency": "usd",
  "nickname": "2024_tic_model_api",
  "tiers": {
    "0": {
      "up_to": "1",
      "unit_amount_decimal": "3750"
    },
    "1": {
      "flat_amount_decimal": "3750",
      "up_to": "1000000",
      "unit_amount_decimal": "0"
    },
    "2": {
      "flat_amount_decimal": "10000",
      "up_to": "inf",
      "unit_amount_decimal": "0"
    }
  },
  "product": "prod_Oo2gvO5AFkUOxJ",
  "tiers_mode": "volume"
}```
solar wharf
#

amazing!