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

# Get subscription

> Developer API operation for GET /dev/v1/subscriptions/{id}.



## OpenAPI

````yaml /openapi.json get /dev/v1/subscriptions/{id}
openapi: 3.0.3
info:
  title: Shoppex Developer API
  description: Mintlify-compatible Developer API reference for Shoppex.
  version: 1.0.0
  contact:
    name: Shoppex Support
    email: support@shoppex.io
    url: https://shoppex.io
servers:
  - url: https://api.shoppex.io
security:
  - bearerAuth: []
paths:
  /dev/v1/subscriptions/{id}:
    get:
      tags:
        - Subscriptions
      summary: Get subscription
      description: Developer API operation for GET /dev/v1/subscriptions/{id}.
      operationId: getDevV1SubscriptionsById
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    additionalProperties: true
                example:
                  data:
                    id: sub_1
                    shop_id: shop_1
                    product_id: prod_membership
                    product:
                      id: prod_membership
                      uniqid: prod_public_membership
                      title: Pro Membership
                      type: SUBSCRIPTION
                      subtype: MONTHLY
                      price: 19.99
                      price_display: 19.99
                      currency: USD
                    uniqid: sub_public_1
                    status: ACTIVE
                    gateway: STRIPE
                    origin: null
                    custom_fields:
                      plan: pro
                    customer_id: cus_1
                    payment_link_id: null
                    stripe_subscription_id: sub_stripe_1
                    paypal_subscription_id: null
                    coupon_id: null
                    current_period_start: 1711510800
                    current_period_end: 1714102800
                    trial_end: null
                    renewal_invoice_created: false
                    trial_period_ending_email_sent: false
                    upcoming_email_1_week_sent: false
                    status_details: null
                    cancel_reason_id: null
                    cancel_reason_comment: null
                    created_at: 1711510800
                    updated_at: 1711510860
                    canceled_at: null
                    invoices:
                      - id: inv_sub_1
                        uniqid: 44444444-4444-4444-8444-444444444444
                        shop_id: shop_1
                        product_id: prod_membership
                        gateway: STRIPE
                        quantity: 1
                        items:
                          - product_id: prod_membership
                            product_title: Pro Membership
                            product_type: SUBSCRIPTION
                            variant_title: null
                            quantity: 1
                            unit_price: 19.99
                            total: 19.99
                        coupon_id: null
                        status: PAID
                        status_details: null
                        currency: USD
                        total: 19.99
                        total_display: 19.99
                        exchange_rate: 1
                        crypto_exchange_rate: 0
                        discount: 0
                        created_at: 1711510800
                        updated_at: 1711510860
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Use your Shoppex API key in the Authorization header.

````