Skip to content
Navigation

Answers a product's registration questions for a customer who holds it, such as answers they gave elsewhere.

PUT
https://api.sherpo.io/merchant/v1/stores/{store}/products/{product}/customers/{customer}/answers

Authorization

  • bearer
    HTTP
    required

Path parameters

  • store
    string
    required

    The store's id.

  • product
    string
    required

    An id, or slug:<slug>.

    minLength: 1
  • customer
    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 required

  • answers
    array of
    object
    required

    One answer per question; a question left out keeps what it holds.

    • question
      string
      required
      maxLength: 64
    • value
      required

      A trimmed text for a text (one line, at most 300) or long_text (at most 3000) question, an option for a select, options for a multi_select, a boolean for a checkbox; null or a blank text clears an optional one.

      One of the following:

      • boolean
      • string
      • array<string>
      • null

Returns

200

Answers a product's registration questions for a customer who holds it, such as answers they gave elsewhere.

JSON
  • product_id
    string
    required
  • customer_id
    string
    required
  • answers
    array of
    object
    required

    The customer's answers in the questions' order, read back for a caller holding customer:read; none for anyone else.

    • question_id
      string
      required
    • value
      required

      One of the following:

      • boolean
      • string
      • array<string>
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