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

# Detalhar assinatura

> Retorna uma assinatura pelo ID. Se a assinatura pertencer a outra conta, a API retorna 404.



## OpenAPI

````yaml /apps/seller/openapi.json get /subscriptions/{id}
openapi: 3.1.0
info:
  title: SpeedSellX API
  version: 1.0.0
  description: >-
    API pública da SpeedSellX para consultar e atualizar, por integração, os
    dados da sua conta: produtos, pedidos, vendas, assinaturas, métricas,
    checkouts, upsells e webhooks. Autentique com `Authorization: Bearer
    sk_live_...` e gere chaves no painel, em Desenvolvedores. Requisições que
    alteram dados exigem o header HTTP `Idempotency-Key`. Listagens aceitam
    `page`/`per_page` e retornam `{ data, meta }`.
servers:
  - url: https://api.speedsellx.io/seller/v1
    description: Produção
security: []
tags:
  - name: Produtos
  - name: Pedidos
  - name: Vendas
  - name: Assinaturas
  - name: Métricas
  - name: Upsells
  - name: Checkouts
paths:
  /subscriptions/{id}:
    get:
      tags:
        - Assinaturas
      summary: Detalhar assinatura
      description: >-
        Retorna uma assinatura pelo ID. Se a assinatura pertencer a outra conta,
        a API retorna 404.
      operationId: v1.subscriptions.show
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/SubscriptionResource'
                required:
                  - data
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      type:
                        type: string
                        const: not_found
                      message:
                        type: string
                        const: Resource not found.
                    required:
                      - type
                      - message
                required:
                  - error
components:
  schemas:
    SubscriptionResource:
      type: object
      properties:
        id:
          type: integer
        status:
          type:
            - string
            - 'null'
        order_id:
          type:
            - integer
            - 'null'
        customer_id:
          type:
            - integer
            - 'null'
        interval:
          type:
            - string
            - 'null'
        interval_count:
          type:
            - integer
            - 'null'
        start_date:
          type: string
        end_date:
          type: string
        expires_at:
          type: string
        created_at:
          type: string
      required:
        - id
        - status
        - order_id
        - customer_id
        - interval
        - interval_count
        - start_date
        - end_date
        - expires_at
        - created_at
      title: SubscriptionResource

````