hostinger-api-mcp 1.2.0 → 1.2.1
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/README.md +19 -3
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +62 -1
- package/src/core/tools/all.ts +62 -1
- package/src/core/tools/ecommerce.js +62 -1
- package/src/core/tools/ecommerce.ts +62 -1
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/src/servers/wordpress.js +1 -1
- package/src/servers/wordpress.ts +1 -1
- package/types.d.ts +41 -1
package/README.md
CHANGED
|
@@ -49,11 +49,11 @@ pnpm update -g hostinger-api-mcp
|
|
|
49
49
|
|
|
50
50
|
This package installs the following MCP server commands:
|
|
51
51
|
|
|
52
|
-
- `hostinger-api-mcp` — unified server with every tool (
|
|
52
|
+
- `hostinger-api-mcp` — unified server with every tool (181 total)
|
|
53
53
|
- `hostinger-billing-mcp` — 7 tools for billing
|
|
54
54
|
- `hostinger-dns-mcp` — 8 tools for dns
|
|
55
55
|
- `hostinger-domains-mcp` — 18 tools for domains
|
|
56
|
-
- `hostinger-ecommerce-mcp` —
|
|
56
|
+
- `hostinger-ecommerce-mcp` — 12 tools for ecommerce
|
|
57
57
|
- `hostinger-horizons-mcp` — 2 tools for horizons
|
|
58
58
|
- `hostinger-hosting-mcp` — 41 tools for hosting
|
|
59
59
|
- `hostinger-reach-mcp` — 12 tools for reach
|
|
@@ -584,7 +584,7 @@ List a store's active sales channels with their full metadata.
|
|
|
584
584
|
- **Method**: `GET`
|
|
585
585
|
- **Path**: `/api/ecommerce/v1/stores/{store_id}/sales-channels`
|
|
586
586
|
|
|
587
|
-
####
|
|
587
|
+
#### ecommerce_createCustomSalesChannelV1
|
|
588
588
|
|
|
589
589
|
Create a custom sales channel for a store. Build your own frontend and keep your catalog,
|
|
590
590
|
orders, shipping and payments in sync through the Ecommerce API.
|
|
@@ -592,6 +592,14 @@ orders, shipping and payments in sync through the Ecommerce API.
|
|
|
592
592
|
- **Method**: `POST`
|
|
593
593
|
- **Path**: `/api/ecommerce/v1/stores/{store_id}/sales-channels`
|
|
594
594
|
|
|
595
|
+
#### ecommerce_updateSalesChannelV1
|
|
596
|
+
|
|
597
|
+
Update a custom sales channel. The merchant-facing `name` and the public `url`
|
|
598
|
+
(returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
599
|
+
|
|
600
|
+
- **Method**: `PATCH`
|
|
601
|
+
- **Path**: `/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}`
|
|
602
|
+
|
|
595
603
|
#### ecommerce_setStoreShippingV1
|
|
596
604
|
|
|
597
605
|
Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
|
|
@@ -624,6 +632,14 @@ A primary sales channel is created alongside the store.
|
|
|
624
632
|
- **Method**: `POST`
|
|
625
633
|
- **Path**: `/api/ecommerce/v1/stores`
|
|
626
634
|
|
|
635
|
+
#### ecommerce_getStoreMetadataV1
|
|
636
|
+
|
|
637
|
+
Get a store's readiness metadata: whether payment methods and shipping are configured,
|
|
638
|
+
plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
639
|
+
|
|
640
|
+
- **Method**: `GET`
|
|
641
|
+
- **Path**: `/api/ecommerce/v1/stores/{store_id}/metadata`
|
|
642
|
+
|
|
627
643
|
### `hostinger-horizons-mcp`
|
|
628
644
|
|
|
629
645
|
#### horizons_createWebsiteV1
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/hostinger/api-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.2.
|
|
9
|
+
"version": "1.2.1",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "hostinger-api-mcp",
|
|
14
|
-
"version": "1.2.
|
|
14
|
+
"version": "1.2.1",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
package/src/core/runtime.js
CHANGED
package/src/core/runtime.ts
CHANGED
package/src/core/tools/all.js
CHANGED
|
@@ -1445,7 +1445,7 @@ export default [
|
|
|
1445
1445
|
"group": "ecommerce"
|
|
1446
1446
|
},
|
|
1447
1447
|
{
|
|
1448
|
-
"name": "
|
|
1448
|
+
"name": "ecommerce_createCustomSalesChannelV1",
|
|
1449
1449
|
"description": "Create a custom sales channel for a store. Build your own frontend and keep your catalog,\norders, shipping and payments in sync through the Ecommerce API.",
|
|
1450
1450
|
"method": "POST",
|
|
1451
1451
|
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels",
|
|
@@ -1485,6 +1485,43 @@ export default [
|
|
|
1485
1485
|
],
|
|
1486
1486
|
"group": "ecommerce"
|
|
1487
1487
|
},
|
|
1488
|
+
{
|
|
1489
|
+
"name": "ecommerce_updateSalesChannelV1",
|
|
1490
|
+
"description": "Update a custom sales channel. The merchant-facing `name` and the public `url`\n(returned as the channel `domain`) can be changed. Pass `null` to clear a value.",
|
|
1491
|
+
"method": "PATCH",
|
|
1492
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}",
|
|
1493
|
+
"inputSchema": {
|
|
1494
|
+
"type": "object",
|
|
1495
|
+
"properties": {
|
|
1496
|
+
"store_id": {
|
|
1497
|
+
"type": "string",
|
|
1498
|
+
"description": "The ID of the store that owns the sales channel."
|
|
1499
|
+
},
|
|
1500
|
+
"sales_channel_id": {
|
|
1501
|
+
"type": "string",
|
|
1502
|
+
"description": "The ID of the sales channel to update."
|
|
1503
|
+
},
|
|
1504
|
+
"name": {
|
|
1505
|
+
"type": "string",
|
|
1506
|
+
"description": "Merchant-facing custom name shown in the sales channels list. Pass null to clear it."
|
|
1507
|
+
},
|
|
1508
|
+
"url": {
|
|
1509
|
+
"type": "string",
|
|
1510
|
+
"description": "Public address where the custom sales channel lives. Pass null to clear it."
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1513
|
+
"required": [
|
|
1514
|
+
"store_id",
|
|
1515
|
+
"sales_channel_id"
|
|
1516
|
+
]
|
|
1517
|
+
},
|
|
1518
|
+
"security": [
|
|
1519
|
+
{
|
|
1520
|
+
"apiToken": []
|
|
1521
|
+
}
|
|
1522
|
+
],
|
|
1523
|
+
"group": "ecommerce"
|
|
1524
|
+
},
|
|
1488
1525
|
{
|
|
1489
1526
|
"name": "ecommerce_setStoreShippingV1",
|
|
1490
1527
|
"description": "Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.",
|
|
@@ -1615,6 +1652,30 @@ export default [
|
|
|
1615
1652
|
],
|
|
1616
1653
|
"group": "ecommerce"
|
|
1617
1654
|
},
|
|
1655
|
+
{
|
|
1656
|
+
"name": "ecommerce_getStoreMetadataV1",
|
|
1657
|
+
"description": "Get a store's readiness metadata: whether payment methods and shipping are configured,\nplus its default currency. Useful to verify prerequisites before building a storefront.",
|
|
1658
|
+
"method": "GET",
|
|
1659
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/metadata",
|
|
1660
|
+
"inputSchema": {
|
|
1661
|
+
"type": "object",
|
|
1662
|
+
"properties": {
|
|
1663
|
+
"store_id": {
|
|
1664
|
+
"type": "string",
|
|
1665
|
+
"description": "The ID of the store to read metadata for."
|
|
1666
|
+
}
|
|
1667
|
+
},
|
|
1668
|
+
"required": [
|
|
1669
|
+
"store_id"
|
|
1670
|
+
]
|
|
1671
|
+
},
|
|
1672
|
+
"security": [
|
|
1673
|
+
{
|
|
1674
|
+
"apiToken": []
|
|
1675
|
+
}
|
|
1676
|
+
],
|
|
1677
|
+
"group": "ecommerce"
|
|
1678
|
+
},
|
|
1618
1679
|
{
|
|
1619
1680
|
"name": "horizons_createWebsiteV1",
|
|
1620
1681
|
"description": "Create new Hostinger Horizons website from the given message.\\n\nUse this tool when user asks you to create a website, landing page, blog\nor any other type of application.\\n\nThis tool initiates the website creation process and returns a website URL and ID.\nThe generation happens asynchronously.\\n\nAfter invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing\nthat Hostinger Horizons is now creating their website and it will be ready in a few minutes\nand you should provide the website URL to the user immediately\nDo not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface\nin the provided website URL.\nIf the tool call fails with an error, you should provide a clear explanation of the error\nand do not generate code yourself in the chat.\n\\n\nTECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n\nThe environment is limited to the following technologies.\nYou MUST NOT use, suggest, or implement any technology outside this list:\\n\n\\n\n- Language: JavaScript ONLY.\n- Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n\n- Framework: React.\\n\n- Navigation: React Router.\\n\n- Styling: TailwindCSS.\\n\n- Components: shadcn/ui (built with @radix-ui primitives).\\n\n- Icons: Lucide React.\\n\n- Animations: Framer Motion.\\n\n\\n\nBACKEND & DATA STORAGE:\\n\n- Horizons integrated backend is the EXCLUSIVE solution for persistent data storage,\nauthentication, and database needs.\\n\n- Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n\n- Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n\n\\n\nMAPS:\\n\n- OpenStreetMap is the default provider.\\n\n- Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n",
|
package/src/core/tools/all.ts
CHANGED
|
@@ -1455,7 +1455,7 @@ const tools: OpenApiTool[] = [
|
|
|
1455
1455
|
"group": "ecommerce"
|
|
1456
1456
|
},
|
|
1457
1457
|
{
|
|
1458
|
-
"name": "
|
|
1458
|
+
"name": "ecommerce_createCustomSalesChannelV1",
|
|
1459
1459
|
"description": "Create a custom sales channel for a store. Build your own frontend and keep your catalog,\norders, shipping and payments in sync through the Ecommerce API.",
|
|
1460
1460
|
"method": "POST",
|
|
1461
1461
|
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels",
|
|
@@ -1495,6 +1495,43 @@ const tools: OpenApiTool[] = [
|
|
|
1495
1495
|
],
|
|
1496
1496
|
"group": "ecommerce"
|
|
1497
1497
|
},
|
|
1498
|
+
{
|
|
1499
|
+
"name": "ecommerce_updateSalesChannelV1",
|
|
1500
|
+
"description": "Update a custom sales channel. The merchant-facing `name` and the public `url`\n(returned as the channel `domain`) can be changed. Pass `null` to clear a value.",
|
|
1501
|
+
"method": "PATCH",
|
|
1502
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}",
|
|
1503
|
+
"inputSchema": {
|
|
1504
|
+
"type": "object",
|
|
1505
|
+
"properties": {
|
|
1506
|
+
"store_id": {
|
|
1507
|
+
"type": "string",
|
|
1508
|
+
"description": "The ID of the store that owns the sales channel."
|
|
1509
|
+
},
|
|
1510
|
+
"sales_channel_id": {
|
|
1511
|
+
"type": "string",
|
|
1512
|
+
"description": "The ID of the sales channel to update."
|
|
1513
|
+
},
|
|
1514
|
+
"name": {
|
|
1515
|
+
"type": "string",
|
|
1516
|
+
"description": "Merchant-facing custom name shown in the sales channels list. Pass null to clear it."
|
|
1517
|
+
},
|
|
1518
|
+
"url": {
|
|
1519
|
+
"type": "string",
|
|
1520
|
+
"description": "Public address where the custom sales channel lives. Pass null to clear it."
|
|
1521
|
+
}
|
|
1522
|
+
},
|
|
1523
|
+
"required": [
|
|
1524
|
+
"store_id",
|
|
1525
|
+
"sales_channel_id"
|
|
1526
|
+
]
|
|
1527
|
+
},
|
|
1528
|
+
"security": [
|
|
1529
|
+
{
|
|
1530
|
+
"apiToken": []
|
|
1531
|
+
}
|
|
1532
|
+
],
|
|
1533
|
+
"group": "ecommerce"
|
|
1534
|
+
},
|
|
1498
1535
|
{
|
|
1499
1536
|
"name": "ecommerce_setStoreShippingV1",
|
|
1500
1537
|
"description": "Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.",
|
|
@@ -1625,6 +1662,30 @@ const tools: OpenApiTool[] = [
|
|
|
1625
1662
|
],
|
|
1626
1663
|
"group": "ecommerce"
|
|
1627
1664
|
},
|
|
1665
|
+
{
|
|
1666
|
+
"name": "ecommerce_getStoreMetadataV1",
|
|
1667
|
+
"description": "Get a store's readiness metadata: whether payment methods and shipping are configured,\nplus its default currency. Useful to verify prerequisites before building a storefront.",
|
|
1668
|
+
"method": "GET",
|
|
1669
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/metadata",
|
|
1670
|
+
"inputSchema": {
|
|
1671
|
+
"type": "object",
|
|
1672
|
+
"properties": {
|
|
1673
|
+
"store_id": {
|
|
1674
|
+
"type": "string",
|
|
1675
|
+
"description": "The ID of the store to read metadata for."
|
|
1676
|
+
}
|
|
1677
|
+
},
|
|
1678
|
+
"required": [
|
|
1679
|
+
"store_id"
|
|
1680
|
+
]
|
|
1681
|
+
},
|
|
1682
|
+
"security": [
|
|
1683
|
+
{
|
|
1684
|
+
"apiToken": []
|
|
1685
|
+
}
|
|
1686
|
+
],
|
|
1687
|
+
"group": "ecommerce"
|
|
1688
|
+
},
|
|
1628
1689
|
{
|
|
1629
1690
|
"name": "horizons_createWebsiteV1",
|
|
1630
1691
|
"description": "Create new Hostinger Horizons website from the given message.\\n\nUse this tool when user asks you to create a website, landing page, blog\nor any other type of application.\\n\nThis tool initiates the website creation process and returns a website URL and ID.\nThe generation happens asynchronously.\\n\nAfter invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing\nthat Hostinger Horizons is now creating their website and it will be ready in a few minutes\nand you should provide the website URL to the user immediately\nDo not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface\nin the provided website URL.\nIf the tool call fails with an error, you should provide a clear explanation of the error\nand do not generate code yourself in the chat.\n\\n\nTECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n\nThe environment is limited to the following technologies.\nYou MUST NOT use, suggest, or implement any technology outside this list:\\n\n\\n\n- Language: JavaScript ONLY.\n- Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n\n- Framework: React.\\n\n- Navigation: React Router.\\n\n- Styling: TailwindCSS.\\n\n- Components: shadcn/ui (built with @radix-ui primitives).\\n\n- Icons: Lucide React.\\n\n- Animations: Framer Motion.\\n\n\\n\nBACKEND & DATA STORAGE:\\n\n- Horizons integrated backend is the EXCLUSIVE solution for persistent data storage,\nauthentication, and database needs.\\n\n- Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n\n- Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n\n\\n\nMAPS:\\n\n- OpenStreetMap is the default provider.\\n\n- Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n",
|
|
@@ -158,7 +158,7 @@ export default [
|
|
|
158
158
|
"group": "ecommerce"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
|
-
"name": "
|
|
161
|
+
"name": "ecommerce_createCustomSalesChannelV1",
|
|
162
162
|
"description": "Create a custom sales channel for a store. Build your own frontend and keep your catalog,\norders, shipping and payments in sync through the Ecommerce API.",
|
|
163
163
|
"method": "POST",
|
|
164
164
|
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels",
|
|
@@ -198,6 +198,43 @@ export default [
|
|
|
198
198
|
],
|
|
199
199
|
"group": "ecommerce"
|
|
200
200
|
},
|
|
201
|
+
{
|
|
202
|
+
"name": "ecommerce_updateSalesChannelV1",
|
|
203
|
+
"description": "Update a custom sales channel. The merchant-facing `name` and the public `url`\n(returned as the channel `domain`) can be changed. Pass `null` to clear a value.",
|
|
204
|
+
"method": "PATCH",
|
|
205
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}",
|
|
206
|
+
"inputSchema": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"store_id": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"description": "The ID of the store that owns the sales channel."
|
|
212
|
+
},
|
|
213
|
+
"sales_channel_id": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"description": "The ID of the sales channel to update."
|
|
216
|
+
},
|
|
217
|
+
"name": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "Merchant-facing custom name shown in the sales channels list. Pass null to clear it."
|
|
220
|
+
},
|
|
221
|
+
"url": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"description": "Public address where the custom sales channel lives. Pass null to clear it."
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": [
|
|
227
|
+
"store_id",
|
|
228
|
+
"sales_channel_id"
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
"security": [
|
|
232
|
+
{
|
|
233
|
+
"apiToken": []
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"group": "ecommerce"
|
|
237
|
+
},
|
|
201
238
|
{
|
|
202
239
|
"name": "ecommerce_setStoreShippingV1",
|
|
203
240
|
"description": "Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.",
|
|
@@ -327,5 +364,29 @@ export default [
|
|
|
327
364
|
}
|
|
328
365
|
],
|
|
329
366
|
"group": "ecommerce"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"name": "ecommerce_getStoreMetadataV1",
|
|
370
|
+
"description": "Get a store's readiness metadata: whether payment methods and shipping are configured,\nplus its default currency. Useful to verify prerequisites before building a storefront.",
|
|
371
|
+
"method": "GET",
|
|
372
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/metadata",
|
|
373
|
+
"inputSchema": {
|
|
374
|
+
"type": "object",
|
|
375
|
+
"properties": {
|
|
376
|
+
"store_id": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"description": "The ID of the store to read metadata for."
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"required": [
|
|
382
|
+
"store_id"
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
"security": [
|
|
386
|
+
{
|
|
387
|
+
"apiToken": []
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
"group": "ecommerce"
|
|
330
391
|
}
|
|
331
392
|
];
|
|
@@ -168,7 +168,7 @@ const tools: OpenApiTool[] = [
|
|
|
168
168
|
"group": "ecommerce"
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
|
-
"name": "
|
|
171
|
+
"name": "ecommerce_createCustomSalesChannelV1",
|
|
172
172
|
"description": "Create a custom sales channel for a store. Build your own frontend and keep your catalog,\norders, shipping and payments in sync through the Ecommerce API.",
|
|
173
173
|
"method": "POST",
|
|
174
174
|
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels",
|
|
@@ -208,6 +208,43 @@ const tools: OpenApiTool[] = [
|
|
|
208
208
|
],
|
|
209
209
|
"group": "ecommerce"
|
|
210
210
|
},
|
|
211
|
+
{
|
|
212
|
+
"name": "ecommerce_updateSalesChannelV1",
|
|
213
|
+
"description": "Update a custom sales channel. The merchant-facing `name` and the public `url`\n(returned as the channel `domain`) can be changed. Pass `null` to clear a value.",
|
|
214
|
+
"method": "PATCH",
|
|
215
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/sales-channels/{sales_channel_id}",
|
|
216
|
+
"inputSchema": {
|
|
217
|
+
"type": "object",
|
|
218
|
+
"properties": {
|
|
219
|
+
"store_id": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"description": "The ID of the store that owns the sales channel."
|
|
222
|
+
},
|
|
223
|
+
"sales_channel_id": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"description": "The ID of the sales channel to update."
|
|
226
|
+
},
|
|
227
|
+
"name": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"description": "Merchant-facing custom name shown in the sales channels list. Pass null to clear it."
|
|
230
|
+
},
|
|
231
|
+
"url": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"description": "Public address where the custom sales channel lives. Pass null to clear it."
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"required": [
|
|
237
|
+
"store_id",
|
|
238
|
+
"sales_channel_id"
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
"security": [
|
|
242
|
+
{
|
|
243
|
+
"apiToken": []
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"group": "ecommerce"
|
|
247
|
+
},
|
|
211
248
|
{
|
|
212
249
|
"name": "ecommerce_setStoreShippingV1",
|
|
213
250
|
"description": "Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.",
|
|
@@ -337,6 +374,30 @@ const tools: OpenApiTool[] = [
|
|
|
337
374
|
}
|
|
338
375
|
],
|
|
339
376
|
"group": "ecommerce"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "ecommerce_getStoreMetadataV1",
|
|
380
|
+
"description": "Get a store's readiness metadata: whether payment methods and shipping are configured,\nplus its default currency. Useful to verify prerequisites before building a storefront.",
|
|
381
|
+
"method": "GET",
|
|
382
|
+
"path": "/api/ecommerce/v1/stores/{store_id}/metadata",
|
|
383
|
+
"inputSchema": {
|
|
384
|
+
"type": "object",
|
|
385
|
+
"properties": {
|
|
386
|
+
"store_id": {
|
|
387
|
+
"type": "string",
|
|
388
|
+
"description": "The ID of the store to read metadata for."
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"required": [
|
|
392
|
+
"store_id"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
"security": [
|
|
396
|
+
{
|
|
397
|
+
"apiToken": []
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"group": "ecommerce"
|
|
340
401
|
}
|
|
341
402
|
];
|
|
342
403
|
export default tools;
|
package/src/servers/all.js
CHANGED
package/src/servers/all.ts
CHANGED
package/src/servers/billing.js
CHANGED
package/src/servers/billing.ts
CHANGED
package/src/servers/dns.js
CHANGED
package/src/servers/dns.ts
CHANGED
package/src/servers/domains.js
CHANGED
package/src/servers/domains.ts
CHANGED
package/src/servers/ecommerce.js
CHANGED
package/src/servers/ecommerce.ts
CHANGED
package/src/servers/horizons.js
CHANGED
package/src/servers/horizons.ts
CHANGED
package/src/servers/hosting.js
CHANGED
package/src/servers/hosting.ts
CHANGED
package/src/servers/reach.js
CHANGED
package/src/servers/reach.ts
CHANGED
package/src/servers/vps.js
CHANGED
package/src/servers/vps.ts
CHANGED
package/src/servers/wordpress.js
CHANGED
package/src/servers/wordpress.ts
CHANGED
package/types.d.ts
CHANGED
|
@@ -904,7 +904,7 @@ the Ecommerce API.
|
|
|
904
904
|
* Create a custom sales channel for a store. Build your own frontend and keep your catalog,
|
|
905
905
|
orders, shipping and payments in sync through the Ecommerce API.
|
|
906
906
|
*/
|
|
907
|
-
"
|
|
907
|
+
"ecommerce_createCustomSalesChannelV1": {
|
|
908
908
|
params: {
|
|
909
909
|
/**
|
|
910
910
|
* The ID of the store to create the sales channel for.
|
|
@@ -926,6 +926,32 @@ orders, shipping and payments in sync through the Ecommerce API.
|
|
|
926
926
|
response: any; // Response structure will depend on the API
|
|
927
927
|
};
|
|
928
928
|
|
|
929
|
+
/**
|
|
930
|
+
* Update a custom sales channel. The merchant-facing `name` and the public `url`
|
|
931
|
+
(returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
932
|
+
*/
|
|
933
|
+
"ecommerce_updateSalesChannelV1": {
|
|
934
|
+
params: {
|
|
935
|
+
/**
|
|
936
|
+
* The ID of the store that owns the sales channel.
|
|
937
|
+
*/
|
|
938
|
+
store_id: string;
|
|
939
|
+
/**
|
|
940
|
+
* The ID of the sales channel to update.
|
|
941
|
+
*/
|
|
942
|
+
sales_channel_id: string;
|
|
943
|
+
/**
|
|
944
|
+
* Merchant-facing custom name shown in the sales channels list. Pass null to clear it.
|
|
945
|
+
*/
|
|
946
|
+
name?: string;
|
|
947
|
+
/**
|
|
948
|
+
* Public address where the custom sales channel lives. Pass null to clear it.
|
|
949
|
+
*/
|
|
950
|
+
url?: string;
|
|
951
|
+
};
|
|
952
|
+
response: any; // Response structure will depend on the API
|
|
953
|
+
};
|
|
954
|
+
|
|
929
955
|
/**
|
|
930
956
|
* Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
|
|
931
957
|
*/
|
|
@@ -1006,6 +1032,20 @@ A primary sales channel is created alongside the store.
|
|
|
1006
1032
|
response: any; // Response structure will depend on the API
|
|
1007
1033
|
};
|
|
1008
1034
|
|
|
1035
|
+
/**
|
|
1036
|
+
* Get a store's readiness metadata: whether payment methods and shipping are configured,
|
|
1037
|
+
plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
1038
|
+
*/
|
|
1039
|
+
"ecommerce_getStoreMetadataV1": {
|
|
1040
|
+
params: {
|
|
1041
|
+
/**
|
|
1042
|
+
* The ID of the store to read metadata for.
|
|
1043
|
+
*/
|
|
1044
|
+
store_id: string;
|
|
1045
|
+
};
|
|
1046
|
+
response: any; // Response structure will depend on the API
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1009
1049
|
/**
|
|
1010
1050
|
* Create new Hostinger Horizons website from the given message.\n
|
|
1011
1051
|
Use this tool when user asks you to create a website, landing page, blog
|