Retrieves the costs associated to a set of items billed for a single instance

GET /api/v2/billing/organizations/{organization_id}/costs/instances/{instance_id}/items

Retrieves the costs associated to a set of items billed for a single instance.

Path parameters

Query parameters

  • from string Required

    A datetime for the beginning of the desired range.

  • to string Required

    A datetime for the end of the desired range.

Responses

GET /api/v2/billing/organizations/{organization_id}/costs/instances/{instance_id}/items
curl \
 -X GET https://billing.elastic-cloud.com/api/v2/billing/organizations/{organization_id}/costs/instances/{instance_id}/items?from=2021-04-21T00%3A00%3A00%2B00%3A00&to=2021-04-21T00%3A00%3A00%2B00%3A00 \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "products": [
    {
      "product_line_items": [
        {
          "display_quantity": {
            "formatted_value": "string",
            "type": "default",
            "value": 42
          },
          "kind": "string",
          "name": "string",
          "quantities": [
            {
              "from": "2024-05-04T09:42:00+00:00",
              "quantity": {
                "formatted_value": "string",
                "value": 42
              },
              "rate": {
                "formatted_value": "string",
                "value": 42
              },
              "tiers": [
                {
                  "max": 42,
                  "min": 42,
                  "quantity": {
                    "formatted_value": "string",
                    "value": 42
                  },
                  "rate": {
                    "formatted_value": "string",
                    "value": 42
                  },
                  "total_ecu": 42
                }
              ],
              "to": "2024-05-04T09:42:00+00:00",
              "total_ecu": 42
            }
          ],
          "quantity": {
            "formatted_value": "string",
            "value": 42
          },
          "rate": {
            "formatted_value": "string",
            "value": 42
          },
          "sku": "string",
          "total_ecu": 42,
          "type": "string",
          "unit": "string"
        }
      ],
      "total_ecu": 42,
      "type": "string"
    }
  ],
  "total_ecu": 42
}