MonetizationOS Docs
Workflows ReferenceType Definitions

WorkflowIntegrationUtils

type WorkflowIntegrationUtils = {
  integrations: {
     stripe: {
        callStripeApi: Promise<StripeApiResponse>;
     };
  };
};

Properties

integrations

integrations: {
  stripe: {
     callStripeApi: Promise<StripeApiResponse>;
  };
};
  • stripe

    stripe: {
      callStripeApi: Promise<StripeApiResponse>;
    };

    stripe.callStripeApi()

    callStripeApi(integrationId, request): Promise<StripeApiResponse>;

    Convenience method to call the Stripe API using a configured Stripe integration. Uses the secret key assigned to the integration. Maps the input body to the x-www-form-urlencoded format expected by the Stripe v1 API.

    Parameters
    ParameterTypeDescription
    integrationIdstringThe ID of the Stripe integration to use.
    requestStripeApiRequestThe Stripe API request details.
    Returns

    Promise<StripeApiResponse>

    The Stripe API response.