PgBeam Docs
Analytics

submitCancellationFeedback

Submit cancellation feedback

Records optional feedback when a user cancels their subscription.

Usage

const result = await api.analytics.submitCancellationFeedback({
    pathParams: { org_id: "org_xxx" },
    body: {
      ,
    },
  });

Parameters

ParameterTypeRequiredDescription
pathParams.org_idstringYesUnique organization identifier.
body.reasonstringNoPredefined cancellation reason.
body.feedbackstringNoFree-text feedback from the user.

Response

Promise<void> — no content.

Example

import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: "pbk_...",
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.analytics.submitCancellationFeedback({
  pathParams: { org_id: "org_xxx" },
  body: {
      ,
    },
});

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.
429Rate limited. Try again later.

On this page