hostinger-api-sdk 1.24.0 → 1.26.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 (39) hide show
  1. package/README.md +2 -2
  2. package/api.ts +1052 -85
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +578 -32
  7. package/dist/api.js +753 -9
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +578 -32
  15. package/dist/esm/api.js +741 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/DomainsMoveApi.md +438 -0
  27. package/docs/DomainsPortfolioApi.md +56 -0
  28. package/docs/DomainsTransferApi.md +56 -0
  29. package/docs/DomainsV1MoveIncomingUpdateRequest.md +20 -0
  30. package/docs/DomainsV1MoveIncomingUpdateRequestDomainContacts.md +27 -0
  31. package/docs/DomainsV1MoveMoveResource.md +26 -0
  32. package/docs/DomainsV1MoveOutgoingStoreRequest.md +20 -0
  33. package/docs/DomainsV1PortfolioClaimRequest.md +24 -0
  34. package/docs/{DomainsV1PortfolioPurchaseRequestDomainContacts.md → DomainsV1PortfolioClaimRequestDomainContacts.md} +3 -3
  35. package/docs/DomainsV1PortfolioClaimResource.md +24 -0
  36. package/docs/DomainsV1PortfolioPurchaseRequest.md +1 -1
  37. package/docs/DomainsV1TransferClaimRequest.md +26 -0
  38. package/index.ts +1 -1
  39. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.25.0
4
+ * API Version: 1.27.0
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.25.0
6
+ * API Version: 1.27.0
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.25.0
4
+ * API Version: 1.27.0
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.25.0
6
+ * API Version: 1.27.0
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.25.0
4
+ * API Version: 1.27.0
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.25.0
6
+ * API Version: 1.27.0
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.24.0" }, (_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.26.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.25.0
4
+ * API Version: 1.27.0
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.25.0
6
+ * API Version: 1.27.0
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.25.0
4
+ * API Version: 1.27.0
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.25.0
7
+ * API Version: 1.27.0
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,438 @@
1
+ # DomainsMoveApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**acceptIncomingDomainMoveV1**](#acceptincomingdomainmovev1) | **PUT** /api/domains/v1/move/incoming/{domain} | Accept incoming domain move|
8
+ |[**cancelOutgoingDomainMoveV1**](#canceloutgoingdomainmovev1) | **DELETE** /api/domains/v1/move/outgoing/{domain} | Cancel outgoing domain move|
9
+ |[**getIncomingDomainMoveListV1**](#getincomingdomainmovelistv1) | **GET** /api/domains/v1/move/incoming | Get incoming domain move list|
10
+ |[**getIncomingDomainMoveV1**](#getincomingdomainmovev1) | **GET** /api/domains/v1/move/incoming/{domain} | Get incoming domain move|
11
+ |[**getOutgoingDomainMoveListV1**](#getoutgoingdomainmovelistv1) | **GET** /api/domains/v1/move/outgoing | Get outgoing domain move list|
12
+ |[**getOutgoingDomainMoveV1**](#getoutgoingdomainmovev1) | **GET** /api/domains/v1/move/outgoing/{domain} | Get outgoing domain move|
13
+ |[**rejectIncomingDomainMoveV1**](#rejectincomingdomainmovev1) | **DELETE** /api/domains/v1/move/incoming/{domain} | Reject incoming domain move|
14
+ |[**startOutgoingDomainMoveV1**](#startoutgoingdomainmovev1) | **POST** /api/domains/v1/move/outgoing/{domain} | Start outgoing domain move|
15
+
16
+ # **acceptIncomingDomainMoveV1**
17
+ > CommonSuccessEmptyResource acceptIncomingDomainMoveV1(domainsV1MoveIncomingUpdateRequest)
18
+
19
+ Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
20
+
21
+ ### Example
22
+
23
+ ```typescript
24
+ import {
25
+ DomainsMoveApi,
26
+ Configuration,
27
+ DomainsV1MoveIncomingUpdateRequest
28
+ } from 'hostinger-api-sdk';
29
+
30
+ const configuration = new Configuration();
31
+ const apiInstance = new DomainsMoveApi(configuration);
32
+
33
+ let domain: string; //Domain name (default to undefined)
34
+ let domainsV1MoveIncomingUpdateRequest: DomainsV1MoveIncomingUpdateRequest; //
35
+
36
+ const { status, data } = await apiInstance.acceptIncomingDomainMoveV1(
37
+ domain,
38
+ domainsV1MoveIncomingUpdateRequest
39
+ );
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+ |Name | Type | Description | Notes|
45
+ |------------- | ------------- | ------------- | -------------|
46
+ | **domainsV1MoveIncomingUpdateRequest** | **DomainsV1MoveIncomingUpdateRequest**| | |
47
+ | **domain** | [**string**] | Domain name | defaults to undefined|
48
+
49
+
50
+ ### Return type
51
+
52
+ **CommonSuccessEmptyResource**
53
+
54
+ ### Authorization
55
+
56
+ [apiToken](../README.md#apiToken)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json
61
+ - **Accept**: application/json
62
+
63
+
64
+ ### HTTP response details
65
+ | Status code | Description | Response headers |
66
+ |-------------|-------------|------------------|
67
+ |**200** | Success empty response | - |
68
+ |**422** | Validation error response | - |
69
+ |**401** | Unauthenticated response | - |
70
+ |**500** | Error response | - |
71
+
72
+ [[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)
73
+
74
+ # **cancelOutgoingDomainMoveV1**
75
+ > CommonSuccessEmptyResource cancelOutgoingDomainMoveV1()
76
+
77
+ Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
78
+
79
+ ### Example
80
+
81
+ ```typescript
82
+ import {
83
+ DomainsMoveApi,
84
+ Configuration
85
+ } from 'hostinger-api-sdk';
86
+
87
+ const configuration = new Configuration();
88
+ const apiInstance = new DomainsMoveApi(configuration);
89
+
90
+ let domain: string; //Domain name (default to undefined)
91
+
92
+ const { status, data } = await apiInstance.cancelOutgoingDomainMoveV1(
93
+ domain
94
+ );
95
+ ```
96
+
97
+ ### Parameters
98
+
99
+ |Name | Type | Description | Notes|
100
+ |------------- | ------------- | ------------- | -------------|
101
+ | **domain** | [**string**] | Domain name | defaults to undefined|
102
+
103
+
104
+ ### Return type
105
+
106
+ **CommonSuccessEmptyResource**
107
+
108
+ ### Authorization
109
+
110
+ [apiToken](../README.md#apiToken)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: Not defined
115
+ - **Accept**: application/json
116
+
117
+
118
+ ### HTTP response details
119
+ | Status code | Description | Response headers |
120
+ |-------------|-------------|------------------|
121
+ |**200** | Success empty response | - |
122
+ |**401** | Unauthenticated response | - |
123
+ |**500** | Error response | - |
124
+
125
+ [[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)
126
+
127
+ # **getIncomingDomainMoveListV1**
128
+ > Array<DomainsV1MoveMoveResource> getIncomingDomainMoveListV1()
129
+
130
+ Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
131
+
132
+ ### Example
133
+
134
+ ```typescript
135
+ import {
136
+ DomainsMoveApi,
137
+ Configuration
138
+ } from 'hostinger-api-sdk';
139
+
140
+ const configuration = new Configuration();
141
+ const apiInstance = new DomainsMoveApi(configuration);
142
+
143
+ const { status, data } = await apiInstance.getIncomingDomainMoveListV1();
144
+ ```
145
+
146
+ ### Parameters
147
+ This endpoint does not have any parameters.
148
+
149
+
150
+ ### Return type
151
+
152
+ **Array<DomainsV1MoveMoveResource>**
153
+
154
+ ### Authorization
155
+
156
+ [apiToken](../README.md#apiToken)
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: application/json
162
+
163
+
164
+ ### HTTP response details
165
+ | Status code | Description | Response headers |
166
+ |-------------|-------------|------------------|
167
+ |**200** | Success response | - |
168
+ |**401** | Unauthenticated response | - |
169
+ |**500** | Error response | - |
170
+
171
+ [[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)
172
+
173
+ # **getIncomingDomainMoveV1**
174
+ > DomainsV1MoveMoveResource getIncomingDomainMoveV1()
175
+
176
+ Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
177
+
178
+ ### Example
179
+
180
+ ```typescript
181
+ import {
182
+ DomainsMoveApi,
183
+ Configuration
184
+ } from 'hostinger-api-sdk';
185
+
186
+ const configuration = new Configuration();
187
+ const apiInstance = new DomainsMoveApi(configuration);
188
+
189
+ let domain: string; //Domain name (default to undefined)
190
+ let forceSync: boolean; //Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status. (optional) (default to false)
191
+
192
+ const { status, data } = await apiInstance.getIncomingDomainMoveV1(
193
+ domain,
194
+ forceSync
195
+ );
196
+ ```
197
+
198
+ ### Parameters
199
+
200
+ |Name | Type | Description | Notes|
201
+ |------------- | ------------- | ------------- | -------------|
202
+ | **domain** | [**string**] | Domain name | defaults to undefined|
203
+ | **forceSync** | [**boolean**] | Re-check the move against the registry before responding. Only has an effect while the move is in the &#x60;activating&#x60; status. | (optional) defaults to false|
204
+
205
+
206
+ ### Return type
207
+
208
+ **DomainsV1MoveMoveResource**
209
+
210
+ ### Authorization
211
+
212
+ [apiToken](../README.md#apiToken)
213
+
214
+ ### HTTP request headers
215
+
216
+ - **Content-Type**: Not defined
217
+ - **Accept**: application/json
218
+
219
+
220
+ ### HTTP response details
221
+ | Status code | Description | Response headers |
222
+ |-------------|-------------|------------------|
223
+ |**200** | Success response | - |
224
+ |**401** | Unauthenticated response | - |
225
+ |**500** | Error response | - |
226
+
227
+ [[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)
228
+
229
+ # **getOutgoingDomainMoveListV1**
230
+ > Array<DomainsV1MoveMoveResource> getOutgoingDomainMoveListV1()
231
+
232
+ Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
233
+
234
+ ### Example
235
+
236
+ ```typescript
237
+ import {
238
+ DomainsMoveApi,
239
+ Configuration
240
+ } from 'hostinger-api-sdk';
241
+
242
+ const configuration = new Configuration();
243
+ const apiInstance = new DomainsMoveApi(configuration);
244
+
245
+ const { status, data } = await apiInstance.getOutgoingDomainMoveListV1();
246
+ ```
247
+
248
+ ### Parameters
249
+ This endpoint does not have any parameters.
250
+
251
+
252
+ ### Return type
253
+
254
+ **Array<DomainsV1MoveMoveResource>**
255
+
256
+ ### Authorization
257
+
258
+ [apiToken](../README.md#apiToken)
259
+
260
+ ### HTTP request headers
261
+
262
+ - **Content-Type**: Not defined
263
+ - **Accept**: application/json
264
+
265
+
266
+ ### HTTP response details
267
+ | Status code | Description | Response headers |
268
+ |-------------|-------------|------------------|
269
+ |**200** | Success response | - |
270
+ |**401** | Unauthenticated response | - |
271
+ |**500** | Error response | - |
272
+
273
+ [[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)
274
+
275
+ # **getOutgoingDomainMoveV1**
276
+ > DomainsV1MoveMoveResource getOutgoingDomainMoveV1()
277
+
278
+ Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
279
+
280
+ ### Example
281
+
282
+ ```typescript
283
+ import {
284
+ DomainsMoveApi,
285
+ Configuration
286
+ } from 'hostinger-api-sdk';
287
+
288
+ const configuration = new Configuration();
289
+ const apiInstance = new DomainsMoveApi(configuration);
290
+
291
+ let domain: string; //Domain name (default to undefined)
292
+
293
+ const { status, data } = await apiInstance.getOutgoingDomainMoveV1(
294
+ domain
295
+ );
296
+ ```
297
+
298
+ ### Parameters
299
+
300
+ |Name | Type | Description | Notes|
301
+ |------------- | ------------- | ------------- | -------------|
302
+ | **domain** | [**string**] | Domain name | defaults to undefined|
303
+
304
+
305
+ ### Return type
306
+
307
+ **DomainsV1MoveMoveResource**
308
+
309
+ ### Authorization
310
+
311
+ [apiToken](../README.md#apiToken)
312
+
313
+ ### HTTP request headers
314
+
315
+ - **Content-Type**: Not defined
316
+ - **Accept**: application/json
317
+
318
+
319
+ ### HTTP response details
320
+ | Status code | Description | Response headers |
321
+ |-------------|-------------|------------------|
322
+ |**200** | Success response | - |
323
+ |**401** | Unauthenticated response | - |
324
+ |**500** | Error response | - |
325
+
326
+ [[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)
327
+
328
+ # **rejectIncomingDomainMoveV1**
329
+ > CommonSuccessEmptyResource rejectIncomingDomainMoveV1()
330
+
331
+ Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
332
+
333
+ ### Example
334
+
335
+ ```typescript
336
+ import {
337
+ DomainsMoveApi,
338
+ Configuration
339
+ } from 'hostinger-api-sdk';
340
+
341
+ const configuration = new Configuration();
342
+ const apiInstance = new DomainsMoveApi(configuration);
343
+
344
+ let domain: string; //Domain name (default to undefined)
345
+
346
+ const { status, data } = await apiInstance.rejectIncomingDomainMoveV1(
347
+ domain
348
+ );
349
+ ```
350
+
351
+ ### Parameters
352
+
353
+ |Name | Type | Description | Notes|
354
+ |------------- | ------------- | ------------- | -------------|
355
+ | **domain** | [**string**] | Domain name | defaults to undefined|
356
+
357
+
358
+ ### Return type
359
+
360
+ **CommonSuccessEmptyResource**
361
+
362
+ ### Authorization
363
+
364
+ [apiToken](../README.md#apiToken)
365
+
366
+ ### HTTP request headers
367
+
368
+ - **Content-Type**: Not defined
369
+ - **Accept**: application/json
370
+
371
+
372
+ ### HTTP response details
373
+ | Status code | Description | Response headers |
374
+ |-------------|-------------|------------------|
375
+ |**200** | Success empty response | - |
376
+ |**401** | Unauthenticated response | - |
377
+ |**500** | Error response | - |
378
+
379
+ [[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)
380
+
381
+ # **startOutgoingDomainMoveV1**
382
+ > CommonSuccessEmptyResource startOutgoingDomainMoveV1(domainsV1MoveOutgoingStoreRequest)
383
+
384
+ Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
385
+
386
+ ### Example
387
+
388
+ ```typescript
389
+ import {
390
+ DomainsMoveApi,
391
+ Configuration,
392
+ DomainsV1MoveOutgoingStoreRequest
393
+ } from 'hostinger-api-sdk';
394
+
395
+ const configuration = new Configuration();
396
+ const apiInstance = new DomainsMoveApi(configuration);
397
+
398
+ let domain: string; //Domain name (default to undefined)
399
+ let domainsV1MoveOutgoingStoreRequest: DomainsV1MoveOutgoingStoreRequest; //
400
+
401
+ const { status, data } = await apiInstance.startOutgoingDomainMoveV1(
402
+ domain,
403
+ domainsV1MoveOutgoingStoreRequest
404
+ );
405
+ ```
406
+
407
+ ### Parameters
408
+
409
+ |Name | Type | Description | Notes|
410
+ |------------- | ------------- | ------------- | -------------|
411
+ | **domainsV1MoveOutgoingStoreRequest** | **DomainsV1MoveOutgoingStoreRequest**| | |
412
+ | **domain** | [**string**] | Domain name | defaults to undefined|
413
+
414
+
415
+ ### Return type
416
+
417
+ **CommonSuccessEmptyResource**
418
+
419
+ ### Authorization
420
+
421
+ [apiToken](../README.md#apiToken)
422
+
423
+ ### HTTP request headers
424
+
425
+ - **Content-Type**: application/json
426
+ - **Accept**: application/json
427
+
428
+
429
+ ### HTTP response details
430
+ | Status code | Description | Response headers |
431
+ |-------------|-------------|------------------|
432
+ |**200** | Success empty response | - |
433
+ |**422** | Validation error response | - |
434
+ |**401** | Unauthenticated response | - |
435
+ |**500** | Error response | - |
436
+
437
+ [[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)
438
+
@@ -4,6 +4,7 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**claimFreeDomainV1**](#claimfreedomainv1) | **POST** /api/domains/v1/portfolio/claim | Claim free domain|
7
8
  |[**disableDomainLockV1**](#disabledomainlockv1) | **DELETE** /api/domains/v1/portfolio/{domain}/domain-lock | Disable domain lock|
8
9
  |[**disablePrivacyProtectionV1**](#disableprivacyprotectionv1) | **DELETE** /api/domains/v1/portfolio/{domain}/privacy-protection | Disable privacy protection|
9
10
  |[**enableDomainLockV1**](#enabledomainlockv1) | **PUT** /api/domains/v1/portfolio/{domain}/domain-lock | Enable domain lock|
@@ -15,6 +16,61 @@ All URIs are relative to *https://developers.hostinger.com*
15
16
  |[**purchaseNewDomainV1**](#purchasenewdomainv1) | **POST** /api/domains/v1/portfolio | Purchase new domain|
16
17
  |[**updateDomainNameserversV1**](#updatedomainnameserversv1) | **PUT** /api/domains/v1/portfolio/{domain}/nameservers | Update domain nameservers|
17
18
 
19
+ # **claimFreeDomainV1**
20
+ > DomainsV1PortfolioClaimResource claimFreeDomainV1(domainsV1PortfolioClaimRequest)
21
+
22
+ Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
23
+
24
+ ### Example
25
+
26
+ ```typescript
27
+ import {
28
+ DomainsPortfolioApi,
29
+ Configuration,
30
+ DomainsV1PortfolioClaimRequest
31
+ } from 'hostinger-api-sdk';
32
+
33
+ const configuration = new Configuration();
34
+ const apiInstance = new DomainsPortfolioApi(configuration);
35
+
36
+ let domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest; //
37
+
38
+ const { status, data } = await apiInstance.claimFreeDomainV1(
39
+ domainsV1PortfolioClaimRequest
40
+ );
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ |Name | Type | Description | Notes|
46
+ |------------- | ------------- | ------------- | -------------|
47
+ | **domainsV1PortfolioClaimRequest** | **DomainsV1PortfolioClaimRequest**| | |
48
+
49
+
50
+ ### Return type
51
+
52
+ **DomainsV1PortfolioClaimResource**
53
+
54
+ ### Authorization
55
+
56
+ [apiToken](../README.md#apiToken)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json
61
+ - **Accept**: application/json
62
+
63
+
64
+ ### HTTP response details
65
+ | Status code | Description | Response headers |
66
+ |-------------|-------------|------------------|
67
+ |**200** | Success response | - |
68
+ |**422** | Validation error response | - |
69
+ |**401** | Unauthenticated response | - |
70
+ |**500** | Error response | - |
71
+
72
+ [[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)
73
+
18
74
  # **disableDomainLockV1**
19
75
  > CommonSuccessEmptyResource disableDomainLockV1()
20
76
 
@@ -4,9 +4,65 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**claimFreeDomainTransferV1**](#claimfreedomaintransferv1) | **POST** /api/domains/v1/transfers/claim | Claim free domain transfer|
7
8
  |[**getTransferListV1**](#gettransferlistv1) | **GET** /api/domains/v1/transfers | Get transfer list|
8
9
  |[**getTransferV1**](#gettransferv1) | **GET** /api/domains/v1/transfers/{domain} | Get transfer|
9
10
 
11
+ # **claimFreeDomainTransferV1**
12
+ > DomainsV1TransferTransferResource claimFreeDomainTransferV1(domainsV1TransferClaimRequest)
13
+
14
+ Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ DomainsTransferApi,
21
+ Configuration,
22
+ DomainsV1TransferClaimRequest
23
+ } from 'hostinger-api-sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new DomainsTransferApi(configuration);
27
+
28
+ let domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest; //
29
+
30
+ const { status, data } = await apiInstance.claimFreeDomainTransferV1(
31
+ domainsV1TransferClaimRequest
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **domainsV1TransferClaimRequest** | **DomainsV1TransferClaimRequest**| | |
40
+
41
+
42
+ ### Return type
43
+
44
+ **DomainsV1TransferTransferResource**
45
+
46
+ ### Authorization
47
+
48
+ [apiToken](../README.md#apiToken)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: application/json
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Success response | - |
60
+ |**422** | Validation error response | - |
61
+ |**401** | Unauthenticated response | - |
62
+ |**500** | Error response | - |
63
+
64
+ [[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)
65
+
10
66
  # **getTransferListV1**
11
67
  > Array<DomainsV1TransferTransferResource> getTransferListV1()
12
68