Customer Surveys
getCustomerSurveyReasons v1.65.0 read subscriptions Types
Get the reasons pertaining to a cancellation prevention customer survey
- ESM
- UMD
import { getCustomerSurveyReasons } from '@rechargeapps/storefront-client';
await getCustomerSurveyReasons(session, 116171570, 226046295);
await recharge.customerSurveys.getCustomerSurveyReasons(session, 116171570, 226046295);
getCustomerSurveyOffers v1.65.0 read subscriptions Types
Get the offers pertaining to a selected reason in a cancellation prevention customer survey
- ESM
- UMD
import { getCustomerSurveyOffers } from '@rechargeapps/storefront-client';
await getCustomerSurveyOffers(session, 116171570, 235472, 2311467);
await recharge.customerSurveys.getCustomerSurveyOffers(session, 116171570, 235472, 2311467);
claimOfferCustomerSurvey v1.65.0 read subscriptions Types
Claim a selected offer from a cancellation prevention customer survey
- ESM
- UMD
import { claimOfferCustomerSurvey } from '@rechargeapps/storefront-client';
await claimOfferCustomerSurvey(session, {
claim_id: 'offer:2311699:504458:BpCiIdfginyAAIZZcearZw==:2c74f9bc362ef5c3efce05fa01abfef1',
customer_id: 116171570,
external_variant_id: '44573506240668',
swap_data: { plan_id: 3927811, quantity: 1 },
});
await recharge.customerSurveys.claimOfferCustomerSurvey(session, {
claim_id: 'offer:2311699:504458:BpCiIdfginyAAIZZcearZw==:2c74f9bc362ef5c3efce05fa01abfef1',
customer_id: 116171570,
external_variant_id: '44573506240668',
swap_data: { plan_id: 3927811, quantity: 1 },
});