Skip to content

Enhanced billing platform response schema is wrong #39074

Closed
@DocEmmetBrown

Description

@DocEmmetBrown

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/enterprise-cloud@latest/rest/billing/enhanced-billing?apiVersion=2022-11-28#get-billing-usage-report-for-an-organization

What part(s) of the article would you like to see updated?

the "response schema" has:

   "quantity": {
            "type": "integer",
            "description": "Quantity of the usage line item."
          },

and it turns out that in the actual response from the API, the quantity field is a float, not an int.

Real life example:

  "usageItems": [
    {
      "date": "2025-01-01T00:00:00Z",
      "product": "actions",
      "sku": "Actions storage",
      "quantity": 5.801260062,
      "unitType": "GigabyteHours",
      "pricePerUnit": 0.00033602,
      "grossAmount": 0.001949096,
      "discountAmount": 0.001949096,
      "netAmount": 0.0,
      "organizationName": "octokit",
      "repositoryName": "octokit"
    },
...

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamfix-internallyTriggers a workflow to copy the issue internally and close the current issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions