libs/billing-api-client/src/docs/InvoicesApi.md
All URIs are relative to http://localhost:6100
| Method | HTTP request | Description |
|---|---|---|
| createPaymentUrl | POST /organization/{organizationId}/invoices/{invoiceId}/payment-url | Create payment URL for invoice |
| createV2PaymentURL | POST /v2/organization/{organizationId}/invoices/{invoiceId}/payment-url | Create payment URL for invoice |
| listInvoices | GET /organization/{organizationId}/invoices | Get organization invoices |
| listV2Invoices | GET /v2/organization/{organizationId}/invoices | Get organization invoices |
| voidInvoice | POST /organization/{organizationId}/invoices/{invoiceId}/void | Void an invoice |
PaymentUrl createPaymentUrl()
Create payment URL for invoice
import {
InvoicesApi,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new InvoicesApi(configuration);
let organizationId: string; //Organization ID (default to undefined)
let invoiceId: string; //Invoice ID (default to undefined)
const { status, data } = await apiInstance.createPaymentUrl(
organizationId,
invoiceId
);
| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | Organization ID | defaults to undefined |
| invoiceId | [string] | Invoice ID | defaults to undefined |
PaymentUrl
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaymentUrl createV2PaymentURL()
Create payment URL for invoice using v2 billing
import {
InvoicesApi,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new InvoicesApi(configuration);
let organizationId: string; //Organization ID (default to undefined)
let invoiceId: string; //Invoice ID (default to undefined)
const { status, data } = await apiInstance.createV2PaymentURL(
organizationId,
invoiceId
);
| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | Organization ID | defaults to undefined |
| invoiceId | [string] | Invoice ID | defaults to undefined |
PaymentUrl
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedTInvoice listInvoices()
Get organization invoices
import {
InvoicesApi,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new InvoicesApi(configuration);
let organizationId: string; //Organization ID (default to undefined)
let page: number; //Page number (optional) (default to undefined)
let perPage: number; //Number of items per page (optional) (default to undefined)
const { status, data } = await apiInstance.listInvoices(
organizationId,
page,
perPage
);
| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | Organization ID | defaults to undefined |
| page | [number] | Page number | (optional) defaults to undefined |
| perPage | [number] | Number of items per page | (optional) defaults to undefined |
PaginatedTInvoice
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaginatedTInvoice listV2Invoices()
Get organization invoices from v2 billing
import {
InvoicesApi,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new InvoicesApi(configuration);
let organizationId: string; //Organization ID (default to undefined)
let page: number; //Page number (optional) (default to undefined)
let perPage: number; //Number of items per page (optional) (default to undefined)
const { status, data } = await apiInstance.listV2Invoices(
organizationId,
page,
perPage
);
| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | Organization ID | defaults to undefined |
| page | [number] | Page number | (optional) defaults to undefined |
| perPage | [number] | Number of items per page | (optional) defaults to undefined |
PaginatedTInvoice
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
voidInvoice()
Void an invoice
import {
InvoicesApi,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new InvoicesApi(configuration);
let organizationId: string; //Organization ID (default to undefined)
let invoiceId: string; //Invoice ID (default to undefined)
const { status, data } = await apiInstance.voidInvoice(
organizationId,
invoiceId
);
| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | Organization ID | defaults to undefined |
| invoiceId | [string] | Invoice ID | defaults to undefined |
void (empty response body)
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]