Loyalty API

Type

VotingQuestion1

A voting question the customer can answer, with the data needed to render it.

Kind Type
Used in CustomerBalance3, ListCustomers3, LoggedOutBalance1

Properties

  • id ID required

    The unique identifier of the voting question.

  • type string required

    The kind of answer control to render.

    One of:

    • choice-text - multiple choice with text options
    • choice-images - multiple choice with image options
    • input - free-form text answer
  • title string required

    The question text shown to the customer.

  • pts integer required

    Number of loyalty points awarded for answering this question.

  • allow_multiple_selections boolean optional

    Whether the customer may select more than one choice.

    Omitted when false.

  • choices array of VotingChoice1 required for multiple-choice question types

    The selectable answers for a multiple-choice question.

    Omitted for free-form (input) questions.

Previous
VotingChoice1