@zippendo/sdk 1.2.3 → 1.2.5

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 (134) hide show
  1. package/dist/apis/OrderChannelsApi.d.ts +195 -0
  2. package/dist/apis/OrderChannelsApi.js +496 -0
  3. package/dist/apis/index.d.ts +1 -0
  4. package/dist/apis/index.js +1 -0
  5. package/dist/esm/apis/OrderChannelsApi.d.ts +195 -0
  6. package/dist/esm/apis/OrderChannelsApi.js +492 -0
  7. package/dist/esm/apis/index.d.ts +1 -0
  8. package/dist/esm/apis/index.js +1 -0
  9. package/dist/esm/models/BatchSendShipments200ResponseResultsInner.d.ts +1 -0
  10. package/dist/esm/models/BatchSendShipments200ResponseResultsInner.js +1 -0
  11. package/dist/esm/models/CreateOrderChannelRequest.d.ts +65 -0
  12. package/dist/esm/models/CreateOrderChannelRequest.js +61 -0
  13. package/dist/esm/models/CreateOrderChannelRequestSettings.d.ts +105 -0
  14. package/dist/esm/models/CreateOrderChannelRequestSettings.js +66 -0
  15. package/dist/esm/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.d.ts +52 -0
  16. package/dist/esm/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.js +56 -0
  17. package/dist/esm/models/CreateOrderChannelWebhookSecret201Response.d.ts +44 -0
  18. package/dist/esm/models/CreateOrderChannelWebhookSecret201Response.js +51 -0
  19. package/dist/esm/models/CreateOrderRequest.d.ts +12 -0
  20. package/dist/esm/models/CreateOrderRequest.js +4 -0
  21. package/dist/esm/models/GetOrderChannelWebhookStatus200Response.d.ts +45 -0
  22. package/dist/esm/models/GetOrderChannelWebhookStatus200Response.js +52 -0
  23. package/dist/esm/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.d.ts +62 -0
  24. package/dist/esm/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.js +59 -0
  25. package/dist/esm/models/ListApiTokens401Response.d.ts +1 -0
  26. package/dist/esm/models/ListApiTokens401Response.js +1 -0
  27. package/dist/esm/models/ListAvailableCarriers200ResponseInner.d.ts +12 -0
  28. package/dist/esm/models/ListAvailableCarriers200ResponseInner.js +4 -0
  29. package/dist/esm/models/ListCarriers200ResponseDataInner.d.ts +12 -0
  30. package/dist/esm/models/ListCarriers200ResponseDataInner.js +4 -0
  31. package/dist/esm/models/ListOrderChannels200Response.d.ts +57 -0
  32. package/dist/esm/models/ListOrderChannels200Response.js +60 -0
  33. package/dist/esm/models/ListOrderChannels200ResponseDataInner.d.ts +121 -0
  34. package/dist/esm/models/ListOrderChannels200ResponseDataInner.js +97 -0
  35. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettings.d.ts +129 -0
  36. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettings.js +86 -0
  37. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.d.ts +52 -0
  38. package/dist/esm/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.js +56 -0
  39. package/dist/esm/models/ListOrders200ResponseDataInnerOrderChannel.d.ts +1 -0
  40. package/dist/esm/models/ListOrders200ResponseDataInnerOrderChannel.js +2 -1
  41. package/dist/esm/models/RevokeOrderChannelWebhookSecret200Response.d.ts +32 -0
  42. package/dist/esm/models/RevokeOrderChannelWebhookSecret200Response.js +43 -0
  43. package/dist/esm/models/SendShipment422Response.d.ts +1 -0
  44. package/dist/esm/models/SendShipment422Response.js +1 -0
  45. package/dist/esm/models/UpdateOrderChannelRequest.d.ts +65 -0
  46. package/dist/esm/models/UpdateOrderChannelRequest.js +52 -0
  47. package/dist/esm/models/UpdateOrderChannelRequestSettings.d.ts +105 -0
  48. package/dist/esm/models/UpdateOrderChannelRequestSettings.js +66 -0
  49. package/dist/esm/models/index.d.ts +13 -0
  50. package/dist/esm/models/index.js +13 -0
  51. package/dist/models/BatchSendShipments200ResponseResultsInner.d.ts +1 -0
  52. package/dist/models/BatchSendShipments200ResponseResultsInner.js +1 -0
  53. package/dist/models/CreateOrderChannelRequest.d.ts +65 -0
  54. package/dist/models/CreateOrderChannelRequest.js +69 -0
  55. package/dist/models/CreateOrderChannelRequestSettings.d.ts +105 -0
  56. package/dist/models/CreateOrderChannelRequestSettings.js +73 -0
  57. package/dist/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.d.ts +52 -0
  58. package/dist/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.js +64 -0
  59. package/dist/models/CreateOrderChannelWebhookSecret201Response.d.ts +44 -0
  60. package/dist/models/CreateOrderChannelWebhookSecret201Response.js +58 -0
  61. package/dist/models/CreateOrderRequest.d.ts +12 -0
  62. package/dist/models/CreateOrderRequest.js +4 -0
  63. package/dist/models/GetOrderChannelWebhookStatus200Response.d.ts +45 -0
  64. package/dist/models/GetOrderChannelWebhookStatus200Response.js +59 -0
  65. package/dist/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.d.ts +62 -0
  66. package/dist/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.js +66 -0
  67. package/dist/models/ListApiTokens401Response.d.ts +1 -0
  68. package/dist/models/ListApiTokens401Response.js +1 -0
  69. package/dist/models/ListAvailableCarriers200ResponseInner.d.ts +12 -0
  70. package/dist/models/ListAvailableCarriers200ResponseInner.js +4 -0
  71. package/dist/models/ListCarriers200ResponseDataInner.d.ts +12 -0
  72. package/dist/models/ListCarriers200ResponseDataInner.js +4 -0
  73. package/dist/models/ListOrderChannels200Response.d.ts +57 -0
  74. package/dist/models/ListOrderChannels200Response.js +67 -0
  75. package/dist/models/ListOrderChannels200ResponseDataInner.d.ts +121 -0
  76. package/dist/models/ListOrderChannels200ResponseDataInner.js +105 -0
  77. package/dist/models/ListOrderChannels200ResponseDataInnerSettings.d.ts +129 -0
  78. package/dist/models/ListOrderChannels200ResponseDataInnerSettings.js +93 -0
  79. package/dist/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.d.ts +52 -0
  80. package/dist/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.js +64 -0
  81. package/dist/models/ListOrders200ResponseDataInnerOrderChannel.d.ts +1 -0
  82. package/dist/models/ListOrders200ResponseDataInnerOrderChannel.js +2 -1
  83. package/dist/models/RevokeOrderChannelWebhookSecret200Response.d.ts +32 -0
  84. package/dist/models/RevokeOrderChannelWebhookSecret200Response.js +50 -0
  85. package/dist/models/SendShipment422Response.d.ts +1 -0
  86. package/dist/models/SendShipment422Response.js +1 -0
  87. package/dist/models/UpdateOrderChannelRequest.d.ts +65 -0
  88. package/dist/models/UpdateOrderChannelRequest.js +59 -0
  89. package/dist/models/UpdateOrderChannelRequestSettings.d.ts +105 -0
  90. package/dist/models/UpdateOrderChannelRequestSettings.js +73 -0
  91. package/dist/models/index.d.ts +13 -0
  92. package/dist/models/index.js +13 -0
  93. package/docs/CreateOrderChannelRequest.md +42 -0
  94. package/docs/CreateOrderChannelRequestSettings.md +58 -0
  95. package/docs/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.md +38 -0
  96. package/docs/CreateOrderChannelWebhookSecret201Response.md +38 -0
  97. package/docs/CreateOrderRequest.md +4 -0
  98. package/docs/GetOrderChannelWebhookStatus200Response.md +38 -0
  99. package/docs/GetOrderChannelWebhookStatus200ResponseWebhooksInner.md +44 -0
  100. package/docs/ListAvailableCarriers200ResponseInner.md +4 -0
  101. package/docs/ListCarriers200ResponseDataInner.md +4 -0
  102. package/docs/ListOrderChannels200Response.md +42 -0
  103. package/docs/ListOrderChannels200ResponseDataInner.md +60 -0
  104. package/docs/ListOrderChannels200ResponseDataInnerSettings.md +67 -0
  105. package/docs/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.md +38 -0
  106. package/docs/OrderChannelsApi.md +650 -0
  107. package/docs/OrdersApi.md +1 -0
  108. package/docs/RevokeOrderChannelWebhookSecret200Response.md +34 -0
  109. package/docs/UpdateOrderChannelRequest.md +44 -0
  110. package/docs/UpdateOrderChannelRequestSettings.md +59 -0
  111. package/package.json +1 -1
  112. package/src/apis/OrderChannelsApi.ts +670 -0
  113. package/src/apis/index.ts +1 -0
  114. package/src/models/BatchSendShipments200ResponseResultsInner.ts +1 -0
  115. package/src/models/CreateOrderChannelRequest.ts +118 -0
  116. package/src/models/CreateOrderChannelRequestSettings.ts +169 -0
  117. package/src/models/CreateOrderChannelRequestSettingsShippingMethodMappingsInner.ts +94 -0
  118. package/src/models/CreateOrderChannelWebhookSecret201Response.ts +84 -0
  119. package/src/models/CreateOrderRequest.ts +16 -0
  120. package/src/models/GetOrderChannelWebhookStatus200Response.ts +92 -0
  121. package/src/models/GetOrderChannelWebhookStatus200ResponseWebhooksInner.ts +109 -0
  122. package/src/models/ListApiTokens401Response.ts +1 -0
  123. package/src/models/ListAvailableCarriers200ResponseInner.ts +16 -0
  124. package/src/models/ListCarriers200ResponseDataInner.ts +16 -0
  125. package/src/models/ListOrderChannels200Response.ts +110 -0
  126. package/src/models/ListOrderChannels200ResponseDataInner.ts +200 -0
  127. package/src/models/ListOrderChannels200ResponseDataInnerSettings.ts +207 -0
  128. package/src/models/ListOrderChannels200ResponseDataInnerSettingsShippingMethodMappingsInner.ts +94 -0
  129. package/src/models/ListOrders200ResponseDataInnerOrderChannel.ts +2 -1
  130. package/src/models/RevokeOrderChannelWebhookSecret200Response.ts +66 -0
  131. package/src/models/SendShipment422Response.ts +1 -0
  132. package/src/models/UpdateOrderChannelRequest.ts +113 -0
  133. package/src/models/UpdateOrderChannelRequestSettings.ts +169 -0
  134. package/src/models/index.ts +13 -0
@@ -0,0 +1,650 @@
1
+ # OrderChannelsApi
2
+
3
+ All URIs are relative to *https://api.zippendo.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createOrderChannel**](OrderChannelsApi.md#createorderchanneloperation) | **POST** /orgs/{orgId}/order-channels | Create order channel |
8
+ | [**createOrderChannelWebhookSecret**](OrderChannelsApi.md#createorderchannelwebhooksecret) | **POST** /orgs/{orgId}/order-channels/{channelId}/webhook-secret | Create or rotate webhook signing secret |
9
+ | [**deleteOrderChannel**](OrderChannelsApi.md#deleteorderchannel) | **DELETE** /orgs/{orgId}/order-channels/{channelId} | Delete order channel |
10
+ | [**getOrderChannel**](OrderChannelsApi.md#getorderchannel) | **GET** /orgs/{orgId}/order-channels/{channelId} | Get order channel |
11
+ | [**getOrderChannelWebhookStatus**](OrderChannelsApi.md#getorderchannelwebhookstatus) | **GET** /orgs/{orgId}/order-channels/{channelId}/webhooks | Get channel webhook status |
12
+ | [**listOrderChannels**](OrderChannelsApi.md#listorderchannels) | **GET** /orgs/{orgId}/order-channels | List order channels |
13
+ | [**revokeOrderChannelWebhookSecret**](OrderChannelsApi.md#revokeorderchannelwebhooksecret) | **DELETE** /orgs/{orgId}/order-channels/{channelId}/webhook-secret | Revoke webhook signing secret |
14
+ | [**updateOrderChannel**](OrderChannelsApi.md#updateorderchanneloperation) | **PATCH** /orgs/{orgId}/order-channels/{channelId} | Update order channel |
15
+
16
+
17
+
18
+ ## createOrderChannel
19
+
20
+ > ListOrderChannels200ResponseDataInner createOrderChannel(orgId, createOrderChannelRequest)
21
+
22
+ Create order channel
23
+
24
+ Creates a new order channel for an organization.
25
+
26
+ ### Example
27
+
28
+ ```ts
29
+ import {
30
+ Configuration,
31
+ OrderChannelsApi,
32
+ } from '@zippendo/sdk';
33
+ import type { CreateOrderChannelOperationRequest } from '@zippendo/sdk';
34
+
35
+ async function example() {
36
+ console.log("🚀 Testing @zippendo/sdk SDK...");
37
+ const config = new Configuration({
38
+ // Configure HTTP bearer authorization: bearerAuth
39
+ accessToken: "YOUR BEARER TOKEN",
40
+ });
41
+ const api = new OrderChannelsApi(config);
42
+
43
+ const body = {
44
+ // string | Organization ID
45
+ orgId: org_8f3kd92ld0,
46
+ // CreateOrderChannelRequest
47
+ createOrderChannelRequest: ...,
48
+ } satisfies CreateOrderChannelOperationRequest;
49
+
50
+ try {
51
+ const data = await api.createOrderChannel(body);
52
+ console.log(data);
53
+ } catch (error) {
54
+ console.error(error);
55
+ }
56
+ }
57
+
58
+ // Run the test
59
+ example().catch(console.error);
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+
65
+ | Name | Type | Description | Notes |
66
+ |------------- | ------------- | ------------- | -------------|
67
+ | **orgId** | `string` | Organization ID | [Defaults to `undefined`] |
68
+ | **createOrderChannelRequest** | [CreateOrderChannelRequest](CreateOrderChannelRequest.md) | | |
69
+
70
+ ### Return type
71
+
72
+ [**ListOrderChannels200ResponseDataInner**](ListOrderChannels200ResponseDataInner.md)
73
+
74
+ ### Authorization
75
+
76
+ [bearerAuth](../README.md#bearerAuth)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: `application/json`
81
+ - **Accept**: `application/json`
82
+
83
+
84
+ ### HTTP response details
85
+ | Status code | Description | Response headers |
86
+ |-------------|-------------|------------------|
87
+ | **201** | Default Response | - |
88
+ | **400** | Default Response | - |
89
+ | **403** | Default Response | - |
90
+
91
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
92
+
93
+
94
+ ## createOrderChannelWebhookSecret
95
+
96
+ > CreateOrderChannelWebhookSecret201Response createOrderChannelWebhookSecret(orgId, channelId)
97
+
98
+ Create or rotate webhook signing secret
99
+
100
+ Generates (or rotates) the custom channel\'s webhook signing secret used to authenticate order pushes to the ingest URL. The secret is returned only once. Rotating invalidates the previous secret immediately.
101
+
102
+ ### Example
103
+
104
+ ```ts
105
+ import {
106
+ Configuration,
107
+ OrderChannelsApi,
108
+ } from '@zippendo/sdk';
109
+ import type { CreateOrderChannelWebhookSecretRequest } from '@zippendo/sdk';
110
+
111
+ async function example() {
112
+ console.log("🚀 Testing @zippendo/sdk SDK...");
113
+ const config = new Configuration({
114
+ // Configure HTTP bearer authorization: bearerAuth
115
+ accessToken: "YOUR BEARER TOKEN",
116
+ });
117
+ const api = new OrderChannelsApi(config);
118
+
119
+ const body = {
120
+ // string | Organization ID.
121
+ orgId: clz9k2f0a0000abcd0000zzzz,
122
+ // string | Order channel ID.
123
+ channelId: clz9k2f0a0001abcd1234efgh,
124
+ } satisfies CreateOrderChannelWebhookSecretRequest;
125
+
126
+ try {
127
+ const data = await api.createOrderChannelWebhookSecret(body);
128
+ console.log(data);
129
+ } catch (error) {
130
+ console.error(error);
131
+ }
132
+ }
133
+
134
+ // Run the test
135
+ example().catch(console.error);
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+
141
+ | Name | Type | Description | Notes |
142
+ |------------- | ------------- | ------------- | -------------|
143
+ | **orgId** | `string` | Organization ID. | [Defaults to `undefined`] |
144
+ | **channelId** | `string` | Order channel ID. | [Defaults to `undefined`] |
145
+
146
+ ### Return type
147
+
148
+ [**CreateOrderChannelWebhookSecret201Response**](CreateOrderChannelWebhookSecret201Response.md)
149
+
150
+ ### Authorization
151
+
152
+ [bearerAuth](../README.md#bearerAuth)
153
+
154
+ ### HTTP request headers
155
+
156
+ - **Content-Type**: Not defined
157
+ - **Accept**: `application/json`
158
+
159
+
160
+ ### HTTP response details
161
+ | Status code | Description | Response headers |
162
+ |-------------|-------------|------------------|
163
+ | **201** | Default Response | - |
164
+ | **400** | Default Response | - |
165
+ | **403** | Default Response | - |
166
+ | **404** | Default Response | - |
167
+
168
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
169
+
170
+
171
+ ## deleteOrderChannel
172
+
173
+ > RevokeApiToken200Response deleteOrderChannel(orgId, channelId)
174
+
175
+ Delete order channel
176
+
177
+ Deletes an order channel and cascades deletion of its orders.
178
+
179
+ ### Example
180
+
181
+ ```ts
182
+ import {
183
+ Configuration,
184
+ OrderChannelsApi,
185
+ } from '@zippendo/sdk';
186
+ import type { DeleteOrderChannelRequest } from '@zippendo/sdk';
187
+
188
+ async function example() {
189
+ console.log("🚀 Testing @zippendo/sdk SDK...");
190
+ const config = new Configuration({
191
+ // Configure HTTP bearer authorization: bearerAuth
192
+ accessToken: "YOUR BEARER TOKEN",
193
+ });
194
+ const api = new OrderChannelsApi(config);
195
+
196
+ const body = {
197
+ // string | Organization ID.
198
+ orgId: clz9k2f0a0000abcd0000zzzz,
199
+ // string | Order channel ID.
200
+ channelId: clz9k2f0a0001abcd1234efgh,
201
+ } satisfies DeleteOrderChannelRequest;
202
+
203
+ try {
204
+ const data = await api.deleteOrderChannel(body);
205
+ console.log(data);
206
+ } catch (error) {
207
+ console.error(error);
208
+ }
209
+ }
210
+
211
+ // Run the test
212
+ example().catch(console.error);
213
+ ```
214
+
215
+ ### Parameters
216
+
217
+
218
+ | Name | Type | Description | Notes |
219
+ |------------- | ------------- | ------------- | -------------|
220
+ | **orgId** | `string` | Organization ID. | [Defaults to `undefined`] |
221
+ | **channelId** | `string` | Order channel ID. | [Defaults to `undefined`] |
222
+
223
+ ### Return type
224
+
225
+ [**RevokeApiToken200Response**](RevokeApiToken200Response.md)
226
+
227
+ ### Authorization
228
+
229
+ [bearerAuth](../README.md#bearerAuth)
230
+
231
+ ### HTTP request headers
232
+
233
+ - **Content-Type**: Not defined
234
+ - **Accept**: `application/json`
235
+
236
+
237
+ ### HTTP response details
238
+ | Status code | Description | Response headers |
239
+ |-------------|-------------|------------------|
240
+ | **200** | Default Response | - |
241
+ | **400** | Default Response | - |
242
+ | **403** | Default Response | - |
243
+ | **404** | Default Response | - |
244
+
245
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
246
+
247
+
248
+ ## getOrderChannel
249
+
250
+ > ListOrderChannels200ResponseDataInner getOrderChannel(orgId, channelId)
251
+
252
+ Get order channel
253
+
254
+ Returns a single order channel by ID, including its linked shipping rules.
255
+
256
+ ### Example
257
+
258
+ ```ts
259
+ import {
260
+ Configuration,
261
+ OrderChannelsApi,
262
+ } from '@zippendo/sdk';
263
+ import type { GetOrderChannelRequest } from '@zippendo/sdk';
264
+
265
+ async function example() {
266
+ console.log("🚀 Testing @zippendo/sdk SDK...");
267
+ const config = new Configuration({
268
+ // Configure HTTP bearer authorization: bearerAuth
269
+ accessToken: "YOUR BEARER TOKEN",
270
+ });
271
+ const api = new OrderChannelsApi(config);
272
+
273
+ const body = {
274
+ // string | Organization ID.
275
+ orgId: clz9k2f0a0000abcd0000zzzz,
276
+ // string | Order channel ID.
277
+ channelId: clz9k2f0a0001abcd1234efgh,
278
+ } satisfies GetOrderChannelRequest;
279
+
280
+ try {
281
+ const data = await api.getOrderChannel(body);
282
+ console.log(data);
283
+ } catch (error) {
284
+ console.error(error);
285
+ }
286
+ }
287
+
288
+ // Run the test
289
+ example().catch(console.error);
290
+ ```
291
+
292
+ ### Parameters
293
+
294
+
295
+ | Name | Type | Description | Notes |
296
+ |------------- | ------------- | ------------- | -------------|
297
+ | **orgId** | `string` | Organization ID. | [Defaults to `undefined`] |
298
+ | **channelId** | `string` | Order channel ID. | [Defaults to `undefined`] |
299
+
300
+ ### Return type
301
+
302
+ [**ListOrderChannels200ResponseDataInner**](ListOrderChannels200ResponseDataInner.md)
303
+
304
+ ### Authorization
305
+
306
+ [bearerAuth](../README.md#bearerAuth)
307
+
308
+ ### HTTP request headers
309
+
310
+ - **Content-Type**: Not defined
311
+ - **Accept**: `application/json`
312
+
313
+
314
+ ### HTTP response details
315
+ | Status code | Description | Response headers |
316
+ |-------------|-------------|------------------|
317
+ | **200** | Default Response | - |
318
+ | **403** | Default Response | - |
319
+ | **404** | Default Response | - |
320
+
321
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
322
+
323
+
324
+ ## getOrderChannelWebhookStatus
325
+
326
+ > GetOrderChannelWebhookStatus200Response getOrderChannelWebhookStatus(orgId, channelId)
327
+
328
+ Get channel webhook status
329
+
330
+ Returns whether webhooks are enabled and lists the webhooks registered with the platform.
331
+
332
+ ### Example
333
+
334
+ ```ts
335
+ import {
336
+ Configuration,
337
+ OrderChannelsApi,
338
+ } from '@zippendo/sdk';
339
+ import type { GetOrderChannelWebhookStatusRequest } from '@zippendo/sdk';
340
+
341
+ async function example() {
342
+ console.log("🚀 Testing @zippendo/sdk SDK...");
343
+ const config = new Configuration({
344
+ // Configure HTTP bearer authorization: bearerAuth
345
+ accessToken: "YOUR BEARER TOKEN",
346
+ });
347
+ const api = new OrderChannelsApi(config);
348
+
349
+ const body = {
350
+ // string | Organization ID.
351
+ orgId: clz9k2f0a0000abcd0000zzzz,
352
+ // string | Order channel ID.
353
+ channelId: clz9k2f0a0001abcd1234efgh,
354
+ } satisfies GetOrderChannelWebhookStatusRequest;
355
+
356
+ try {
357
+ const data = await api.getOrderChannelWebhookStatus(body);
358
+ console.log(data);
359
+ } catch (error) {
360
+ console.error(error);
361
+ }
362
+ }
363
+
364
+ // Run the test
365
+ example().catch(console.error);
366
+ ```
367
+
368
+ ### Parameters
369
+
370
+
371
+ | Name | Type | Description | Notes |
372
+ |------------- | ------------- | ------------- | -------------|
373
+ | **orgId** | `string` | Organization ID. | [Defaults to `undefined`] |
374
+ | **channelId** | `string` | Order channel ID. | [Defaults to `undefined`] |
375
+
376
+ ### Return type
377
+
378
+ [**GetOrderChannelWebhookStatus200Response**](GetOrderChannelWebhookStatus200Response.md)
379
+
380
+ ### Authorization
381
+
382
+ [bearerAuth](../README.md#bearerAuth)
383
+
384
+ ### HTTP request headers
385
+
386
+ - **Content-Type**: Not defined
387
+ - **Accept**: `application/json`
388
+
389
+
390
+ ### HTTP response details
391
+ | Status code | Description | Response headers |
392
+ |-------------|-------------|------------------|
393
+ | **200** | Default Response | - |
394
+ | **400** | Default Response | - |
395
+ | **403** | Default Response | - |
396
+ | **404** | Default Response | - |
397
+
398
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
399
+
400
+
401
+ ## listOrderChannels
402
+
403
+ > ListOrderChannels200Response listOrderChannels(orgId, page, limit, brandId, brandScope, type, enabled, search)
404
+
405
+ List order channels
406
+
407
+ Returns a paginated list of order channels for an organization.
408
+
409
+ ### Example
410
+
411
+ ```ts
412
+ import {
413
+ Configuration,
414
+ OrderChannelsApi,
415
+ } from '@zippendo/sdk';
416
+ import type { ListOrderChannelsRequest } from '@zippendo/sdk';
417
+
418
+ async function example() {
419
+ console.log("🚀 Testing @zippendo/sdk SDK...");
420
+ const config = new Configuration({
421
+ // Configure HTTP bearer authorization: bearerAuth
422
+ accessToken: "YOUR BEARER TOKEN",
423
+ });
424
+ const api = new OrderChannelsApi(config);
425
+
426
+ const body = {
427
+ // string | Organization ID
428
+ orgId: org_8f3kd92ld0,
429
+ // number | Page number (1-based) (optional)
430
+ page: 1,
431
+ // number | Items per page (max 100) (optional)
432
+ limit: 20,
433
+ // string | Filter by brand. Pass a brand ID, or \"none\" for records not assigned to any brand. (optional)
434
+ brandId: brnd_8f3kd92ld0,
435
+ // 'own' | 'shared' | 'both' | How the brand context narrows this list: \"own\" returns only rows assigned to the current brand (requires a brand session, a brand-bound token, or the X-Zippendo-Brand header), \"shared\" returns only unassigned organization-wide rows, \"both\" (default) returns both. The X-Zippendo-Brand-Scope header supplies a default when the parameter is omitted. For strictly brand-owned records (orders, shipments), a brand-scoped request combined with \"shared\" returns no rows, since those records are never visible organization-wide from within a brand context. (optional)
436
+ brandScope: own,
437
+ // 'shopify' | 'woocommerce' | 'manual' | 'custom' | Filter by channel type. (optional)
438
+ type: shopify,
439
+ // string | Filter by enabled state. (optional)
440
+ enabled: true,
441
+ // string | Search by channel name. (optional)
442
+ search: Anna's Shopify Store,
443
+ } satisfies ListOrderChannelsRequest;
444
+
445
+ try {
446
+ const data = await api.listOrderChannels(body);
447
+ console.log(data);
448
+ } catch (error) {
449
+ console.error(error);
450
+ }
451
+ }
452
+
453
+ // Run the test
454
+ example().catch(console.error);
455
+ ```
456
+
457
+ ### Parameters
458
+
459
+
460
+ | Name | Type | Description | Notes |
461
+ |------------- | ------------- | ------------- | -------------|
462
+ | **orgId** | `string` | Organization ID | [Defaults to `undefined`] |
463
+ | **page** | `number` | Page number (1-based) | [Optional] [Defaults to `1`] |
464
+ | **limit** | `number` | Items per page (max 100) | [Optional] [Defaults to `20`] |
465
+ | **brandId** | `string` | Filter by brand. Pass a brand ID, or \"none\" for records not assigned to any brand. | [Optional] [Defaults to `undefined`] |
466
+ | **brandScope** | `own`, `shared`, `both` | How the brand context narrows this list: \"own\" returns only rows assigned to the current brand (requires a brand session, a brand-bound token, or the X-Zippendo-Brand header), \"shared\" returns only unassigned organization-wide rows, \"both\" (default) returns both. The X-Zippendo-Brand-Scope header supplies a default when the parameter is omitted. For strictly brand-owned records (orders, shipments), a brand-scoped request combined with \"shared\" returns no rows, since those records are never visible organization-wide from within a brand context. | [Optional] [Defaults to `undefined`] [Enum: own, shared, both] |
467
+ | **type** | `shopify`, `woocommerce`, `manual`, `custom` | Filter by channel type. | [Optional] [Defaults to `undefined`] [Enum: shopify, woocommerce, manual, custom] |
468
+ | **enabled** | `string` | Filter by enabled state. | [Optional] [Defaults to `undefined`] |
469
+ | **search** | `string` | Search by channel name. | [Optional] [Defaults to `undefined`] |
470
+
471
+ ### Return type
472
+
473
+ [**ListOrderChannels200Response**](ListOrderChannels200Response.md)
474
+
475
+ ### Authorization
476
+
477
+ [bearerAuth](../README.md#bearerAuth)
478
+
479
+ ### HTTP request headers
480
+
481
+ - **Content-Type**: Not defined
482
+ - **Accept**: `application/json`
483
+
484
+
485
+ ### HTTP response details
486
+ | Status code | Description | Response headers |
487
+ |-------------|-------------|------------------|
488
+ | **200** | Default Response | - |
489
+ | **400** | Default Response | - |
490
+ | **403** | Default Response | - |
491
+
492
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
493
+
494
+
495
+ ## revokeOrderChannelWebhookSecret
496
+
497
+ > RevokeOrderChannelWebhookSecret200Response revokeOrderChannelWebhookSecret(orgId, channelId)
498
+
499
+ Revoke webhook signing secret
500
+
501
+ Revokes the custom channel\'s webhook signing secret. All subsequent pushes to the ingest URL are rejected until a new secret is generated.
502
+
503
+ ### Example
504
+
505
+ ```ts
506
+ import {
507
+ Configuration,
508
+ OrderChannelsApi,
509
+ } from '@zippendo/sdk';
510
+ import type { RevokeOrderChannelWebhookSecretRequest } from '@zippendo/sdk';
511
+
512
+ async function example() {
513
+ console.log("🚀 Testing @zippendo/sdk SDK...");
514
+ const config = new Configuration({
515
+ // Configure HTTP bearer authorization: bearerAuth
516
+ accessToken: "YOUR BEARER TOKEN",
517
+ });
518
+ const api = new OrderChannelsApi(config);
519
+
520
+ const body = {
521
+ // string | Organization ID.
522
+ orgId: clz9k2f0a0000abcd0000zzzz,
523
+ // string | Order channel ID.
524
+ channelId: clz9k2f0a0001abcd1234efgh,
525
+ } satisfies RevokeOrderChannelWebhookSecretRequest;
526
+
527
+ try {
528
+ const data = await api.revokeOrderChannelWebhookSecret(body);
529
+ console.log(data);
530
+ } catch (error) {
531
+ console.error(error);
532
+ }
533
+ }
534
+
535
+ // Run the test
536
+ example().catch(console.error);
537
+ ```
538
+
539
+ ### Parameters
540
+
541
+
542
+ | Name | Type | Description | Notes |
543
+ |------------- | ------------- | ------------- | -------------|
544
+ | **orgId** | `string` | Organization ID. | [Defaults to `undefined`] |
545
+ | **channelId** | `string` | Order channel ID. | [Defaults to `undefined`] |
546
+
547
+ ### Return type
548
+
549
+ [**RevokeOrderChannelWebhookSecret200Response**](RevokeOrderChannelWebhookSecret200Response.md)
550
+
551
+ ### Authorization
552
+
553
+ [bearerAuth](../README.md#bearerAuth)
554
+
555
+ ### HTTP request headers
556
+
557
+ - **Content-Type**: Not defined
558
+ - **Accept**: `application/json`
559
+
560
+
561
+ ### HTTP response details
562
+ | Status code | Description | Response headers |
563
+ |-------------|-------------|------------------|
564
+ | **200** | Default Response | - |
565
+ | **400** | Default Response | - |
566
+ | **403** | Default Response | - |
567
+ | **404** | Default Response | - |
568
+
569
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
570
+
571
+
572
+ ## updateOrderChannel
573
+
574
+ > ListOrderChannels200ResponseDataInner updateOrderChannel(orgId, channelId, updateOrderChannelRequest)
575
+
576
+ Update order channel
577
+
578
+ Updates an order channel and its linked shipping rules.
579
+
580
+ ### Example
581
+
582
+ ```ts
583
+ import {
584
+ Configuration,
585
+ OrderChannelsApi,
586
+ } from '@zippendo/sdk';
587
+ import type { UpdateOrderChannelOperationRequest } from '@zippendo/sdk';
588
+
589
+ async function example() {
590
+ console.log("🚀 Testing @zippendo/sdk SDK...");
591
+ const config = new Configuration({
592
+ // Configure HTTP bearer authorization: bearerAuth
593
+ accessToken: "YOUR BEARER TOKEN",
594
+ });
595
+ const api = new OrderChannelsApi(config);
596
+
597
+ const body = {
598
+ // string | Organization ID.
599
+ orgId: clz9k2f0a0000abcd0000zzzz,
600
+ // string | Order channel ID.
601
+ channelId: clz9k2f0a0001abcd1234efgh,
602
+ // UpdateOrderChannelRequest
603
+ updateOrderChannelRequest: ...,
604
+ } satisfies UpdateOrderChannelOperationRequest;
605
+
606
+ try {
607
+ const data = await api.updateOrderChannel(body);
608
+ console.log(data);
609
+ } catch (error) {
610
+ console.error(error);
611
+ }
612
+ }
613
+
614
+ // Run the test
615
+ example().catch(console.error);
616
+ ```
617
+
618
+ ### Parameters
619
+
620
+
621
+ | Name | Type | Description | Notes |
622
+ |------------- | ------------- | ------------- | -------------|
623
+ | **orgId** | `string` | Organization ID. | [Defaults to `undefined`] |
624
+ | **channelId** | `string` | Order channel ID. | [Defaults to `undefined`] |
625
+ | **updateOrderChannelRequest** | [UpdateOrderChannelRequest](UpdateOrderChannelRequest.md) | | |
626
+
627
+ ### Return type
628
+
629
+ [**ListOrderChannels200ResponseDataInner**](ListOrderChannels200ResponseDataInner.md)
630
+
631
+ ### Authorization
632
+
633
+ [bearerAuth](../README.md#bearerAuth)
634
+
635
+ ### HTTP request headers
636
+
637
+ - **Content-Type**: `application/json`
638
+ - **Accept**: `application/json`
639
+
640
+
641
+ ### HTTP response details
642
+ | Status code | Description | Response headers |
643
+ |-------------|-------------|------------------|
644
+ | **200** | Default Response | - |
645
+ | **400** | Default Response | - |
646
+ | **403** | Default Response | - |
647
+ | **404** | Default Response | - |
648
+
649
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
650
+
package/docs/OrdersApi.md CHANGED
@@ -85,6 +85,7 @@ example().catch(console.error);
85
85
  | **400** | Default Response | - |
86
86
  | **403** | Default Response | - |
87
87
  | **404** | Default Response | - |
88
+ | **409** | Default Response | - |
88
89
 
89
90
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
90
91
 
@@ -0,0 +1,34 @@
1
+
2
+ # RevokeOrderChannelWebhookSecret200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `revoked` | boolean
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { RevokeOrderChannelWebhookSecret200Response } from '@zippendo/sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "revoked": true,
19
+ } satisfies RevokeOrderChannelWebhookSecret200Response
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as RevokeOrderChannelWebhookSecret200Response
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+