Surveys
Load a survey with its questions and answers.
Loads a survey with its questions, answers and styling. A survey belongs to a
plan: read plan.survey.id on the plan the customer chose, load the survey,
then send the answers as options on the cart item.
Method parameters
surveyIdRequirednumberID of the survey.
paramsoptionalSurveyResourceParamsExtra data to include.
headersoptionalSurveyRequestHeadersExtra request headers. Set x-currency to price the answers in another
currency. Without it the SDK sends the currency from subbly.setCurrency.
ReturnsPromise<Survey>
The survey.
Load a survey
Answer it and add the item to the cart