hostinger-api-sdk 1.40.3 → 1.42.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.
Files changed (93) hide show
  1. package/.github/workflows/build-release.yaml +2 -2
  2. package/README.md +2 -2
  3. package/api.ts +7273 -3513
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +10977 -8171
  8. package/dist/api.js +1973 -100
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +10977 -8171
  16. package/dist/esm/api.js +1969 -109
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/EcommerceDiscountsApi.md +129 -0
  28. package/docs/EcommerceListDiscountsV1200Response.md +22 -0
  29. package/docs/EcommerceListProductVariantsV1200Response.md +22 -0
  30. package/docs/EcommerceListProductsV1200Response.md +22 -0
  31. package/docs/EcommerceListStoreOrdersV1200Response.md +22 -0
  32. package/docs/EcommerceOrdersApi.md +269 -0
  33. package/docs/EcommercePaymentsApi.md +114 -0
  34. package/docs/EcommerceProductVariantsApi.md +251 -0
  35. package/docs/EcommerceProductsApi.md +188 -0
  36. package/docs/EcommerceSalesChannelsApi.md +5 -5
  37. package/docs/EcommerceV1DiscountCreateDiscountRequest.md +38 -0
  38. package/docs/EcommerceV1DiscountDiscountResource.md +40 -0
  39. package/docs/EcommerceV1DiscountDiscountResponseResource.md +20 -0
  40. package/docs/EcommerceV1OrderCancelRequest.md +20 -0
  41. package/docs/EcommerceV1OrderFulfillRequest.md +26 -0
  42. package/docs/EcommerceV1OrderFulfillRequestItemsInner.md +22 -0
  43. package/docs/EcommerceV1OrderOrderDetailResource.md +60 -0
  44. package/docs/EcommerceV1OrderOrderDetailResourceBillingAddress.md +37 -0
  45. package/docs/EcommerceV1OrderOrderDetailResourceFulfillmentsInner.md +28 -0
  46. package/docs/EcommerceV1OrderOrderDetailResourceFulfillmentsInnerTrackingInner.md +22 -0
  47. package/docs/EcommerceV1OrderOrderDetailResourceItemsInner.md +36 -0
  48. package/docs/EcommerceV1OrderOrderDetailResourceShippingAddress.md +37 -0
  49. package/docs/EcommerceV1OrderOrderDetailResponseResource.md +20 -0
  50. package/docs/EcommerceV1OrderOrderResource.md +38 -0
  51. package/docs/EcommerceV1OrderOrderResponseResource.md +20 -0
  52. package/docs/EcommerceV1PaymentProviderPaymentProviderConnectLinkResource.md +20 -0
  53. package/docs/EcommerceV1PaymentProviderPaymentProviderConnectLinkResourceData.md +22 -0
  54. package/docs/EcommerceV1PaymentProviderPaymentProviderListResource.md +20 -0
  55. package/docs/EcommerceV1PaymentProviderPaymentProviderListResourceData.md +22 -0
  56. package/docs/EcommerceV1PaymentProviderPaymentProviderListResourceDataAvailableInner.md +28 -0
  57. package/docs/EcommerceV1PaymentProviderPaymentProviderListResourceDataConnectedInner.md +30 -0
  58. package/docs/EcommerceV1ProductProductDeletedResource.md +20 -0
  59. package/docs/EcommerceV1ProductProductDeletedResourceData.md +24 -0
  60. package/docs/EcommerceV1ProductProductResource.md +36 -0
  61. package/docs/EcommerceV1ProductProductResourceMediaInner.md +24 -0
  62. package/docs/EcommerceV1ProductProductResourcePriceRange.md +25 -0
  63. package/docs/EcommerceV1ProductProductResourceVariantsInner.md +32 -0
  64. package/docs/EcommerceV1ProductProductResourceVariantsInnerOptionsInner.md +22 -0
  65. package/docs/EcommerceV1ProductProductResourceVariantsInnerPricesInner.md +24 -0
  66. package/docs/EcommerceV1ProductProductResponseResource.md +20 -0
  67. package/docs/EcommerceV1ProductUpdateRequest.md +24 -0
  68. package/docs/EcommerceV1SalesChannelStoreRequest.md +3 -3
  69. package/docs/EcommerceV1VariantBatchUpdateVariantsRequest.md +20 -0
  70. package/docs/EcommerceV1VariantBatchUpdateVariantsRequestVariantsInner.md +28 -0
  71. package/docs/EcommerceV1VariantBatchUpdateVariantsRequestVariantsInnerPricesInner.md +24 -0
  72. package/docs/EcommerceV1VariantCreateVariantRequest.md +30 -0
  73. package/docs/EcommerceV1VariantCreateVariantRequestOptionsInner.md +22 -0
  74. package/docs/EcommerceV1VariantCreateVariantRequestPricesInner.md +24 -0
  75. package/docs/EcommerceV1VariantVariantDeletedResource.md +20 -0
  76. package/docs/EcommerceV1VariantVariantDeletedResourceData.md +22 -0
  77. package/docs/EcommerceV1VariantVariantListResponseResource.md +20 -0
  78. package/docs/EcommerceV1VariantVariantResource.md +32 -0
  79. package/docs/EcommerceV1VariantVariantResourceOptionsInner.md +22 -0
  80. package/docs/EcommerceV1VariantVariantResponseResource.md +20 -0
  81. package/docs/ReachProfilesApi.md +108 -0
  82. package/docs/ReachSegmentsApi.md +113 -0
  83. package/docs/ReachV1ContactsSegmentsProfileFilterContactsRequest.md +33 -0
  84. package/docs/ReachV1ContactsSegmentsProfileFilterContactsRequestConditionsInner.md +24 -0
  85. package/docs/ReachV1ContactsSegmentsSegmentFilterAttributeResource.md +27 -0
  86. package/docs/ReachV1ContactsSegmentsSegmentFilterAttributesResource.md +23 -0
  87. package/docs/ReachV1ContactsSegmentsSegmentFilterOperatorResource.md +29 -0
  88. package/docs/ReachV1ContactsStoreRequest.md +2 -0
  89. package/docs/ReachV1ProfilesDomainsSendingDomainResource.md +29 -0
  90. package/docs/ReachV1ProfilesDomainsSuspendedSenderEmailResource.md +25 -0
  91. package/docs/ReachV1ProfilesFeaturesPlanFeatureResource.md +25 -0
  92. package/index.ts +1 -1
  93. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.3
4
+ * API Version: 1.43.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.3
6
+ * API Version: 1.43.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.3
4
+ * API Version: 1.43.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.3
6
+ * API Version: 1.43.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.3
4
+ * API Version: 1.43.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.3
6
+ * API Version: 1.43.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.40.3" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.42.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.3
4
+ * API Version: 1.43.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.3
6
+ * API Version: 1.43.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.3
4
+ * API Version: 1.43.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.42.3
7
+ * API Version: 1.43.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -0,0 +1,129 @@
1
+ # EcommerceDiscountsApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createADiscountV1**](#createadiscountv1) | **POST** /api/ecommerce/v1/stores/{store_id}/discounts | Create a discount|
8
+ |[**listDiscountsV1**](#listdiscountsv1) | **GET** /api/ecommerce/v1/stores/{store_id}/discounts | List discounts|
9
+
10
+ # **createADiscountV1**
11
+ > EcommerceV1DiscountDiscountResponseResource createADiscountV1(ecommerceV1DiscountCreateDiscountRequest)
12
+
13
+ Create a discount for a store. Fixed discounts take an amount in the smallest currency unit (e.g. $10 is 1000); percentage discounts take a whole-number value between 1 and 100. Free-shipping discounts ignore value. Returns the created discount.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ EcommerceDiscountsApi,
20
+ Configuration,
21
+ EcommerceV1DiscountCreateDiscountRequest
22
+ } from 'hostinger-api-sdk';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new EcommerceDiscountsApi(configuration);
26
+
27
+ let storeId: string; //The ID of the store to create the discount for. (default to undefined)
28
+ let ecommerceV1DiscountCreateDiscountRequest: EcommerceV1DiscountCreateDiscountRequest; //
29
+
30
+ const { status, data } = await apiInstance.createADiscountV1(
31
+ storeId,
32
+ ecommerceV1DiscountCreateDiscountRequest
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **ecommerceV1DiscountCreateDiscountRequest** | **EcommerceV1DiscountCreateDiscountRequest**| | |
41
+ | **storeId** | [**string**] | The ID of the store to create the discount for. | defaults to undefined|
42
+
43
+
44
+ ### Return type
45
+
46
+ **EcommerceV1DiscountDiscountResponseResource**
47
+
48
+ ### Authorization
49
+
50
+ [apiToken](../README.md#apiToken)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: application/json
55
+ - **Accept**: application/json
56
+
57
+
58
+ ### HTTP response details
59
+ | Status code | Description | Response headers |
60
+ |-------------|-------------|------------------|
61
+ |**201** | Created response | - |
62
+ |**422** | Validation error response | - |
63
+ |**401** | Unauthenticated response | - |
64
+ |**500** | Error response | - |
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
67
+
68
+ # **listDiscountsV1**
69
+ > EcommerceListDiscountsV1200Response listDiscountsV1()
70
+
71
+ List a store\'s discounts. Filter by free text over code and name, or by disabled state. Amounts for fixed discounts are integers in the smallest currency unit; percentage discounts carry a whole-number value between 1 and 100.
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ EcommerceDiscountsApi,
78
+ Configuration
79
+ } from 'hostinger-api-sdk';
80
+
81
+ const configuration = new Configuration();
82
+ const apiInstance = new EcommerceDiscountsApi(configuration);
83
+
84
+ let storeId: string; //The ID of the store to list discounts for. (default to undefined)
85
+ let q: string; //Free-text search over discount code and name. (optional) (default to undefined)
86
+ let isDisabled: 'true' | 'false'; //Filter by disabled state. (optional) (default to undefined)
87
+ let page: number; //Page number (optional) (default to undefined)
88
+
89
+ const { status, data } = await apiInstance.listDiscountsV1(
90
+ storeId,
91
+ q,
92
+ isDisabled,
93
+ page
94
+ );
95
+ ```
96
+
97
+ ### Parameters
98
+
99
+ |Name | Type | Description | Notes|
100
+ |------------- | ------------- | ------------- | -------------|
101
+ | **storeId** | [**string**] | The ID of the store to list discounts for. | defaults to undefined|
102
+ | **q** | [**string**] | Free-text search over discount code and name. | (optional) defaults to undefined|
103
+ | **isDisabled** | [**&#39;true&#39; | &#39;false&#39;**]**Array<&#39;true&#39; &#124; &#39;false&#39;>** | Filter by disabled state. | (optional) defaults to undefined|
104
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
105
+
106
+
107
+ ### Return type
108
+
109
+ **EcommerceListDiscountsV1200Response**
110
+
111
+ ### Authorization
112
+
113
+ [apiToken](../README.md#apiToken)
114
+
115
+ ### HTTP request headers
116
+
117
+ - **Content-Type**: Not defined
118
+ - **Accept**: application/json
119
+
120
+
121
+ ### HTTP response details
122
+ | Status code | Description | Response headers |
123
+ |-------------|-------------|------------------|
124
+ |**200** | Success response | - |
125
+ |**401** | Unauthenticated response | - |
126
+ |**500** | Error response | - |
127
+
128
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
129
+
@@ -0,0 +1,22 @@
1
+ # EcommerceListDiscountsV1200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array&lt;EcommerceV1DiscountDiscountResource&gt;**](EcommerceV1DiscountDiscountResource.md) | Array of [&#x60;Ecommerce.V1.Discount.DiscountResource&#x60;](#model/ecommercev1discountdiscountresource) | [optional] [default to undefined]
9
+ **meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EcommerceListDiscountsV1200Response } from 'hostinger-api-sdk';
15
+
16
+ const instance: EcommerceListDiscountsV1200Response = {
17
+ data,
18
+ meta,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # EcommerceListProductVariantsV1200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array&lt;EcommerceV1VariantVariantResource&gt;**](EcommerceV1VariantVariantResource.md) | Array of [&#x60;Ecommerce.V1.Variant.VariantResource&#x60;](#model/ecommercev1variantvariantresource) | [optional] [default to undefined]
9
+ **meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EcommerceListProductVariantsV1200Response } from 'hostinger-api-sdk';
15
+
16
+ const instance: EcommerceListProductVariantsV1200Response = {
17
+ data,
18
+ meta,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # EcommerceListProductsV1200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array&lt;EcommerceV1ProductProductResource&gt;**](EcommerceV1ProductProductResource.md) | Array of [&#x60;Ecommerce.V1.Product.ProductResource&#x60;](#model/ecommercev1productproductresource) | [optional] [default to undefined]
9
+ **meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EcommerceListProductsV1200Response } from 'hostinger-api-sdk';
15
+
16
+ const instance: EcommerceListProductsV1200Response = {
17
+ data,
18
+ meta,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # EcommerceListStoreOrdersV1200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array&lt;EcommerceV1OrderOrderResource&gt;**](EcommerceV1OrderOrderResource.md) | Array of [&#x60;Ecommerce.V1.Order.OrderResource&#x60;](#model/ecommercev1orderorderresource) | [optional] [default to undefined]
9
+ **meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EcommerceListStoreOrdersV1200Response } from 'hostinger-api-sdk';
15
+
16
+ const instance: EcommerceListStoreOrdersV1200Response = {
17
+ data,
18
+ meta,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,269 @@
1
+ # EcommerceOrdersApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**cancelAnOrderV1**](#cancelanorderv1) | **POST** /api/ecommerce/v1/stores/{store_id}/orders/{order_id}/cancel | Cancel an order|
8
+ |[**fulfilAnOrderV1**](#fulfilanorderv1) | **POST** /api/ecommerce/v1/stores/{store_id}/orders/{order_id}/fulfill | Fulfil an order|
9
+ |[**listStoreOrdersV1**](#liststoreordersv1) | **GET** /api/ecommerce/v1/stores/{store_id}/orders | List store orders|
10
+ |[**retrieveAnOrderV1**](#retrieveanorderv1) | **GET** /api/ecommerce/v1/stores/{store_id}/orders/{order_id} | Retrieve an order|
11
+
12
+ # **cancelAnOrderV1**
13
+ > EcommerceV1OrderOrderResponseResource cancelAnOrderV1(ecommerceV1OrderCancelRequest)
14
+
15
+ Cancel the order and optionally email the customer. Returns the updated order summary.
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ EcommerceOrdersApi,
22
+ Configuration,
23
+ EcommerceV1OrderCancelRequest
24
+ } from 'hostinger-api-sdk';
25
+
26
+ const configuration = new Configuration();
27
+ const apiInstance = new EcommerceOrdersApi(configuration);
28
+
29
+ let storeId: string; //The ID of the store that owns the order. (default to undefined)
30
+ let orderId: string; //The ID of the order to cancel. (default to undefined)
31
+ let ecommerceV1OrderCancelRequest: EcommerceV1OrderCancelRequest; //
32
+
33
+ const { status, data } = await apiInstance.cancelAnOrderV1(
34
+ storeId,
35
+ orderId,
36
+ ecommerceV1OrderCancelRequest
37
+ );
38
+ ```
39
+
40
+ ### Parameters
41
+
42
+ |Name | Type | Description | Notes|
43
+ |------------- | ------------- | ------------- | -------------|
44
+ | **ecommerceV1OrderCancelRequest** | **EcommerceV1OrderCancelRequest**| | |
45
+ | **storeId** | [**string**] | The ID of the store that owns the order. | defaults to undefined|
46
+ | **orderId** | [**string**] | The ID of the order to cancel. | defaults to undefined|
47
+
48
+
49
+ ### Return type
50
+
51
+ **EcommerceV1OrderOrderResponseResource**
52
+
53
+ ### Authorization
54
+
55
+ [apiToken](../README.md#apiToken)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json
60
+ - **Accept**: application/json
61
+
62
+
63
+ ### HTTP response details
64
+ | Status code | Description | Response headers |
65
+ |-------------|-------------|------------------|
66
+ |**200** | Success response | - |
67
+ |**422** | Validation error response | - |
68
+ |**401** | Unauthenticated response | - |
69
+ |**500** | Error response | - |
70
+
71
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
72
+
73
+ # **fulfilAnOrderV1**
74
+ > EcommerceV1OrderOrderResponseResource fulfilAnOrderV1(ecommerceV1OrderFulfillRequest)
75
+
76
+ Create a fulfilment for the order and attach tracking in one call. Omit items to fulfil every remaining unfulfilled item. Returns the updated order summary.
77
+
78
+ ### Example
79
+
80
+ ```typescript
81
+ import {
82
+ EcommerceOrdersApi,
83
+ Configuration,
84
+ EcommerceV1OrderFulfillRequest
85
+ } from 'hostinger-api-sdk';
86
+
87
+ const configuration = new Configuration();
88
+ const apiInstance = new EcommerceOrdersApi(configuration);
89
+
90
+ let storeId: string; //The ID of the store that owns the order. (default to undefined)
91
+ let orderId: string; //The ID of the order to fulfil. (default to undefined)
92
+ let ecommerceV1OrderFulfillRequest: EcommerceV1OrderFulfillRequest; //
93
+
94
+ const { status, data } = await apiInstance.fulfilAnOrderV1(
95
+ storeId,
96
+ orderId,
97
+ ecommerceV1OrderFulfillRequest
98
+ );
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+ |Name | Type | Description | Notes|
104
+ |------------- | ------------- | ------------- | -------------|
105
+ | **ecommerceV1OrderFulfillRequest** | **EcommerceV1OrderFulfillRequest**| | |
106
+ | **storeId** | [**string**] | The ID of the store that owns the order. | defaults to undefined|
107
+ | **orderId** | [**string**] | The ID of the order to fulfil. | defaults to undefined|
108
+
109
+
110
+ ### Return type
111
+
112
+ **EcommerceV1OrderOrderResponseResource**
113
+
114
+ ### Authorization
115
+
116
+ [apiToken](../README.md#apiToken)
117
+
118
+ ### HTTP request headers
119
+
120
+ - **Content-Type**: application/json
121
+ - **Accept**: application/json
122
+
123
+
124
+ ### HTTP response details
125
+ | Status code | Description | Response headers |
126
+ |-------------|-------------|------------------|
127
+ |**200** | Success response | - |
128
+ |**422** | Validation error response | - |
129
+ |**401** | Unauthenticated response | - |
130
+ |**500** | Error response | - |
131
+
132
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
133
+
134
+ # **listStoreOrdersV1**
135
+ > EcommerceListStoreOrdersV1200Response listStoreOrdersV1()
136
+
137
+ List a store\'s orders newest first as summaries. Filter by status, payment or fulfilment status, customer email, order number or a free-text query. Amounts are in the smallest currency unit. Retrieve a single order for its line items, addresses and fulfilments.
138
+
139
+ ### Example
140
+
141
+ ```typescript
142
+ import {
143
+ EcommerceOrdersApi,
144
+ Configuration
145
+ } from 'hostinger-api-sdk';
146
+
147
+ const configuration = new Configuration();
148
+ const apiInstance = new EcommerceOrdersApi(configuration);
149
+
150
+ let storeId: string; //The ID of the store to list orders for. (default to undefined)
151
+ let status: Array<'pending' | 'completed' | 'archived' | 'canceled' | 'requires_action'>; //Order statuses to include. (optional) (default to undefined)
152
+ let paymentStatus: Array<'not_paid' | 'awaiting' | 'captured' | 'partially_refunded' | 'refunded' | 'canceled' | 'requires_action' | 'not_required'>; //Payment statuses to include. A paid order is \"captured\". (optional) (default to undefined)
153
+ let fulfillmentStatus: Array<'not_fulfilled' | 'partially_fulfilled' | 'fulfilled' | 'partially_shipped' | 'shipped' | 'partially_returned' | 'returned' | 'canceled' | 'requires_action'>; //Fulfilment statuses to include. (optional) (default to undefined)
154
+ let email: string; //Customer email, matched exactly. (optional) (default to undefined)
155
+ let displayId: string; //The order number the merchant and customer see. (optional) (default to undefined)
156
+ let q: string; //Free-text search over customer name, email, order number and line items. (optional) (default to undefined)
157
+ let createdAtFrom: string; //Earliest creation time to include, inclusive. Accepts a date or ISO date-time (UTC). (optional) (default to undefined)
158
+ let createdAtTo: string; //Latest creation time to include, inclusive. A bare date covers that whole day. (optional) (default to undefined)
159
+ let page: number; //Page number (optional) (default to undefined)
160
+
161
+ const { status, data } = await apiInstance.listStoreOrdersV1(
162
+ storeId,
163
+ status,
164
+ paymentStatus,
165
+ fulfillmentStatus,
166
+ email,
167
+ displayId,
168
+ q,
169
+ createdAtFrom,
170
+ createdAtTo,
171
+ page
172
+ );
173
+ ```
174
+
175
+ ### Parameters
176
+
177
+ |Name | Type | Description | Notes|
178
+ |------------- | ------------- | ------------- | -------------|
179
+ | **storeId** | [**string**] | The ID of the store to list orders for. | defaults to undefined|
180
+ | **status** | **Array<&#39;pending&#39; &#124; &#39;completed&#39; &#124; &#39;archived&#39; &#124; &#39;canceled&#39; &#124; &#39;requires_action&#39;>** | Order statuses to include. | (optional) defaults to undefined|
181
+ | **paymentStatus** | **Array<&#39;not_paid&#39; &#124; &#39;awaiting&#39; &#124; &#39;captured&#39; &#124; &#39;partially_refunded&#39; &#124; &#39;refunded&#39; &#124; &#39;canceled&#39; &#124; &#39;requires_action&#39; &#124; &#39;not_required&#39;>** | Payment statuses to include. A paid order is \&quot;captured\&quot;. | (optional) defaults to undefined|
182
+ | **fulfillmentStatus** | **Array<&#39;not_fulfilled&#39; &#124; &#39;partially_fulfilled&#39; &#124; &#39;fulfilled&#39; &#124; &#39;partially_shipped&#39; &#124; &#39;shipped&#39; &#124; &#39;partially_returned&#39; &#124; &#39;returned&#39; &#124; &#39;canceled&#39; &#124; &#39;requires_action&#39;>** | Fulfilment statuses to include. | (optional) defaults to undefined|
183
+ | **email** | [**string**] | Customer email, matched exactly. | (optional) defaults to undefined|
184
+ | **displayId** | [**string**] | The order number the merchant and customer see. | (optional) defaults to undefined|
185
+ | **q** | [**string**] | Free-text search over customer name, email, order number and line items. | (optional) defaults to undefined|
186
+ | **createdAtFrom** | [**string**] | Earliest creation time to include, inclusive. Accepts a date or ISO date-time (UTC). | (optional) defaults to undefined|
187
+ | **createdAtTo** | [**string**] | Latest creation time to include, inclusive. A bare date covers that whole day. | (optional) defaults to undefined|
188
+ | **page** | [**number**] | Page number | (optional) defaults to undefined|
189
+
190
+
191
+ ### Return type
192
+
193
+ **EcommerceListStoreOrdersV1200Response**
194
+
195
+ ### Authorization
196
+
197
+ [apiToken](../README.md#apiToken)
198
+
199
+ ### HTTP request headers
200
+
201
+ - **Content-Type**: Not defined
202
+ - **Accept**: application/json
203
+
204
+
205
+ ### HTTP response details
206
+ | Status code | Description | Response headers |
207
+ |-------------|-------------|------------------|
208
+ |**200** | Success response | - |
209
+ |**401** | Unauthenticated response | - |
210
+ |**500** | Error response | - |
211
+
212
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
213
+
214
+ # **retrieveAnOrderV1**
215
+ > EcommerceV1OrderOrderDetailResponseResource retrieveAnOrderV1()
216
+
217
+ Retrieve one order in full: line items (each with the id the fulfil endpoint needs), addresses, the totals breakdown and fulfilments with tracking. Amounts are in the smallest currency unit.
218
+
219
+ ### Example
220
+
221
+ ```typescript
222
+ import {
223
+ EcommerceOrdersApi,
224
+ Configuration
225
+ } from 'hostinger-api-sdk';
226
+
227
+ const configuration = new Configuration();
228
+ const apiInstance = new EcommerceOrdersApi(configuration);
229
+
230
+ let storeId: string; //The ID of the store that owns the order. (default to undefined)
231
+ let orderId: string; //The ID of the order to retrieve. (default to undefined)
232
+
233
+ const { status, data } = await apiInstance.retrieveAnOrderV1(
234
+ storeId,
235
+ orderId
236
+ );
237
+ ```
238
+
239
+ ### Parameters
240
+
241
+ |Name | Type | Description | Notes|
242
+ |------------- | ------------- | ------------- | -------------|
243
+ | **storeId** | [**string**] | The ID of the store that owns the order. | defaults to undefined|
244
+ | **orderId** | [**string**] | The ID of the order to retrieve. | defaults to undefined|
245
+
246
+
247
+ ### Return type
248
+
249
+ **EcommerceV1OrderOrderDetailResponseResource**
250
+
251
+ ### Authorization
252
+
253
+ [apiToken](../README.md#apiToken)
254
+
255
+ ### HTTP request headers
256
+
257
+ - **Content-Type**: Not defined
258
+ - **Accept**: application/json
259
+
260
+
261
+ ### HTTP response details
262
+ | Status code | Description | Response headers |
263
+ |-------------|-------------|------------------|
264
+ |**200** | Success response | - |
265
+ |**401** | Unauthenticated response | - |
266
+ |**500** | Error response | - |
267
+
268
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
269
+