Back to Daytona

CheckoutUrlApi

libs/billing-api-client/src/docs/CheckoutUrlApi.md

0.178.02.6 KB
Original Source

CheckoutUrlApi

All URIs are relative to http://localhost:6100

MethodHTTP requestDescription
getCheckoutUrlGET /organization/{organizationId}/checkout-urlGet organization checkout url
getV2CheckoutURLGET /v2/organization/{organizationId}/checkout-urlGet organization checkout url

getCheckoutUrl

string getCheckoutUrl()

Get organization checkout url

Example

typescript
import {
    CheckoutUrlApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new CheckoutUrlApi(configuration);

let organizationId: string; //Organization ID (default to undefined)

const { status, data } = await apiInstance.getCheckoutUrl(
    organizationId
);

Parameters

NameTypeDescriptionNotes
organizationId[string]Organization IDdefaults to undefined

Return type

string

Authorization

JwtAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getV2CheckoutURL

string getV2CheckoutURL()

Get organization checkout url from v2 billing

Example

typescript
import {
    CheckoutUrlApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new CheckoutUrlApi(configuration);

let organizationId: string; //Organization ID (default to undefined)

const { status, data } = await apiInstance.getV2CheckoutURL(
    organizationId
);

Parameters

NameTypeDescriptionNotes
organizationId[string]Organization IDdefaults to undefined

Return type

string

Authorization

JwtAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

[Back to top] [Back to API list] [Back to Model list] [Back to README]