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

# Activate a subscription

> Grants a Musixmatch premium plan to a user when they subscribe on the distributor's platform. The `plan_id` is the distributor's plan identifier; Musixmatch maps it internally to the corresponding Musixmatch plan.



## OpenAPI

````yaml /enterprises/distribution/openapi.json post /distribution/subscriptions
openapi: 3.1.0
info:
  title: Musixmatch Distribution API
  version: 1.0.0
  description: >-
    API for music distributors to submit releases and lyrics to the Musixmatch
    catalog.
servers:
  - url: https://varco-{partner}.musixmatch.com
    description: >-
      Replace {partner} with the identifier assigned to your organization during
      onboarding
    variables:
      partner:
        default: partner
        description: Identifier assigned to your organization during onboarding
security:
  - bearerAuth: []
paths:
  /distribution/subscriptions:
    post:
      tags:
        - Subscriptions
      summary: Activate a subscription
      description: >-
        Grants a Musixmatch premium plan to a user when they subscribe on the
        distributor's platform. The `plan_id` is the distributor's plan
        identifier; Musixmatch maps it internally to the corresponding
        Musixmatch plan.
      operationId: activateSubscription
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActivateSubscriptionRequest'
            example:
              musixmatch_user_id: mxm:123456789012345678901
              partner_user_id: '123456'
              plan_id: artist-plus-annual
      responses:
        '201':
          description: Subscription activated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionEnvelope'
              example:
                message:
                  body:
                    subscription:
                      musixmatch_user_id: mxm:123456789012345678901
                      plan_id: artist-plus-annual
                      status: active
                  header:
                    status_code: 201
                    execute_time: 0.04
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ActivateSubscriptionRequest:
      type: object
      required:
        - musixmatch_user_id
        - partner_user_id
        - plan_id
      properties:
        musixmatch_user_id:
          type: string
          description: The Musixmatch user ID obtained via token introspection
        partner_user_id:
          type: string
          description: The partner's internal user identifier
        plan_id:
          type: string
          description: >-
            The distributor's plan identifier. Musixmatch maps this to the
            corresponding Musixmatch plan during onboarding.
    SubscriptionEnvelope:
      type: object
      properties:
        message:
          type: object
          properties:
            body:
              type: object
              properties:
                subscription:
                  type: object
                  properties:
                    musixmatch_user_id:
                      type: string
                    plan_id:
                      type: string
                      description: Present when activating a subscription
                    status:
                      type: string
                      enum:
                        - active
                        - revoked
            header:
              $ref: '#/components/schemas/MessageHeader'
    MessageHeader:
      type: object
      properties:
        status_code:
          type: number
          description: HTTP status code of the response
        execute_time:
          type: number
          description: Server execution time in seconds
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
        data:
          type: object
          properties:
            error:
              type: object
              properties:
                code:
                  type: string
  responses:
    BadRequest:
      description: Bad request — invalid or missing parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Unauthorized — missing or invalid Bearer token
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Access token obtained via the Client Credentials OAuth 2.0 flow at
        https://connect.musixmatch.com/oauth/token

````