# subscription

**Scope required:** billing:read

For a complete list of possible response fields see the [Subscription](https://docs.bunny.com/developer/api-reference/types/subscription) type.

```graphql
query GetSubscription ($id: ID, $code: String, $format: String) {
  subscription (id: $id, code: $code, format: $format) {
    accountId
    cancellationDate
    createdAt
    currencyId
    currentPeriod
    customFieldsData
    daysLeftInTrial
    endDate
    evergreen
    hasCustomFields
    id
    name
    period
    priceAdjustmentAllowed
    priceAdjustmentLastDate
    priceAdjustmentPercentage
    priceListId
    provisioningRequired
    rampIntervalMonths
    renewalSummary
    renewalTermMonths
    startDate
    trialEndDate
    trialPeriod
    trialStartDate
    updatedAt
  }
}
```

## Arguments

| Name   | Type   | Description |
| ------ | ------ | ----------- |
| id     | ID     |             |
| code   | String |             |
| format | String |             |

## Response

* [Subscription](https://docs.bunny.com/developer/api-reference/types/subscription)
