---
search:
  tags:
    - Billing
    - GET
seo:
  description: >-
    Returns an organisation's plan with its prices and limits, its credit, what
    this… Reference for the GET /_luna/orgs/{org}/billing endpoint in the Luna
    API.
sidebar:
  label: Get the billing summary
  badge: GET
title: Get the billing summary
type: openapi-operation
---
Returns an organisation's plan with its prices and limits, its credit, what this month costs so far and what it is using right now.

`GET /_luna/orgs/{org}/billing`

**Responses**

- `200` — The billing summary.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "organisation": "string",
  "billing": "string",
  "plan": "string",
  "planDetails": {
    "name": "string",
    "title": "string",
    "description": "string",
    "highlights": [
      "string"
    ],
    "public": true,
    "order": 0,
    "rates": {
      "property1": 0.1,
      "property2": 0.1
    },
    "included": {
      "property1": 0.1,
      "property2": 0.1
    },
    "quotas": {
      "requestsPerSecond": null,
      "databaseBytes": null,
      "blobBytes": null,
      "egressBytesPerMonth": null,
      "ingressBytesPerMonth": null,
      "activeLunas": null,
      "sandboxes": null,
      "totalCpu": null,
      "totalMemoryMib": null,
      "lunaMemoryMib": null,
      "lunaCpu": null,
      "lunaDefaultMemoryMib": null,
      "lunaDefaultCpu": null,
      "lunaReserve": null,
      "historyDays": null
    },
    "monthlyCreditUsd": 0.1,
    "monthlyFeeUsd": 0.1,
    "effectiveFromMs": 0,
    "workerEgress": "none",
    "sandboxEgress": "none",
    "sandboxPublicPorts": true
  },
  "grant": {
    "fromMs": 0,
    "untilMs": 0,
    "ended": true
  },
  "rates": {
    "property1": 0.1,
    "property2": 0.1
  },
  "included": {
    "property1": 0.1,
    "property2": 0.1
  },
  "units": {
    "property1": "string",
    "property2": "string"
  },
  "scales": {
    "property1": 0.1,
    "property2": 0.1
  },
  "quotas": {
    "requestsPerSecond": null,
    "databaseBytes": null,
    "blobBytes": null,
    "egressBytesPerMonth": null,
    "ingressBytesPerMonth": null,
    "activeLunas": null,
    "sandboxes": null,
    "totalCpu": null,
    "totalMemoryMib": null,
    "lunaMemoryMib": null,
    "lunaCpu": null,
    "lunaDefaultMemoryMib": null,
    "lunaDefaultCpu": null,
    "lunaReserve": null,
    "historyDays": null
  },
  "subscription": {
    "status": "string",
    "feeUsd": 0.1,
    "periodEndMs": 0,
    "endsMs": 0,
    "then": {
      "name": "string",
      "title": "string"
    }
  },
  "credit": {
    "monthlyUsd": 0.1,
    "monthlyLeftUsd": 0.1,
    "toppedUpUsd": 0.1,
    "toppedUpLeftUsd": 0.1,
    "usedUsd": 0.1,
    "owedUsd": 0.1
  },
  "creditUsd": 0.1,
  "spentUsd": 0.1,
  "remainingCreditUsd": 0.1,
  "monthUsd": 0.1,
  "monthUsage": {
    "property1": 0,
    "property2": 0
  },
  "packages": {
    "property1": {
      "usage": {
        "property1": 0,
        "property2": 0
      },
      "costUsd": 0.1
    },
    "property2": {
      "usage": {
        "property1": 0,
        "property2": 0
      },
      "costUsd": 0.1
    }
  },
  "limits": {
    "hardCapUsd": null,
    "alertsUsd": []
  },
  "inUse": {
    "cores": 0.1,
    "memoryMib": 0,
    "activeLunas": 0,
    "sandboxes": 0,
    "limits": {
      "cores": 0,
      "memoryMib": 0,
      "activeLunas": 0,
      "sandboxes": 0
    }
  },
  "hasPaymentMethod": true,
  "paymentFailed": true,
  "outOfCreditSinceMs": 0,
  "paused": {
    "code": "string",
    "message": "string"
  },
  "warnings": [
    "string"
  ]
}
```
