# Get your YoPrint subscription

```http
GET https://secure.yoprint.com/v1/api/store/{team_slug}/setting/subscription/current
```

- API version: v1
- Operation ID: `v1_public_setting_subscription_current_show`
- Section: Team settings › [YoPrint subscription](https://developer.yoprint.com/reference/yoprint-subscription.md)
- Web page: https://developer.yoprint.com/reference/yoprint-subscription/v1-setting-subscription-current-show/
- Authentication: `Authorization: Bearer YOUR_API_KEY`

Returns the team's current YoPrint subscription: its plan and extras, price, state, dates and the card on file (brand and last four digits only). A team with no subscription (for example during a trial) gets 422 `no_active_plan`. Reading it changes nothing.

## Permission

The team owner, or a member with the Manage Billing permission. Manage Settings alone is not enough.

## Path parameters

- `team_slug` (string, required): Your team slug, shown as Team ID next to your API key in Profile. Example `your-team`.

## Request body

This operation takes no request body.

### Example request

```bash
curl 'https://secure.yoprint.com/v1/api/store/your-team/setting/subscription/current' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'X-Yoprint-Decimal-Format: exact-v1'
```

## Response

`200` Successful response.

Fields:

- `data` (object, required)
  - `active` (boolean, required): Whether YoPrint treats the subscription as active now.
  - `billing_cycle` (string, required): One of: `"monthly"`, `"annually"`.
  - `plan` (object, required)
    - `id` (string, required): Send it as `new_plan` to preview and checkout.
    - `name` (string, required)
    - `type` (string, required): `paid` for a plan you subscribe to.
    - `billing_cycle` (string, optional): One of: `"monthly"`, `"annually"`.
    - `config_option` (array of objects | null, optional)
      - Each item:
        - `id` (string, optional): The `config[].type` to send to preview and checkout. One of: `"warehouse"`, `"pricing_group"`, `"user_limit"`, `"pricing_rule"`.
        - `included` (integer, optional): How many the plan includes.
        - `label` (string, optional)
        - `max` (integer, optional)
        - `min` (integer, optional): The smallest `config[].value`: what the plan includes.
        - `price` (object, optional): The price of each extra one; `{"type": "none"}` when the plan sells none.
        - `type` (string, optional)
    - `configurable` (boolean, optional): Whether extras can be added (`config_option`).
    - `display_features` (array | object, optional): What the plan includes, as the pricing page lists it: rows of `{text, tooltip, has_tooltip, is_bold, is_new}`.
    - `free` (boolean, optional)
    - `is_archived` (boolean, optional): An old plan, still listed when YoPrint gave it to your team privately.
    - `price` (integer, optional): The plan's price per billing cycle before extras, coupons and tax. Thousandths, an older encoding: `39000` is 39.00. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (`1234.5` is 1.2345), or as a string (`"1234.5"`) when you send `X-Yoprint-Decimal-Format: exact-v1`. See [Money and quantities](/concepts/money-and-quantities/).
    - `trial_plan_id` (string | null, optional): Send it as `plan_id` to choose this plan for a trial.
  - `price` (integer, required): What each billing cycle costs, with extras. Thousandths, an older encoding: `69000` is 69.00. Usually a whole number; an amount finer than a thousandth comes back as a number with a fraction (`1234.5` is 1.2345), or as a string (`"1234.5"`) when you send `X-Yoprint-Decimal-Format: exact-v1`. See [Money and quantities](/concepts/money-and-quantities/).
  - `status` (string, required): The subscription's state at Stripe, as YoPrint last saw it.
  - `attempt_count` (integer | null, optional): Failed payment attempts on the open invoice.
  - `config_option` (array | object | null, optional): The limits on this subscription, as `{type, value}` for `warehouse`, `pricing_group`, `user_limit` and `pricing_rule`; `[]` when the plan has no extras.
  - `ends_at` (string (date-time) | null, optional): Set when a cancellation is scheduled: the plan ends then.
  - `features` (object | array, optional): The plan's features and limits.
  - `last_invoice_date` (string (date-time) | null, optional)
  - `last_warning_sent` (integer | boolean, optional): Whether a payment warning was sent, as the database keeps it: `0` or `1`.
  - `next_payment_attempt` (string (date-time) | null, optional)
  - `stripe_card_brand` (string | null, optional)
  - `stripe_card_last_four` (string | null, optional)
  - `trial_ends_at` (string (date-time) | null, optional)
- `status` (integer, required)
- `success` (boolean, required)

Example response:

```json
{
  "data": {
    "active": true,
    "attempt_count": null,
    "billing_cycle": "monthly",
    "config_option": [
      {
        "type": "warehouse",
        "value": 1
      },
      {
        "type": "pricing_group",
        "value": 1
      },
      {
        "type": "user_limit",
        "value": 5
      },
      {
        "type": "pricing_rule",
        "value": 5
      }
    ],
    "ends_at": null,
    "features": {
      "api_access": true,
      "customer_portal": true,
      "job_list": true
    },
    "last_invoice_date": "2026-10-01T00:00:00+00:00",
    "last_warning_sent": 0,
    "next_payment_attempt": null,
    "plan": {
      "billing_cycle": "monthly",
      "config_option": [
        {
          "id": "user_limit",
          "included": 3,
          "label": "Users",
          "max": 100,
          "min": 3,
          "price": {
            "type": "none"
          },
          "type": "number"
        }
      ],
      "configurable": true,
      "display_features": [
        {
          "has_tooltip": false,
          "is_bold": true,
          "is_new": false,
          "text": "3 Users Included",
          "tooltip": ""
        }
      ],
      "free": false,
      "id": "starter-monthly-v2",
      "is_archived": false,
      "name": "Starter",
      "price": 39000,
      "trial_plan_id": "starter-trial",
      "type": "paid"
    },
    "price": 69000,
    "status": "active",
    "stripe_card_brand": "Visa",
    "stripe_card_last_four": "4242",
    "trial_ends_at": null
  },
  "status": 200,
  "success": true
}
```

## Errors

- `401` The API key is missing or wrong (`unauthenticated`).
- `403` You are not allowed to do this. `api_access_not_in_plan`: your team's plan doesn't include API access (Pro and above, with an active subscription or trial), so every request answers this until the team upgrades. When your role lacks the permission the operation needs, the body is only `{"message": "Insufficient Permission"}`. Other refusals use the error envelope, with `unauthorized` or `user_is_not_authorized`.
  - When: You are not the owner and your role lacks Manage Billing. The body is `{"message": "Insufficient Permission"}`, without the error envelope. Fix: Use the owner's key, or that of a member with Manage Billing.
- `404` Not found. `page_not_found`: the team slug is unknown, you are not a member of the team, or an id in the path is not one of this team's. `code: null`, with a message that starts "No query results for": there is no record with that id.
- `422` The request was refused and changed nothing. `validation_failed` lists what to fix in `error.fields`; other codes name a business rule, explained in `error.message`. A few checks answer with only `{"message": "..."}`. An operation that calls another service (a payment provider, a carrier, an accounting app) can answer `connect_timeout` ("Please retry again") when that service does not answer in time: the change may or may not have happened there, so read the record back before you retry.
  - When: The team has no subscription: `error.code` `no_active_plan`. Fix: Choose a plan with checkout.

## Notes

- Part of your YoPrint subscription: what your shop pays YoPrint, not your customers' payments.
- AI apps (MCP connections) can't call this operation: they get 403 `agent_operation_not_available`. Use a personal API key.

## Related

- [Subscribe to or change your YoPrint plan](https://developer.yoprint.com/reference/yoprint-subscription/v1-setting-subscription-plan-checkout.md): `POST /v1/api/store/{team_slug}/setting/subscription/plan/checkout`
- [Cancel your YoPrint subscription](https://developer.yoprint.com/reference/yoprint-subscription/v1-setting-subscription-current-cancel.md): `PATCH /v1/api/store/{team_slug}/setting/subscription/current/cancel`
