Skip to content
Navigation

Lets a disabled license check as its holder's access says again.

POST
https://api.sherpo.io/merchant/v1/stores/{store}/products/{product}/licenses/{license}/enable

Authorization

  • bearer
    HTTP
    required

Path parameters

  • store
    string
    required

    The store's id.

  • product
    string
    required

    An id, or slug:<slug>.

    minLength: 1
  • license
    string
    required
    minLength: 1

Header parameters

  • Idempotency-Key
    optional
    string

    Repeats within 24 hours answer the first result; the same key with other arguments is a conflict.

    maxLength: 255 · minLength: 1 · pattern: ^[\x21-\x7E]+$

Request body JSON optional

Returns

200

Lets a disabled license check as its holder's access says again.

JSON
  • subscription
    required

    The subscription behind its access; null for a one-time purchase or a grant, or without subscription:read.

    One of the following:

    • object
    • null
  • activations
    object
    required

    The devices it counts now and the most it may hold, its own limit, else its tier's, else its product's; limit null when nothing limits it.

    • count
      number
      required
    • limit
      required

      One of the following:

      • number
      • null
  • key_ending
    string
    required

    The key's last characters, so a support reply can name it; getLicense answers it whole.

  • tier
    required

    The tier its access opens, else the one it last opened; null for access with no tier.

    One of the following:

    • object
    • null
  • customer
    required

    One of the following:

    • object
    • null
  • id
    string
    required
  • product_id
    string
    required
  • customer_id
    string
    required
  • source
    string
    required
  • status
    string
    required

    Where it stands now: active, expired, revoked, disabled or replaced.

  • expires_at
    required

    When access ends; null while it never does.

    One of the following:

    • string
    • null
  • reason
    required

    Why it reads its status: replaced, disabled, lapse, refund or revoke; null while active, or before any access began.

    One of the following:

    • string
    • null
  • has_access
    boolean
    required

    Whether its holder has access now, whatever its status; false before access begins.

  • activation_limit
    required

    One of the following:

    • number
    • null
  • uses
    number
    required
  • metadata
    map of
    any of
    required
  • created_at
    required

    One of the following:

    • string
    • null
  • disabled_at
    required

    One of the following:

    • string
    • null
  • disabled_reason
    required

    One of the following:

    • string
    • null
  • replaced_by
    required

    One of the following:

    • string
    • null
  • last_verified_at
    required

    One of the following:

    • string
    • null
JSON
  • type
    string
    required
    format: uri
  • title
    string
    required
  • status
    integer
    required
  • detail
    string
    required
  • code
    optional
    string
  • context
    optional
    object
  • reached_core
    optional
    boolean
  • core_answer
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close