Skip to content
Navigation

Adds a tier to a product.

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

Authorization

  • bearer
    HTTP
    required

Path parameters

  • store
    string
    required

    The store's id.

  • product
    string
    required

    An id, or slug:<slug>.

    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 required

  • name
    string
    required
    maxLength: 120 · minLength: 1

Returns

201

Adds a tier to a product.

JSON
  • in_use
    object
    required
    • prices
      number
      required
    • grants
      number
      required
    • orders
      number
      required
    • discounts
      number
      required
    • gates
      number
      required
  • id
    string
    required
  • product_id
    string
    required
  • rank
    number
    required
  • name
    string
    required
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