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

# Start a legacy basic subscription

> Creates a pending Shopify app subscription on the legacy basic plan and returns the confirmation URL the merchant must open to approve it; nothing is billed until they do. Side effect: a pending AppSubscription in Shopify. New subscriptions should use POST /settings/subscription (products + size).



## OpenAPI

````yaml /api-reference/openapi/lite.json post /settings/subscription/basic
openapi: 3.1.0
info:
  title: Search & Merchandising API
  version: 1.0.0
  description: >-
    REST API behind Depict: Search & Merchandising, the native Shopify app:
    onboarding, collections, boost & bury, dashboards, A/B testing and
    multi-store management. Endpoints are served under the /api/lite prefix and
    are authenticated with the Shopify session token that App Bridge issues to
    the embedded app.
servers:
  - url: /api/lite
security:
  - ShopifySessionToken: []
paths:
  /settings/subscription/basic:
    post:
      summary: Start a legacy basic subscription
      description: >-
        Creates a pending Shopify app subscription on the legacy basic plan and
        returns the confirmation URL the merchant must open to approve it;
        nothing is billed until they do. Side effect: a pending AppSubscription
        in Shopify. New subscriptions should use POST /settings/subscription
        (products + size).
      operationId: subscriptionCreateBasic
      parameters:
        - schema:
            type: string
            description: Lite merchant id, e.g. `shopify-<shop id>`.
          required: true
          description: Lite merchant id, e.g. `shopify-<shop id>`.
          name: merchant_id
          in: query
        - schema:
            type: string
            format: uri
            description: >-
              Where Shopify sends the merchant after they approve or decline the
              charge.
          required: true
          description: >-
            Where Shopify sends the merchant after they approve or decline the
            charge.
          name: return_url
          in: query
        - schema:
            type: string
            enum:
              - EVERY_30_DAYS
              - ANNUAL
            default: EVERY_30_DAYS
          required: false
          name: interval
          in: query
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriptionDiscount'
      responses:
        '200':
          description: The pending subscription's confirmation URL.
          content:
            application/json:
              schema:
                type: object
                properties:
                  confirmation_url:
                    type: string
                required:
                  - confirmation_url
        '400':
          description: >-
            The query or body failed the schema, or the store has no Shopify
            configuration.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '401':
          description: Not authenticated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '403':
          description: Not allowed to call the API, or a merchant session sent a discount.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '404':
          description: Merchant not found for this caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
        '500':
          description: Internal error, or Shopify refused the subscription.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Detail'
components:
  schemas:
    SubscriptionDiscount:
      type:
        - object
        - 'null'
      properties:
        percentage:
          type: number
          exclusiveMinimum: 0
          maximum: 1
          description: Fraction off the price, e.g. 0.2 for 20%.
        duration_intervals:
          type: integer
          exclusiveMinimum: 0
          description: How many billing intervals the discount lasts.
      required:
        - percentage
        - duration_intervals
      description: Superuser sessions only; a merchant session sending one is 403.
    Detail:
      type: object
      properties:
        detail:
          type: string
      required:
        - detail
      description: 'Every 4xx/5xx body: `{detail}`.'
  securitySchemes:
    ShopifySessionToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Shopify App Bridge session token of the embedded Depict: Search &
        Merchandising app. The shop in the token determines the merchant;
        merchant_id parameters must belong to that shop.

````