@hostinger/mcp 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +14 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
- package/.github/workflows/build-release.yaml +163 -0
- package/CODEOWNERS +1 -0
- package/Dockerfile +15 -0
- package/LICENSE +21 -0
- package/README.md +4343 -0
- package/build.js +60 -0
- package/gemini-extension.json +25 -0
- package/glama.json +7 -0
- package/package.json +59 -0
- package/server.json +29 -0
- package/skills/headless/SKILL.md +55 -0
- package/skills/headless/entry/bootstrap.mjs +109 -0
- package/skills/headless/entry/skill.md +79 -0
- package/skills/headless/references/DEPLOYMENT.md +34 -0
- package/skills/headless/references/SETUP.md +34 -0
- package/skills/headless/references/STORE.md +52 -0
- package/skills/headless/references/WORDPRESS.md +51 -0
- package/src/core/oauth-error.html +90 -0
- package/src/core/oauth-success.html +77 -0
- package/src/core/oauth.js +406 -0
- package/src/core/oauth.ts +374 -0
- package/src/core/runtime.js +2673 -0
- package/src/core/runtime.ts +2724 -0
- package/src/core/tools/agency-hosting.js +1535 -0
- package/src/core/tools/agency-hosting.ts +1550 -0
- package/src/core/tools/all.js +15361 -0
- package/src/core/tools/all.ts +15376 -0
- package/src/core/tools/billing.js +310 -0
- package/src/core/tools/billing.ts +325 -0
- package/src/core/tools/dns.js +393 -0
- package/src/core/tools/dns.ts +408 -0
- package/src/core/tools/domains.js +1435 -0
- package/src/core/tools/domains.ts +1450 -0
- package/src/core/tools/ecommerce.js +1426 -0
- package/src/core/tools/ecommerce.ts +1441 -0
- package/src/core/tools/horizons.js +84 -0
- package/src/core/tools/horizons.ts +99 -0
- package/src/core/tools/hosting.js +2479 -0
- package/src/core/tools/hosting.ts +2494 -0
- package/src/core/tools/mail.js +1641 -0
- package/src/core/tools/mail.ts +1656 -0
- package/src/core/tools/reach.js +2270 -0
- package/src/core/tools/reach.ts +2285 -0
- package/src/core/tools/vps.js +2248 -0
- package/src/core/tools/vps.ts +2263 -0
- package/src/core/tools/wordpress.js +1570 -0
- package/src/core/tools/wordpress.ts +1585 -0
- package/src/servers/agency-hosting.js +6 -0
- package/src/servers/agency-hosting.ts +6 -0
- package/src/servers/all.js +6 -0
- package/src/servers/all.ts +6 -0
- package/src/servers/billing.js +6 -0
- package/src/servers/billing.ts +6 -0
- package/src/servers/dns.js +6 -0
- package/src/servers/dns.ts +6 -0
- package/src/servers/domains.js +6 -0
- package/src/servers/domains.ts +6 -0
- package/src/servers/ecommerce.js +6 -0
- package/src/servers/ecommerce.ts +6 -0
- package/src/servers/horizons.js +6 -0
- package/src/servers/horizons.ts +6 -0
- package/src/servers/hosting.js +6 -0
- package/src/servers/hosting.ts +6 -0
- package/src/servers/mail.js +6 -0
- package/src/servers/mail.ts +6 -0
- package/src/servers/reach.js +6 -0
- package/src/servers/reach.ts +6 -0
- package/src/servers/vps.js +6 -0
- package/src/servers/vps.ts +6 -0
- package/src/servers/wordpress.js +6 -0
- package/src/servers/wordpress.ts +6 -0
- package/tsconfig.json +15 -0
- package/types.d.ts +8836 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
// Auto-generated tool list for group: billing
|
|
2
|
+
export default [
|
|
3
|
+
{
|
|
4
|
+
"name": "billing_getCatalogItemListV1",
|
|
5
|
+
"title": "Get catalog item list",
|
|
6
|
+
"annotations": {
|
|
7
|
+
"title": "Get catalog item list",
|
|
8
|
+
"readOnlyHint": true,
|
|
9
|
+
"destructiveHint": false
|
|
10
|
+
},
|
|
11
|
+
"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.",
|
|
12
|
+
"method": "GET",
|
|
13
|
+
"path": "/api/billing/v1/catalog",
|
|
14
|
+
"inputSchema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"category": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Filter catalog items by category",
|
|
20
|
+
"enum": [
|
|
21
|
+
"DOMAIN",
|
|
22
|
+
"VPS",
|
|
23
|
+
"EMAIL"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"name": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": []
|
|
32
|
+
},
|
|
33
|
+
"security": [
|
|
34
|
+
{
|
|
35
|
+
"apiToken": []
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"group": "billing"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "billing_createPurchaseOrderV1",
|
|
42
|
+
"title": "Create purchase order",
|
|
43
|
+
"annotations": {
|
|
44
|
+
"title": "Create purchase order",
|
|
45
|
+
"readOnlyHint": false,
|
|
46
|
+
"destructiveHint": false
|
|
47
|
+
},
|
|
48
|
+
"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.",
|
|
49
|
+
"method": "POST",
|
|
50
|
+
"path": "/api/billing/v1/orders",
|
|
51
|
+
"inputSchema": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"payment_method_id": {
|
|
55
|
+
"type": "integer",
|
|
56
|
+
"description": "Payment method ID, default will be used if not provided"
|
|
57
|
+
},
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"description": "Catalog price items to purchase",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"description": "items parameter",
|
|
64
|
+
"properties": {
|
|
65
|
+
"item_id": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"description": "Catalog price item ID"
|
|
68
|
+
},
|
|
69
|
+
"quantity": {
|
|
70
|
+
"type": "integer",
|
|
71
|
+
"description": "Quantity to purchase"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"item_id"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"coupons": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"description": "Discount coupon codes",
|
|
82
|
+
"items": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "coupons parameter"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": [
|
|
89
|
+
"items"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"security": [
|
|
93
|
+
{
|
|
94
|
+
"apiToken": []
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"group": "billing"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "billing_setDefaultPaymentMethodV1",
|
|
101
|
+
"title": "Set default payment method",
|
|
102
|
+
"annotations": {
|
|
103
|
+
"title": "Set default payment method",
|
|
104
|
+
"readOnlyHint": false,
|
|
105
|
+
"destructiveHint": false
|
|
106
|
+
},
|
|
107
|
+
"description": "Set the default payment method for your account.\n\nUse this endpoint to configure the primary payment method for future orders.",
|
|
108
|
+
"method": "POST",
|
|
109
|
+
"path": "/api/billing/v1/payment-methods/{paymentMethodId}",
|
|
110
|
+
"inputSchema": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"properties": {
|
|
113
|
+
"paymentMethodId": {
|
|
114
|
+
"type": "integer",
|
|
115
|
+
"description": "Payment method ID"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"required": [
|
|
119
|
+
"paymentMethodId"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"security": [
|
|
123
|
+
{
|
|
124
|
+
"apiToken": []
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"group": "billing"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "billing_deletePaymentMethodV1",
|
|
131
|
+
"title": "Delete payment method",
|
|
132
|
+
"annotations": {
|
|
133
|
+
"title": "Delete payment method",
|
|
134
|
+
"readOnlyHint": false,
|
|
135
|
+
"destructiveHint": true,
|
|
136
|
+
"idempotentHint": true
|
|
137
|
+
},
|
|
138
|
+
"description": "Delete a payment method from your account.\n\nUse this endpoint to remove unused payment methods from user accounts.",
|
|
139
|
+
"method": "DELETE",
|
|
140
|
+
"path": "/api/billing/v1/payment-methods/{paymentMethodId}",
|
|
141
|
+
"inputSchema": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"properties": {
|
|
144
|
+
"paymentMethodId": {
|
|
145
|
+
"type": "integer",
|
|
146
|
+
"description": "Payment method ID"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"required": [
|
|
150
|
+
"paymentMethodId"
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"security": [
|
|
154
|
+
{
|
|
155
|
+
"apiToken": []
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"group": "billing"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "billing_getPaymentMethodListV1",
|
|
162
|
+
"title": "Get payment method list",
|
|
163
|
+
"annotations": {
|
|
164
|
+
"title": "Get payment method list",
|
|
165
|
+
"readOnlyHint": true,
|
|
166
|
+
"destructiveHint": false
|
|
167
|
+
},
|
|
168
|
+
"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.",
|
|
169
|
+
"method": "GET",
|
|
170
|
+
"path": "/api/billing/v1/payment-methods",
|
|
171
|
+
"inputSchema": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"properties": {},
|
|
174
|
+
"required": []
|
|
175
|
+
},
|
|
176
|
+
"security": [
|
|
177
|
+
{
|
|
178
|
+
"apiToken": []
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"group": "billing"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "billing_getSubscriptionListV1",
|
|
185
|
+
"title": "Get subscription list",
|
|
186
|
+
"annotations": {
|
|
187
|
+
"title": "Get subscription list",
|
|
188
|
+
"readOnlyHint": true,
|
|
189
|
+
"destructiveHint": false
|
|
190
|
+
},
|
|
191
|
+
"description": "Retrieve a list of all subscriptions associated with your account.\n\nUse this endpoint to monitor active services and billing status.",
|
|
192
|
+
"method": "GET",
|
|
193
|
+
"path": "/api/billing/v1/subscriptions",
|
|
194
|
+
"inputSchema": {
|
|
195
|
+
"type": "object",
|
|
196
|
+
"properties": {},
|
|
197
|
+
"required": []
|
|
198
|
+
},
|
|
199
|
+
"security": [
|
|
200
|
+
{
|
|
201
|
+
"apiToken": []
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"group": "billing"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "billing_disableAutoRenewalV1",
|
|
208
|
+
"title": "Disable auto-renewal",
|
|
209
|
+
"annotations": {
|
|
210
|
+
"title": "Disable auto-renewal",
|
|
211
|
+
"readOnlyHint": false,
|
|
212
|
+
"destructiveHint": true,
|
|
213
|
+
"idempotentHint": true
|
|
214
|
+
},
|
|
215
|
+
"description": "Disable auto-renewal for a subscription.\n\nUse this endpoint when disable auto-renewal for a subscription.",
|
|
216
|
+
"method": "DELETE",
|
|
217
|
+
"path": "/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable",
|
|
218
|
+
"inputSchema": {
|
|
219
|
+
"type": "object",
|
|
220
|
+
"properties": {
|
|
221
|
+
"subscriptionId": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"description": "Subscription ID"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": [
|
|
227
|
+
"subscriptionId"
|
|
228
|
+
]
|
|
229
|
+
},
|
|
230
|
+
"security": [
|
|
231
|
+
{
|
|
232
|
+
"apiToken": []
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"group": "billing"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "billing_enableAutoRenewalV1",
|
|
239
|
+
"title": "Enable auto-renewal",
|
|
240
|
+
"annotations": {
|
|
241
|
+
"title": "Enable auto-renewal",
|
|
242
|
+
"readOnlyHint": false,
|
|
243
|
+
"destructiveHint": true,
|
|
244
|
+
"idempotentHint": true
|
|
245
|
+
},
|
|
246
|
+
"description": "Enable auto-renewal for a subscription.\n\nUse this endpoint when enable auto-renewal for a subscription.",
|
|
247
|
+
"method": "PATCH",
|
|
248
|
+
"path": "/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable",
|
|
249
|
+
"inputSchema": {
|
|
250
|
+
"type": "object",
|
|
251
|
+
"properties": {
|
|
252
|
+
"subscriptionId": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"description": "Subscription ID"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"required": [
|
|
258
|
+
"subscriptionId"
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
"security": [
|
|
262
|
+
{
|
|
263
|
+
"apiToken": []
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"group": "billing"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "billing_renewSubscriptionV1",
|
|
270
|
+
"title": "Renew subscription",
|
|
271
|
+
"annotations": {
|
|
272
|
+
"title": "Renew subscription",
|
|
273
|
+
"readOnlyHint": false,
|
|
274
|
+
"destructiveHint": false
|
|
275
|
+
},
|
|
276
|
+
"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.",
|
|
277
|
+
"method": "POST",
|
|
278
|
+
"path": "/api/billing/v1/subscriptions/{subscriptionId}/renew",
|
|
279
|
+
"inputSchema": {
|
|
280
|
+
"type": "object",
|
|
281
|
+
"properties": {
|
|
282
|
+
"subscriptionId": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"description": "Subscription ID"
|
|
285
|
+
},
|
|
286
|
+
"payment_method_id": {
|
|
287
|
+
"type": "integer",
|
|
288
|
+
"description": "Payment method ID, default will be used if not provided"
|
|
289
|
+
},
|
|
290
|
+
"coupons": {
|
|
291
|
+
"type": "array",
|
|
292
|
+
"description": "Discount coupon codes",
|
|
293
|
+
"items": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"description": "coupons parameter"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"required": [
|
|
300
|
+
"subscriptionId"
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
"security": [
|
|
304
|
+
{
|
|
305
|
+
"apiToken": []
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"group": "billing"
|
|
309
|
+
}
|
|
310
|
+
];
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
// Auto-generated tool list for group: billing
|
|
2
|
+
import type { Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
3
|
+
|
|
4
|
+
export interface OpenApiTool extends Tool {
|
|
5
|
+
method: string;
|
|
6
|
+
path: string;
|
|
7
|
+
security: unknown[];
|
|
8
|
+
custom?: boolean;
|
|
9
|
+
group?: string;
|
|
10
|
+
topic?: string;
|
|
11
|
+
handlerMethod?: string;
|
|
12
|
+
templateFile?: string;
|
|
13
|
+
templateFileTS?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const tools: OpenApiTool[] = [
|
|
17
|
+
{
|
|
18
|
+
"name": "billing_getCatalogItemListV1",
|
|
19
|
+
"title": "Get catalog item list",
|
|
20
|
+
"annotations": {
|
|
21
|
+
"title": "Get catalog item list",
|
|
22
|
+
"readOnlyHint": true,
|
|
23
|
+
"destructiveHint": false
|
|
24
|
+
},
|
|
25
|
+
"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.",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"path": "/api/billing/v1/catalog",
|
|
28
|
+
"inputSchema": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"category": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Filter catalog items by category",
|
|
34
|
+
"enum": [
|
|
35
|
+
"DOMAIN",
|
|
36
|
+
"VPS",
|
|
37
|
+
"EMAIL"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"name": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": []
|
|
46
|
+
},
|
|
47
|
+
"security": [
|
|
48
|
+
{
|
|
49
|
+
"apiToken": []
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"group": "billing"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "billing_createPurchaseOrderV1",
|
|
56
|
+
"title": "Create purchase order",
|
|
57
|
+
"annotations": {
|
|
58
|
+
"title": "Create purchase order",
|
|
59
|
+
"readOnlyHint": false,
|
|
60
|
+
"destructiveHint": false
|
|
61
|
+
},
|
|
62
|
+
"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.",
|
|
63
|
+
"method": "POST",
|
|
64
|
+
"path": "/api/billing/v1/orders",
|
|
65
|
+
"inputSchema": {
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"payment_method_id": {
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"description": "Payment method ID, default will be used if not provided"
|
|
71
|
+
},
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"description": "Catalog price items to purchase",
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"description": "items parameter",
|
|
78
|
+
"properties": {
|
|
79
|
+
"item_id": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "Catalog price item ID"
|
|
82
|
+
},
|
|
83
|
+
"quantity": {
|
|
84
|
+
"type": "integer",
|
|
85
|
+
"description": "Quantity to purchase"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": [
|
|
89
|
+
"item_id"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"coupons": {
|
|
94
|
+
"type": "array",
|
|
95
|
+
"description": "Discount coupon codes",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "coupons parameter"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"required": [
|
|
103
|
+
"items"
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"security": [
|
|
107
|
+
{
|
|
108
|
+
"apiToken": []
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"group": "billing"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "billing_setDefaultPaymentMethodV1",
|
|
115
|
+
"title": "Set default payment method",
|
|
116
|
+
"annotations": {
|
|
117
|
+
"title": "Set default payment method",
|
|
118
|
+
"readOnlyHint": false,
|
|
119
|
+
"destructiveHint": false
|
|
120
|
+
},
|
|
121
|
+
"description": "Set the default payment method for your account.\n\nUse this endpoint to configure the primary payment method for future orders.",
|
|
122
|
+
"method": "POST",
|
|
123
|
+
"path": "/api/billing/v1/payment-methods/{paymentMethodId}",
|
|
124
|
+
"inputSchema": {
|
|
125
|
+
"type": "object",
|
|
126
|
+
"properties": {
|
|
127
|
+
"paymentMethodId": {
|
|
128
|
+
"type": "integer",
|
|
129
|
+
"description": "Payment method ID"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": [
|
|
133
|
+
"paymentMethodId"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
"security": [
|
|
137
|
+
{
|
|
138
|
+
"apiToken": []
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"group": "billing"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "billing_deletePaymentMethodV1",
|
|
145
|
+
"title": "Delete payment method",
|
|
146
|
+
"annotations": {
|
|
147
|
+
"title": "Delete payment method",
|
|
148
|
+
"readOnlyHint": false,
|
|
149
|
+
"destructiveHint": true,
|
|
150
|
+
"idempotentHint": true
|
|
151
|
+
},
|
|
152
|
+
"description": "Delete a payment method from your account.\n\nUse this endpoint to remove unused payment methods from user accounts.",
|
|
153
|
+
"method": "DELETE",
|
|
154
|
+
"path": "/api/billing/v1/payment-methods/{paymentMethodId}",
|
|
155
|
+
"inputSchema": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"properties": {
|
|
158
|
+
"paymentMethodId": {
|
|
159
|
+
"type": "integer",
|
|
160
|
+
"description": "Payment method ID"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"required": [
|
|
164
|
+
"paymentMethodId"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"security": [
|
|
168
|
+
{
|
|
169
|
+
"apiToken": []
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"group": "billing"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "billing_getPaymentMethodListV1",
|
|
176
|
+
"title": "Get payment method list",
|
|
177
|
+
"annotations": {
|
|
178
|
+
"title": "Get payment method list",
|
|
179
|
+
"readOnlyHint": true,
|
|
180
|
+
"destructiveHint": false
|
|
181
|
+
},
|
|
182
|
+
"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.",
|
|
183
|
+
"method": "GET",
|
|
184
|
+
"path": "/api/billing/v1/payment-methods",
|
|
185
|
+
"inputSchema": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {},
|
|
188
|
+
"required": []
|
|
189
|
+
},
|
|
190
|
+
"security": [
|
|
191
|
+
{
|
|
192
|
+
"apiToken": []
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"group": "billing"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "billing_getSubscriptionListV1",
|
|
199
|
+
"title": "Get subscription list",
|
|
200
|
+
"annotations": {
|
|
201
|
+
"title": "Get subscription list",
|
|
202
|
+
"readOnlyHint": true,
|
|
203
|
+
"destructiveHint": false
|
|
204
|
+
},
|
|
205
|
+
"description": "Retrieve a list of all subscriptions associated with your account.\n\nUse this endpoint to monitor active services and billing status.",
|
|
206
|
+
"method": "GET",
|
|
207
|
+
"path": "/api/billing/v1/subscriptions",
|
|
208
|
+
"inputSchema": {
|
|
209
|
+
"type": "object",
|
|
210
|
+
"properties": {},
|
|
211
|
+
"required": []
|
|
212
|
+
},
|
|
213
|
+
"security": [
|
|
214
|
+
{
|
|
215
|
+
"apiToken": []
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"group": "billing"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "billing_disableAutoRenewalV1",
|
|
222
|
+
"title": "Disable auto-renewal",
|
|
223
|
+
"annotations": {
|
|
224
|
+
"title": "Disable auto-renewal",
|
|
225
|
+
"readOnlyHint": false,
|
|
226
|
+
"destructiveHint": true,
|
|
227
|
+
"idempotentHint": true
|
|
228
|
+
},
|
|
229
|
+
"description": "Disable auto-renewal for a subscription.\n\nUse this endpoint when disable auto-renewal for a subscription.",
|
|
230
|
+
"method": "DELETE",
|
|
231
|
+
"path": "/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/disable",
|
|
232
|
+
"inputSchema": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"properties": {
|
|
235
|
+
"subscriptionId": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"description": "Subscription ID"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"required": [
|
|
241
|
+
"subscriptionId"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
"security": [
|
|
245
|
+
{
|
|
246
|
+
"apiToken": []
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"group": "billing"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "billing_enableAutoRenewalV1",
|
|
253
|
+
"title": "Enable auto-renewal",
|
|
254
|
+
"annotations": {
|
|
255
|
+
"title": "Enable auto-renewal",
|
|
256
|
+
"readOnlyHint": false,
|
|
257
|
+
"destructiveHint": true,
|
|
258
|
+
"idempotentHint": true
|
|
259
|
+
},
|
|
260
|
+
"description": "Enable auto-renewal for a subscription.\n\nUse this endpoint when enable auto-renewal for a subscription.",
|
|
261
|
+
"method": "PATCH",
|
|
262
|
+
"path": "/api/billing/v1/subscriptions/{subscriptionId}/auto-renewal/enable",
|
|
263
|
+
"inputSchema": {
|
|
264
|
+
"type": "object",
|
|
265
|
+
"properties": {
|
|
266
|
+
"subscriptionId": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"description": "Subscription ID"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"required": [
|
|
272
|
+
"subscriptionId"
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
"security": [
|
|
276
|
+
{
|
|
277
|
+
"apiToken": []
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"group": "billing"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "billing_renewSubscriptionV1",
|
|
284
|
+
"title": "Renew subscription",
|
|
285
|
+
"annotations": {
|
|
286
|
+
"title": "Renew subscription",
|
|
287
|
+
"readOnlyHint": false,
|
|
288
|
+
"destructiveHint": false
|
|
289
|
+
},
|
|
290
|
+
"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.",
|
|
291
|
+
"method": "POST",
|
|
292
|
+
"path": "/api/billing/v1/subscriptions/{subscriptionId}/renew",
|
|
293
|
+
"inputSchema": {
|
|
294
|
+
"type": "object",
|
|
295
|
+
"properties": {
|
|
296
|
+
"subscriptionId": {
|
|
297
|
+
"type": "string",
|
|
298
|
+
"description": "Subscription ID"
|
|
299
|
+
},
|
|
300
|
+
"payment_method_id": {
|
|
301
|
+
"type": "integer",
|
|
302
|
+
"description": "Payment method ID, default will be used if not provided"
|
|
303
|
+
},
|
|
304
|
+
"coupons": {
|
|
305
|
+
"type": "array",
|
|
306
|
+
"description": "Discount coupon codes",
|
|
307
|
+
"items": {
|
|
308
|
+
"type": "string",
|
|
309
|
+
"description": "coupons parameter"
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"required": [
|
|
314
|
+
"subscriptionId"
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
"security": [
|
|
318
|
+
{
|
|
319
|
+
"apiToken": []
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
"group": "billing"
|
|
323
|
+
}
|
|
324
|
+
];
|
|
325
|
+
export default tools;
|