Saving the NPS review

Method Objective

The method allows saving the results of the NPS survey.

Syntax and parameters

sdk.review(params) { callback }

NameRequirementDescription
paramsrequiredRequest parameters.
callbackrequiredThe callback function will be executed if the request is successful.

Request parameters

Name

Requirement

Description

channel

required

The NPS channel code.

categoryrequiredThe NPS category code.
raterequired

The rating got from the user.

The value must be an integer between 1 and 10.


commentoptionallyUser comment.
order_idoptionallyOrder ID, related to the current survey

Example of use

sdk.review(rate: 9, channel: "ios_app", category: "delivery", order_id: "ORDER-100500", comment: "It's not bad, but it could be better.") { _ in
    // when the survey is successfully saved
}



Page Navigation




Related Pages