Back to Daytona

BillingInfoApi

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

0.178.04.4 KB
Original Source

BillingInfoApi

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

MethodHTTP requestDescription
getV2BillingInfoGET /v2/organization/{organizationId}/billing-infoGet billing info
listV2ChargesGET /v2/organization/{organizationId}/chargesList Stripe charges
listV2PaymentMethodsGET /v2/organization/{organizationId}/payment-methodsList payment methods

getV2BillingInfo

BillingInfo getV2BillingInfo()

Get organization billing contact and address from v2 billing

Example

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

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

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

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

Parameters

NameTypeDescriptionNotes
organizationId[string]Organization IDdefaults to undefined

Return type

BillingInfo

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]

listV2Charges

ChargeList listV2Charges()

List successful and failed Stripe charges for the organization

Example

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

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

let organizationId: string; //Organization ID (default to undefined)
let limit: number; //Page size (1-100, default 25) (optional) (default to undefined)
let startingAfter: string; //Stripe cursor (charge ID) to paginate after (optional) (default to undefined)

const { status, data } = await apiInstance.listV2Charges(
    organizationId,
    limit,
    startingAfter
);

Parameters

NameTypeDescriptionNotes
organizationId[string]Organization IDdefaults to undefined
limit[number]Page size (1-100, default 25)(optional) defaults to undefined
startingAfter[string]Stripe cursor (charge ID) to paginate after(optional) defaults to undefined

Return type

ChargeList

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]

listV2PaymentMethods

Array<PaymentMethod> listV2PaymentMethods()

List card payment methods attached to the Stripe customer

Example

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

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

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

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

Parameters

NameTypeDescriptionNotes
organizationId[string]Organization IDdefaults to undefined

Return type

Array<PaymentMethod>

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]