---
title: "The prices in force, per SKU"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Billing API › Billing

`GET /v1/organizations/{orgId}/pricing`

## Authentication

Requires one of the following:

- `apiKey`, http, header `Authorization`
- `oauth`, http, header `Authorization`
- `sessionCookie`, apiKey, in cookie

## Path parameters

- `GetEffectivePrices.path.orgId` (string, required)
  - format `uuid`

## Query parameters

- `GetEffectivePrices.query.service` (string, optional)
- `GetEffectivePrices.query.region` (string, optional) — Global (*) SKUs are always included.
- `GetEffectivePrices.query.at` (string, optional) — A date or UTC time; default now.

## Code samples

### cURL

```curl
curl --request GET \
  --url https://billing.ezghcloud.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/pricing \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://billing.ezghcloud.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/pricing';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://billing.ezghcloud.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/pricing"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "organizationId": "string",
  "currency": "string",
  "at": "2019-08-24T14:15:22Z",
  "priceBook": {
    "book": "string",
    "version": 0,
    "effectiveFrom": "2019-08-24T14:15:22Z"
  },
  "prices": [
    {
      "sku": "string",
      "service": "string",
      "serviceName": "string",
      "meter": "string",
      "meterName": "string",
      "region": "string",
      "displayName": "string",
      "dimensions": {
        "property1": "string",
        "property2": "string"
      },
      "model": "string",
      "unit": "string",
      "per": "string",
      "displayUnit": "string",
      "tiers": [
        {
          "upTo": "string",
          "upToDisplay": "string",
          "unitPrice": "string"
        }
      ],
      "accumulator": "string",
      "freeQuantity": "string",
      "freeQuantityDisplay": "string",
      "freePeriod": "billing_period"
    }
  ]
}
```

- `GetEffectivePrices.response.200.organizationId` (string, required)
- `GetEffectivePrices.response.200.currency` (string, required)
- `GetEffectivePrices.response.200.at` (string, required)
  - format `date-time`
- `GetEffectivePrices.response.200.priceBook` (one of, required) — Null when no price book is in force yet.
  - one of: `object`, `null`
- `GetEffectivePrices.response.200.prices` (array<object>, required)
  - `GetEffectivePrices.response.200.prices.sku` (string, required)
  - `GetEffectivePrices.response.200.prices.service` (string, required)
  - `GetEffectivePrices.response.200.prices.serviceName` (string, required)
  - `GetEffectivePrices.response.200.prices.meter` (string, required)
  - `GetEffectivePrices.response.200.prices.meterName` (string, required)
  - `GetEffectivePrices.response.200.prices.region` (string, required) — A region, or * for global SKUs.
  - `GetEffectivePrices.response.200.prices.displayName` (string, required)
  - `GetEffectivePrices.response.200.prices.dimensions` (map<string>, required)
  - `GetEffectivePrices.response.200.prices.model` (string, required) — flat, graduated or volume.
  - `GetEffectivePrices.response.200.prices.unit` (string, required)
  - `GetEffectivePrices.response.200.prices.per` (string, required) — unitPrice is per this many of unit.
    - pattern `^-?[0-9]+(\.[0-9]+)?$`
  - `GetEffectivePrices.response.200.prices.displayUnit` (string, required) — per of unit, in words: hour, GB-hour, million requests.
  - `GetEffectivePrices.response.200.prices.tiers` (array<object>, required)
    - `GetEffectivePrices.response.200.prices.tiers.upTo` (string | null, required) — In unit; null for the last tier.
    - `GetEffectivePrices.response.200.prices.tiers.upToDisplay` (string | null, required) — In display units; null for the last tier.
    - `GetEffectivePrices.response.200.prices.tiers.unitPrice` (string, required) — Dollars per displayUnit.
      - pattern `^-?[0-9]+(\.[0-9]+)?$`
  - `GetEffectivePrices.response.200.prices.accumulator` (string, required) — SKUs sharing it count together toward tiers and the free allowance.
  - `GetEffectivePrices.response.200.prices.freeQuantity` (string, required) — Free each billing period, in unit.
    - pattern `^-?[0-9]+(\.[0-9]+)?$`
  - `GetEffectivePrices.response.200.prices.freeQuantityDisplay` (string, required)
  - `GetEffectivePrices.response.200.prices.freePeriod` (string, required)
    - one of `"billing_period"`

### 400

invalid_request: the request is malformed (with issues), or invalid_cursor.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "issues": [
      {
        "path": "string",
        "message": "string"
      }
    ]
  }
}
```

- `GetEffectivePrices.response.400.error` (object, required)
  - `GetEffectivePrices.response.400.error.code` (string, required) — What went wrong, for programs: branch on this, never on message.
  - `GetEffectivePrices.response.400.error.message` (string, required) — What went wrong, for people.
  - `GetEffectivePrices.response.400.error.issues` (array<object>, optional) — With invalid_request: each invalid field.
    - `GetEffectivePrices.response.400.error.issues.path` (string, required)
    - `GetEffectivePrices.response.400.error.issues.message` (string, required)

### 401

unauthenticated: no valid credential.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "issues": [
      {
        "path": "string",
        "message": "string"
      }
    ]
  }
}
```

- `GetEffectivePrices.response.401.error` (object, required)
  - `GetEffectivePrices.response.401.error.code` (string, required) — What went wrong, for programs: branch on this, never on message.
  - `GetEffectivePrices.response.401.error.message` (string, required) — What went wrong, for people.
  - `GetEffectivePrices.response.401.error.issues` (array<object>, optional) — With invalid_request: each invalid field.
    - `GetEffectivePrices.response.401.error.issues.path` (string, required)
    - `GetEffectivePrices.response.401.error.issues.message` (string, required)

### 403

access_denied: the caller isn't allowed to (the message names the action); forbidden_origin: a cookie-authenticated write from another site.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "issues": [
      {
        "path": "string",
        "message": "string"
      }
    ]
  }
}
```

- `GetEffectivePrices.response.403.error` (object, required)
  - `GetEffectivePrices.response.403.error.code` (string, required) — What went wrong, for programs: branch on this, never on message.
  - `GetEffectivePrices.response.403.error.message` (string, required) — What went wrong, for people.
  - `GetEffectivePrices.response.403.error.issues` (array<object>, optional) — With invalid_request: each invalid field.
    - `GetEffectivePrices.response.403.error.issues.path` (string, required)
    - `GetEffectivePrices.response.403.error.issues.message` (string, required)

### 404

not_found: the organization (or one the caller doesn't belong to), or the resource, doesn't exist.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "issues": [
      {
        "path": "string",
        "message": "string"
      }
    ]
  }
}
```

- `GetEffectivePrices.response.404.error` (object, required)
  - `GetEffectivePrices.response.404.error.code` (string, required) — What went wrong, for programs: branch on this, never on message.
  - `GetEffectivePrices.response.404.error.message` (string, required) — What went wrong, for people.
  - `GetEffectivePrices.response.404.error.issues` (array<object>, optional) — With invalid_request: each invalid field.
    - `GetEffectivePrices.response.404.error.issues.path` (string, required)
    - `GetEffectivePrices.response.404.error.issues.message` (string, required)

### 429

too_many_requests: slow down.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "issues": [
      {
        "path": "string",
        "message": "string"
      }
    ]
  }
}
```

- `GetEffectivePrices.response.429.error` (object, required)
  - `GetEffectivePrices.response.429.error.code` (string, required) — What went wrong, for programs: branch on this, never on message.
  - `GetEffectivePrices.response.429.error.message` (string, required) — What went wrong, for people.
  - `GetEffectivePrices.response.429.error.issues` (array<object>, optional) — With invalid_request: each invalid field.
    - `GetEffectivePrices.response.429.error.issues.path` (string, required)
    - `GetEffectivePrices.response.429.error.issues.message` (string, required)

### 500

internal_error: a bug; the details are in the logs, under the request ID.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "issues": [
      {
        "path": "string",
        "message": "string"
      }
    ]
  }
}
```

- `GetEffectivePrices.response.500.error` (object, required)
  - `GetEffectivePrices.response.500.error.code` (string, required) — What went wrong, for programs: branch on this, never on message.
  - `GetEffectivePrices.response.500.error.message` (string, required) — What went wrong, for people.
  - `GetEffectivePrices.response.500.error.issues` (array<object>, optional) — With invalid_request: each invalid field.
    - `GetEffectivePrices.response.500.error.issues.path` (string, required)
    - `GetEffectivePrices.response.500.error.issues.message` (string, required)

### 503

unavailable, ledger_unavailable or payments_unavailable: retry later.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "issues": [
      {
        "path": "string",
        "message": "string"
      }
    ]
  }
}
```

- `GetEffectivePrices.response.503.error` (object, required)
  - `GetEffectivePrices.response.503.error.code` (string, required) — What went wrong, for programs: branch on this, never on message.
  - `GetEffectivePrices.response.503.error.message` (string, required) — What went wrong, for people.
  - `GetEffectivePrices.response.503.error.issues` (array<object>, optional) — With invalid_request: each invalid field.
    - `GetEffectivePrices.response.503.error.issues.path` (string, required)
    - `GetEffectivePrices.response.503.error.issues.message` (string, required)


Source: https://docs.ezghcloud.com/billing-api/Billing/GetEffectivePrices/index.md
