[BUG] Marketplace API plan's 'price_model' values

In the documentation of the Marketplace API and related webhooks, the Plan’s price_model attribute is not explicitly documented but based on the examples someone could assume that supported values (notice lowercase and dash) are:

  • free
  • flat-rate
  • per-unit

In practice, however, the returned values (notice uppercase and underscore) are:

  • FREE
  • FLAT_RATE
  • PER_UNIT

Either the API has a bug or the documentation is incorrect?

In a private GitHub support ticket, a GitHub staff member confirmed the problem:

The returned values from the API are the source of truth.

We’ve shared your feedback with our Marketplace and Documentation teams now and apologize for any confusion.