Surveys/NPS

📘

It is possible to use both a single-user API key and a multi-user API key.

If the “sub_branding_id” parameter is not passed, all merchants assigned to the API key must share the same customer survey. However, if the “sub_branding_id” parameter is passed, the survey results will belong to that specific sub-branding.

If multiple sub-branding IDs are passed, they must all have the same customer survey.

Parameters

NameTypeRequiredDescription
api_keystring✅ YesAPI access key. Example: "a46dfc0e-4b59-448d-8a41-0745af6458ff"
date_fromstring (ISO-8601)✅ YesReturns surveys for dates greater than or equal to the passed value. Example: "2022-01-01"
date_tostring (ISO-8601)✅ YesReturns surveys for dates less than or equal to the passed value. Example: "2020-01-31"
sub_branding_idint❌ NoReturns surveys belonging to the passed sub-branding. Example: 11
sub_branding_id_2int❌ NoSub-branding can be passed multiple times. In this case, all related surveys will be returned. Example: 12