# List paid plan prices

`GET /v1/billing/plans`

## Authentication

None.

## Responses

### 200

Prices of the paid plans, from Stripe, and the public offer if one is running.

`application/json`

```json
{
  "additionalProperties": false,
  "description": "Prices of the paid plans, from Stripe, and the public offer if one is running.",
  "properties": {
    "offer": {
      "anyOf": [
        {
          "additionalProperties": false,
          "description": "The public offer: applied automatically to an organization's first subscription of a covered plan. Null when there is none.",
          "properties": {
            "duration": {
              "anyOf": [
                {
                  "enum": [
                    "once"
                  ],
                  "type": "string"
                },
                {
                  "enum": [
                    "repeating"
                  ],
                  "type": "string"
                },
                {
                  "enum": [
                    "forever"
                  ],
                  "type": "string"
                }
              ]
            },
            "duration_in_months": {
              "anyOf": [
                {
                  "description": "Months the discount lasts when duration is repeating.",
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ]
            },
            "expires_at": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "percent_off": {
              "description": "Percentage off the plan price, below 100.",
              "type": "number"
            },
            "plans": {
              "description": "Plans the offer covers.",
              "items": {
                "anyOf": [
                  {
                    "enum": [
                      "pro"
                    ],
                    "type": "string"
                  },
                  {
                    "enum": [
                      "team"
                    ],
                    "type": "string"
                  }
                ]
              },
              "type": "array"
            }
          },
          "required": [
            "percent_off",
            "duration",
            "duration_in_months",
            "plans",
            "expires_at"
          ],
          "type": "object"
        },
        {
          "type": "null"
        }
      ]
    },
    "plans": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "Price per month in the smallest currency unit (cents), before tax.",
            "type": "integer"
          },
          "currency": {
            "type": "string"
          },
          "interval": {
            "enum": [
              "month"
            ],
            "type": "string"
          },
          "offer_amount": {
            "anyOf": [
              {
                "description": "Price per month during the public offer, in cents, before tax; null when no public offer covers this plan.",
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "plan_id": {
            "anyOf": [
              {
                "enum": [
                  "pro"
                ],
                "type": "string"
              },
              {
                "enum": [
                  "team"
                ],
                "type": "string"
              }
            ]
          }
        },
        "required": [
          "plan_id",
          "amount",
          "currency",
          "interval",
          "offer_amount"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "plans",
    "offer"
  ],
  "type": "object"
}
```

### 502

billing-provider-error: the payment provider failed or did not answer.

Problem type: [billing-provider-error](https://docs.dlogify.com/errors/billing-provider-error.md).

### 503

billing-unavailable: billing is not configured or the prices are missing.

Problem type: [billing-unavailable](https://docs.dlogify.com/errors/billing-unavailable.md).

## Example

```bash
curl -X GET "https://api.dlogify.com/v1/billing/plans"
```

Source: https://docs.dlogify.com/api/billing/getBillingPlans
