libs/billing-api-client/src/docs/BillingInfoApi.md
All URIs are relative to http://localhost:6100
| Method | HTTP request | Description |
|---|---|---|
| getV2BillingInfo | GET /v2/organization/{organizationId}/billing-info | Get billing info |
| listV2Charges | GET /v2/organization/{organizationId}/charges | List Stripe charges |
| listV2PaymentMethods | GET /v2/organization/{organizationId}/payment-methods | List payment methods |
BillingInfo getV2BillingInfo()
Get organization billing contact and address from v2 billing
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
);
| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | Organization ID | defaults to undefined |
BillingInfo
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ChargeList listV2Charges()
List successful and failed Stripe charges for the organization
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
);
| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | Organization ID | defaults 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 |
ChargeList
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Array<PaymentMethod> listV2PaymentMethods()
List card payment methods attached to the Stripe customer
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
);
| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | Organization ID | defaults to undefined |
Array<PaymentMethod>
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]