Skip to Content
SdkClientInternalFunctionspostApiV1CreditsPurchase

postApiV1CreditsPurchase

postApiV1CreditsPurchase<ThrowOnError>(options: Options<PostApiV1CreditsPurchaseData, ThrowOnError>): RequestResult<PostApiV1CreditsPurchaseResponses, PostApiV1CreditsPurchaseErrors, ThrowOnError>

Defined in: src/client/sdk.gen.ts:274 

Create credit pack checkout session

Creates a Stripe Checkout Session for purchasing a one-time credit pack and returns the checkout URL. Pro users are charged using the Pro product with bonus credits.

Type Parameters

Type ParameterDefault type

ThrowOnError extends boolean

false

Parameters

ParameterType

options

Options<PostApiV1CreditsPurchaseData, ThrowOnError>

Returns

RequestResult<PostApiV1CreditsPurchaseResponses, PostApiV1CreditsPurchaseErrors, ThrowOnError>

Last updated on