// Auto-generated tool list for group: billing import type { Tool } from "@modelcontextprotocol/sdk/types.js"; export interface OpenApiTool extends Tool { method: string; path: string; security: unknown[]; custom?: boolean; group?: string; topic?: string; handlerMethod?: string; templateFile?: string; templateFileTS?: string; } const tools: OpenApiTool[] = [ { "name": "billing_getCatalogItemListV1", "description": "Retrieve catalog items available for order.\n\nPrices in catalog items is displayed as cents (without floating point),\ne.g: float `17.99` is displayed as integer `1799`.\n\nUse this endpoint to view available services and pricing before placing orders.", "method": "GET", "path": "/api/billing/v1/catalog", "inputSchema": { "type": "object", "properties": { "category": { "type": "string", "description": "Filter catalog items by category", "enum": [ "DOMAIN", "VPS", "EMAIL" ] }, "name": { "type": "string", "description": "Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain" } }, "required": [] }, "security": [ { "apiToken": [] } ], "group": "billing" }, { "name": "billing_createPurchaseOrderV1", "description": "Create a purchase order for any Hostinger product.\n\nThis unified endpoint places an order for one or more catalog items and\nworks across all Hostinger products, leveraging the existing billing\ninfrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look\nup the `item_id` values available for purchase.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nThis endpoint only places the order. Product-specific provisioning\n(e.g. VPS setup or domain registration) is not performed here — once the\norder completes, use the relevant product endpoints or\n[hPanel](https://hpanel.hostinger.com/) to finalize setup.\n\nUse this endpoint to purchase any product available in the catalog.", "method": "POST", "path": "/api/billing/v1/orders", "inputSchema": { "type": "object", "properties": { "payment_method_id": { "type": "integer", "description": "Payment method ID, default will be used if not provided" }, "items": { "type": "array", "description": "Catalog price items to purchase", "items": { "type": "object", "description": "items parameter", "properties": { "item_id": { "type": "string", "description": "Catalog price item ID" }, "quantity": { "type": "integer", "description": "Quantity to purchase" } }, "required": [ "item_id" ] } }, "coupons": { "type": "array", "description": "Discount coupon codes", "items": { "type": "string", "description": "coupons parameter" } } }, "required": [ "items" ] }, "security": [ { "apiToken": [] } ], "group": "billing" }, { "name": "billing_setDefaultPaymentMethodV1", "description": "Set the default payment method for your account.\n\nUse this endpoint to configure the primary payment method for future orders.", "method": "POST", "path": "/api/billing/v1/payment-methods/{paymentMethodId}", "inputSchema": { "type": "object", "properties": { "paymentMethodId": { "type": "integer", "description": "Payment method ID" } }, "required": [ "paymentMethodId" ] }, "security": [ { "apiToken": [] } ], "group": "billing" }, { "name": "billing_deletePaymentMethodV1", "description": "Delete a payment method from your account.\n\nUse this endpoint to remove unused payment methods from user accounts.", "method": "DELETE", "path": "/api/billing/v1/payment-methods/{paymentMethodId}", "inputSchema": { "type": "object", "properties": { "paymentMethodId": { "type": "integer", "description": "Payment method ID" } }, "required": [ "paymentMethodId" ] }, "security": [ { "apiToken": [] } ], "group": "billing" }, { "name": "billing_getPaymentMethodListV1", "description": "Retrieve available payment methods that can be used for placing new orders.\n\nIf you want to add new payment method,\nplease use [hPanel](https://hpanel.hostinger.com/billing/payment-methods).\n\nUse this endpoint to view available payment options before creating orders.", "method": "GET", "path": "/api/billing/v1/payment-methods", "inputSchema": { "type": "object", "properties": {}, "required": [] }, "security": [ { "apiToken": [] } ], "group": "billing" }, { "name": "billing_getSubscriptionListV1", "description": "Retrieve a list of all subscriptions associated with your account.\n\nUse this endpoint to monitor active services and billing status.", "method": "GET", "path": "/api/billing/v1/subscriptions", "inputSchema": { "type": "object", "properties": {}, "required": [] }, "security": [ { "apiToken": [] } ], "group": "billing" }, { "name": "billing_disableAutoRenewalV1", "description": "Disable auto-renewal for a subscription.\n\nUse this endpoint when disable auto-renewal for a subscription.", "method": "DELETE", "path": "/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable", "inputSchema": { "type": "object", "properties": { "subscriptionId": { "type": "string", "description": "Subscription ID" } }, "required": [ "subscriptionId" ] }, "security": [ { "apiToken": [] } ], "group": "billing" }, { "name": "billing_enableAutoRenewalV1", "description": "Enable auto-renewal for a subscription.\n\nUse this endpoint when enable auto-renewal for a subscription.", "method": "PATCH", "path": "/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable", "inputSchema": { "type": "object", "properties": { "subscriptionId": { "type": "string", "description": "Subscription ID" } }, "required": [ "subscriptionId" ] }, "security": [ { "apiToken": [] } ], "group": "billing" }, { "name": "billing_renewSubscriptionV1", "description": "Create a renewal order for an existing Hostinger subscription.\n\nThis endpoint places a renewal order for a single subscription, leveraging\nthe existing billing infrastructure. Use the\n[subscriptions endpoint](#tag/billing-subscriptions) to look up the\n`subscriptionId` values available for renewal.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nUse this endpoint to renew any subscription available in your account.", "method": "POST", "path": "/api/billing/v1/subscriptions/{subscriptionId}/renew", "inputSchema": { "type": "object", "properties": { "subscriptionId": { "type": "string", "description": "Subscription ID" }, "payment_method_id": { "type": "integer", "description": "Payment method ID, default will be used if not provided" }, "coupons": { "type": "array", "description": "Discount coupon codes", "items": { "type": "string", "description": "coupons parameter" } } }, "required": [ "subscriptionId" ] }, "security": [ { "apiToken": [] } ], "group": "billing" } ]; export default tools;