(billing)
Methods related to Billing
- getSubscriptionDetails - Get your organization subscription details
Get your organization subscription details
import { Writer } from "@writerai/writer-sdk";
const writer = new Writer({
apiKey: "<YOUR_API_KEY_HERE>",
organizationId: 850421,
});
async function run() {
const result = await writer.billing.getSubscriptionDetails();
// Handle the result
console.log(result)
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
Promise<operations.GetSubscriptionDetailsResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.FailResponse | 400,401,403,404,500 | application/json |
errors.SDKError | 4xx-5xx | / |