yellowgrid-api-ts 3.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +189 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +385 -0
- package/api.ts +20310 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/config.json +3 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +14136 -0
- package/dist/api.js +14123 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +86 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +253 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +57 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AccountContactEntity.md +45 -0
- package/docs/AccountContactModel.md +45 -0
- package/docs/AccountContactRequestModel.md +37 -0
- package/docs/AccountRequestModel.md +53 -0
- package/docs/AccountSummaryDTO.md +25 -0
- package/docs/AccountsApi.md +948 -0
- package/docs/AccountsResponseModel.md +27 -0
- package/docs/AddressModel.md +45 -0
- package/docs/AddressRequestModel.md +27 -0
- package/docs/AgentHoursGraphModel.md +27 -0
- package/docs/AgentHoursGraphMonthModel.md +23 -0
- package/docs/ApiLogEntity.md +43 -0
- package/docs/AreaCodeModel.md +23 -0
- package/docs/AttachmentModel.md +29 -0
- package/docs/AttributeSetEnum.md +23 -0
- package/docs/AuthCodeResponseModel.md +25 -0
- package/docs/BatchEntity.md +53 -0
- package/docs/CallBarringModel.md +29 -0
- package/docs/Class3CXApi.md +172 -0
- package/docs/Class3CXInstallationWizardApi.md +1355 -0
- package/docs/Class3CXInstallationsApi.md +651 -0
- package/docs/Class3CXIntegrationsApi.md +344 -0
- package/docs/Class3CXMultiTenantApi.md +404 -0
- package/docs/ClientDetailsModel.md +35 -0
- package/docs/ClientModel.md +27 -0
- package/docs/CompanyContractModel.md +29 -0
- package/docs/ContactInfoModel.md +29 -0
- package/docs/ConversationModel.md +35 -0
- package/docs/CreditAccountEntity.md +61 -0
- package/docs/CustomerInformationModel.md +33 -0
- package/docs/CustomerPriceListEnum.md +23 -0
- package/docs/CustomerSummaryReportDTO.md +31 -0
- package/docs/DdiRangeRequestModel.md +25 -0
- package/docs/DdiRangesRequestModel.md +21 -0
- package/docs/DivertRequestModel.md +23 -0
- package/docs/DivertResponseModel.md +25 -0
- package/docs/EdTechProClientEntity.md +29 -0
- package/docs/EdTechProSchoolModel.md +47 -0
- package/docs/EdTechProSchoolsModel.md +27 -0
- package/docs/EdTechProSetupModel.md +29 -0
- package/docs/FraudManagementModel.md +23 -0
- package/docs/FreshdeskCompanyTicketsModel.md +27 -0
- package/docs/FreshdeskTicketEntity.md +33 -0
- package/docs/FtpAccountsEntity.md +29 -0
- package/docs/GenericFileModel.md +25 -0
- package/docs/GetGetPasswordHash200Response.md +20 -0
- package/docs/GetGetPrice200Response.md +20 -0
- package/docs/GetGetRecording200Response.md +20 -0
- package/docs/HostingChangeResponseModel.md +29 -0
- package/docs/InstanceAutoFailoverEntity.md +29 -0
- package/docs/InstanceDeletionScheduleEntity.md +27 -0
- package/docs/InstanceEntity.md +59 -0
- package/docs/InstanceFailoverEntity.md +41 -0
- package/docs/InstanceMonitoringEntity.md +25 -0
- package/docs/InstanceMonitoringLogEntity.md +31 -0
- package/docs/InstanceScheduledTasksEntity.md +31 -0
- package/docs/InstanceTcxDetailsEntity.md +39 -0
- package/docs/InstanceUserCredentialsEntity.md +29 -0
- package/docs/ItemDTO.md +41 -0
- package/docs/ItemEntity.md +61 -0
- package/docs/MFARequiredModel.md +23 -0
- package/docs/MonthlyUsageModel.md +23 -0
- package/docs/MultiTenantChangeResponseModel.md +27 -0
- package/docs/MyPBXToolsApi.md +65 -0
- package/docs/NavigationModel.md +27 -0
- package/docs/OAuth20Api.md +368 -0
- package/docs/OfflineInstancesEntity.md +29 -0
- package/docs/OrderEntity.md +135 -0
- package/docs/OrderRequestModel.md +45 -0
- package/docs/OrderSummariesModel.md +27 -0
- package/docs/OrderSummaryDTO.md +43 -0
- package/docs/OrderTotalModel.md +33 -0
- package/docs/OrderedItemEntity.md +47 -0
- package/docs/OrdersApi.md +135 -0
- package/docs/PatchSetTcxWizardCnameRequest.md +20 -0
- package/docs/PatchUpdateAccountContactPasswordRequest.md +20 -0
- package/docs/PortalAccountModel.md +67 -0
- package/docs/PortalLoginModel.md +33 -0
- package/docs/PostAddWebhook200Response.md +20 -0
- package/docs/PostGetClientCredentialsRequest.md +20 -0
- package/docs/PriceListItemModel.md +29 -0
- package/docs/PricingApi.md +138 -0
- package/docs/PrizesEntity.md +31 -0
- package/docs/ProductSearchResultsModel.md +21 -0
- package/docs/ProductSerialInfoModel.md +27 -0
- package/docs/ProductSummaryModel.md +31 -0
- package/docs/ProductsApi.md +315 -0
- package/docs/PromoCodesEntity.md +43 -0
- package/docs/PromoItemsEntity.md +35 -0
- package/docs/ProvisioningApi.md +402 -0
- package/docs/ProvisioningEntity.md +29 -0
- package/docs/ProvisioningRequestEntity.md +25 -0
- package/docs/ResourceNotReadyException.md +25 -0
- package/docs/RootAccessModel.md +25 -0
- package/docs/SIPTrunksApi.md +1258 -0
- package/docs/SMSApi.md +66 -0
- package/docs/ScannedItemModel.md +29 -0
- package/docs/ScopeModel.md +23 -0
- package/docs/ShipmentAddressEntity.md +41 -0
- package/docs/ShipmentEntity.md +43 -0
- package/docs/ShipmentItemEntity.md +29 -0
- package/docs/SipTrunkChangeResponseModel.md +29 -0
- package/docs/SipTrunkCreationRequestModel.md +31 -0
- package/docs/SipTrunkEntity.md +43 -0
- package/docs/SipTrunksResponseModel.md +27 -0
- package/docs/SmsAccountEntity.md +33 -0
- package/docs/SmsDataModel.md +21 -0
- package/docs/SmsMessageModel.md +25 -0
- package/docs/SmsNumbersEntity.md +23 -0
- package/docs/SmsPayloadModel.md +25 -0
- package/docs/SmsPhoneNumberModel.md +23 -0
- package/docs/SmsResponseModel.md +29 -0
- package/docs/SmsWhitelistEntity.md +23 -0
- package/docs/StockManagementApi.md +1380 -0
- package/docs/StockOrderCourierEntity.md +27 -0
- package/docs/StockOrderDeductionModel.md +27 -0
- package/docs/StockOrderDeductionRequestModel.md +23 -0
- package/docs/StockOrderDeductionsEntity.md +27 -0
- package/docs/StockOrderEntity.md +63 -0
- package/docs/StockOrderItemEntity.md +33 -0
- package/docs/StockOrderItemModel.md +37 -0
- package/docs/StockOrderItemRequestModel.md +27 -0
- package/docs/StockOrderModel.md +49 -0
- package/docs/StockOrderProductEntity.md +31 -0
- package/docs/StockOrderRequestModel.md +25 -0
- package/docs/StockOrderSupplierEntity.md +37 -0
- package/docs/StockOrderSupplierModel.md +37 -0
- package/docs/StockOrdersModel.md +27 -0
- package/docs/StockProductModel.md +49 -0
- package/docs/StockProductPriceModel.md +23 -0
- package/docs/StockProductSummariesModel.md +27 -0
- package/docs/StockProductSummaryModel.md +33 -0
- package/docs/StockTransactionsEntity.md +35 -0
- package/docs/SupplierEntity.md +37 -0
- package/docs/SupplierItemEntity.md +35 -0
- package/docs/SystemApi.md +80 -0
- package/docs/TcxBackupEntity.md +37 -0
- package/docs/TcxBackupModel.md +55 -0
- package/docs/TcxBillingEntity.md +39 -0
- package/docs/TcxBulkLicenceDetailsModel.md +23 -0
- package/docs/TcxDeadLicenceEntity.md +25 -0
- package/docs/TcxExtsEntity.md +35 -0
- package/docs/TcxHostingPricingEntity.md +35 -0
- package/docs/TcxInstallationDetailsModel.md +45 -0
- package/docs/TcxInstallationModel.md +75 -0
- package/docs/TcxInstallationsModel.md +27 -0
- package/docs/TcxKeySummaryDTO.md +29 -0
- package/docs/TcxKeysEntity.md +31 -0
- package/docs/TcxLicenceDetailsErrorModel.md +27 -0
- package/docs/TcxLicenceDetailsModel.md +41 -0
- package/docs/TcxMacsEntity.md +25 -0
- package/docs/TcxMultiTenantModel.md +47 -0
- package/docs/TcxMultiTenantUserModel.md +25 -0
- package/docs/TcxMultiTenantsModel.md +27 -0
- package/docs/TcxNumbersEntity.md +25 -0
- package/docs/TcxOfficeHoursEntity.md +49 -0
- package/docs/TcxPhoneModel.md +32 -0
- package/docs/TcxPhonesEntity.md +31 -0
- package/docs/TcxSbcEntity.md +51 -0
- package/docs/TcxSetupEntity.md +71 -0
- package/docs/TcxSetupsModel.md +27 -0
- package/docs/TcxSipTrunksEntity.md +45 -0
- package/docs/TcxTemplateXmlEnum.md +23 -0
- package/docs/TcxUsersEntity.md +31 -0
- package/docs/TcxWizardConfigModel.md +23 -0
- package/docs/TcxWizardModel.md +47 -0
- package/docs/TechSupportCompanySummaryDTO.md +29 -0
- package/docs/TelephonySupportTicketModel.md +41 -0
- package/docs/TicketSummaryModel.md +35 -0
- package/docs/TicketTimeDTO.md +36 -0
- package/docs/TicketsApi.md +300 -0
- package/docs/TokenResponseModel.md +25 -0
- package/docs/UpgradeOrderResponseModel.md +23 -0
- package/docs/UpgradeRequestModel.md +27 -0
- package/docs/UserEntity.md +39 -0
- package/docs/WebhooksApi.md +117 -0
- package/docs/XeroLogEntity.md +39 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/openapitools.json +7 -0
- package/package.json +31 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,1380 @@
|
|
|
1
|
+
# StockManagementApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://api.yellowgrid.local*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteDeleteStockOrder**](#deletedeletestockorder) | **DELETE** /stock/orders/{id} | Delete Stock Order|
|
|
8
|
+
|[**deleteDeleteStockOrderDeduction**](#deletedeletestockorderdeduction) | **DELETE** /stock/orders/{order_id}/deductions/{deduction_id} | Delete Stock Order Deduction|
|
|
9
|
+
|[**deleteDeleteStockOrderItem**](#deletedeletestockorderitem) | **DELETE** /stock/orders/{order_id}/items/{item_id} | Delete Stock Order Item|
|
|
10
|
+
|[**deleteGetStockProduct**](#deletegetstockproduct) | **DELETE** /stock/products/{id} | Delete Stock Product|
|
|
11
|
+
|[**getDeleteStockOrder**](#getdeletestockorder) | **GET** /stock/orders/{id} | Get Stock Order|
|
|
12
|
+
|[**getGetProductDetails**](#getgetproductdetails) | **GET** /stock/products/{sku}/details | Get Product Details|
|
|
13
|
+
|[**getGetStockOrderPurchaseOrder**](#getgetstockorderpurchaseorder) | **GET** /stock/orders/{id}/po | Get Stock Order Purchase Order|
|
|
14
|
+
|[**getGetStockOrderSupplierEmail**](#getgetstockordersupplieremail) | **GET** /stock/orders/{id}/supplier/email | Get Stock Product Supplier Email mailto|
|
|
15
|
+
|[**getGetStockOrders**](#getgetstockorders) | **GET** /stock/orders | Get Stock Orders|
|
|
16
|
+
|[**getGetStockProduct**](#getgetstockproduct) | **GET** /stock/products/{id} | Get Stock Product|
|
|
17
|
+
|[**getGetStockProductSuppliers**](#getgetstockproductsuppliers) | **GET** /stock/suppliers | Get Stock Product Suppliers|
|
|
18
|
+
|[**getGetStockProducts**](#getgetstockproducts) | **GET** /stock/products | Get Stock Products|
|
|
19
|
+
|[**getGetStockSupplierProducts**](#getgetstocksupplierproducts) | **GET** /stock/suppliers/{id}/products | Get Stock Supplier\'s Products|
|
|
20
|
+
|[**getUploadStockOrderInvoice**](#getuploadstockorderinvoice) | **GET** /stock/orders/{id}/invoice | Get Stock Order Supplier Invoice|
|
|
21
|
+
|[**patchDeleteStockOrder**](#patchdeletestockorder) | **PATCH** /stock/orders/{id} | Update Stock Order|
|
|
22
|
+
|[**patchDeleteStockOrderDeduction**](#patchdeletestockorderdeduction) | **PATCH** /stock/orders/{order_id}/deductions/{deduction_id} | Update Stock Order Deduction|
|
|
23
|
+
|[**patchDeleteStockOrderItem**](#patchdeletestockorderitem) | **PATCH** /stock/orders/{order_id}/items/{item_id} | Update Stock Order Item|
|
|
24
|
+
|[**postAddStockOrderDeduction**](#postaddstockorderdeduction) | **POST** /stock/orders/{id}/deductions | Add Stock Order Deductions|
|
|
25
|
+
|[**postAddStockOrderItem**](#postaddstockorderitem) | **POST** /stock/orders/{id}/items | Add Stock Order Items|
|
|
26
|
+
|[**postGetStockOrders**](#postgetstockorders) | **POST** /stock/orders | Create New Stock Order|
|
|
27
|
+
|[**postGetStockProducts**](#postgetstockproducts) | **POST** /stock/products | Create Stock Product|
|
|
28
|
+
|[**postUploadStockOrderInvoice**](#postuploadstockorderinvoice) | **POST** /stock/orders/{id}/invoice | Upload Stock Order Supplier Invoice|
|
|
29
|
+
|[**putGetStockProduct**](#putgetstockproduct) | **PUT** /stock/products/{id} | Update Stock Product|
|
|
30
|
+
|[**putReceiveStockOrderItem**](#putreceivestockorderitem) | **PUT** /stock/orders/{order_id}/items/{item_id}/receive | Receive Stock Order Item|
|
|
31
|
+
|
|
32
|
+
# **deleteDeleteStockOrder**
|
|
33
|
+
> deleteDeleteStockOrder()
|
|
34
|
+
|
|
35
|
+
Delete Stock Order
|
|
36
|
+
|
|
37
|
+
### Example
|
|
38
|
+
|
|
39
|
+
```typescript
|
|
40
|
+
import {
|
|
41
|
+
StockManagementApi,
|
|
42
|
+
Configuration
|
|
43
|
+
} from 'yellowgrid-api-ts';
|
|
44
|
+
|
|
45
|
+
const configuration = new Configuration();
|
|
46
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
47
|
+
|
|
48
|
+
let id: number; //Stock Order ID (default to undefined)
|
|
49
|
+
|
|
50
|
+
const { status, data } = await apiInstance.deleteDeleteStockOrder(
|
|
51
|
+
id
|
|
52
|
+
);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Parameters
|
|
56
|
+
|
|
57
|
+
|Name | Type | Description | Notes|
|
|
58
|
+
|------------- | ------------- | ------------- | -------------|
|
|
59
|
+
| **id** | [**number**] | Stock Order ID | defaults to undefined|
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Return type
|
|
63
|
+
|
|
64
|
+
void (empty response body)
|
|
65
|
+
|
|
66
|
+
### Authorization
|
|
67
|
+
|
|
68
|
+
No authorization required
|
|
69
|
+
|
|
70
|
+
### HTTP request headers
|
|
71
|
+
|
|
72
|
+
- **Content-Type**: Not defined
|
|
73
|
+
- **Accept**: Not defined
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### HTTP response details
|
|
77
|
+
| Status code | Description | Response headers |
|
|
78
|
+
|-------------|-------------|------------------|
|
|
79
|
+
|**200** | No Response | - |
|
|
80
|
+
|**400** | Bad Request | - |
|
|
81
|
+
|**401** | Unauthorised | - |
|
|
82
|
+
|**403** | Access Denied | - |
|
|
83
|
+
|
|
84
|
+
[[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)
|
|
85
|
+
|
|
86
|
+
# **deleteDeleteStockOrderDeduction**
|
|
87
|
+
> deleteDeleteStockOrderDeduction()
|
|
88
|
+
|
|
89
|
+
Delete Stock Order Deduction
|
|
90
|
+
|
|
91
|
+
### Example
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
import {
|
|
95
|
+
StockManagementApi,
|
|
96
|
+
Configuration
|
|
97
|
+
} from 'yellowgrid-api-ts';
|
|
98
|
+
|
|
99
|
+
const configuration = new Configuration();
|
|
100
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
101
|
+
|
|
102
|
+
let orderId: number; //Stock Order ID (default to undefined)
|
|
103
|
+
let deductionId: number; //Stock Order Deduction ID (default to undefined)
|
|
104
|
+
|
|
105
|
+
const { status, data } = await apiInstance.deleteDeleteStockOrderDeduction(
|
|
106
|
+
orderId,
|
|
107
|
+
deductionId
|
|
108
|
+
);
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Parameters
|
|
112
|
+
|
|
113
|
+
|Name | Type | Description | Notes|
|
|
114
|
+
|------------- | ------------- | ------------- | -------------|
|
|
115
|
+
| **orderId** | [**number**] | Stock Order ID | defaults to undefined|
|
|
116
|
+
| **deductionId** | [**number**] | Stock Order Deduction ID | defaults to undefined|
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Return type
|
|
120
|
+
|
|
121
|
+
void (empty response body)
|
|
122
|
+
|
|
123
|
+
### Authorization
|
|
124
|
+
|
|
125
|
+
No authorization required
|
|
126
|
+
|
|
127
|
+
### HTTP request headers
|
|
128
|
+
|
|
129
|
+
- **Content-Type**: Not defined
|
|
130
|
+
- **Accept**: Not defined
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
### HTTP response details
|
|
134
|
+
| Status code | Description | Response headers |
|
|
135
|
+
|-------------|-------------|------------------|
|
|
136
|
+
|**200** | No Response | - |
|
|
137
|
+
|**400** | Bad Request | - |
|
|
138
|
+
|**401** | Unauthorised | - |
|
|
139
|
+
|**403** | Access Denied | - |
|
|
140
|
+
|
|
141
|
+
[[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)
|
|
142
|
+
|
|
143
|
+
# **deleteDeleteStockOrderItem**
|
|
144
|
+
> deleteDeleteStockOrderItem()
|
|
145
|
+
|
|
146
|
+
Delete Stock Order Item
|
|
147
|
+
|
|
148
|
+
### Example
|
|
149
|
+
|
|
150
|
+
```typescript
|
|
151
|
+
import {
|
|
152
|
+
StockManagementApi,
|
|
153
|
+
Configuration
|
|
154
|
+
} from 'yellowgrid-api-ts';
|
|
155
|
+
|
|
156
|
+
const configuration = new Configuration();
|
|
157
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
158
|
+
|
|
159
|
+
let orderId: number; //Stock Order ID (default to undefined)
|
|
160
|
+
let itemId: number; //Stock Order Item ID (default to undefined)
|
|
161
|
+
|
|
162
|
+
const { status, data } = await apiInstance.deleteDeleteStockOrderItem(
|
|
163
|
+
orderId,
|
|
164
|
+
itemId
|
|
165
|
+
);
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Parameters
|
|
169
|
+
|
|
170
|
+
|Name | Type | Description | Notes|
|
|
171
|
+
|------------- | ------------- | ------------- | -------------|
|
|
172
|
+
| **orderId** | [**number**] | Stock Order ID | defaults to undefined|
|
|
173
|
+
| **itemId** | [**number**] | Stock Order Item ID | defaults to undefined|
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### Return type
|
|
177
|
+
|
|
178
|
+
void (empty response body)
|
|
179
|
+
|
|
180
|
+
### Authorization
|
|
181
|
+
|
|
182
|
+
No authorization required
|
|
183
|
+
|
|
184
|
+
### HTTP request headers
|
|
185
|
+
|
|
186
|
+
- **Content-Type**: Not defined
|
|
187
|
+
- **Accept**: Not defined
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### HTTP response details
|
|
191
|
+
| Status code | Description | Response headers |
|
|
192
|
+
|-------------|-------------|------------------|
|
|
193
|
+
|**200** | No Response | - |
|
|
194
|
+
|**400** | Bad Request | - |
|
|
195
|
+
|**401** | Unauthorised | - |
|
|
196
|
+
|**403** | Access Denied | - |
|
|
197
|
+
|
|
198
|
+
[[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)
|
|
199
|
+
|
|
200
|
+
# **deleteGetStockProduct**
|
|
201
|
+
> deleteGetStockProduct()
|
|
202
|
+
|
|
203
|
+
Delete Stock Product
|
|
204
|
+
|
|
205
|
+
### Example
|
|
206
|
+
|
|
207
|
+
```typescript
|
|
208
|
+
import {
|
|
209
|
+
StockManagementApi,
|
|
210
|
+
Configuration
|
|
211
|
+
} from 'yellowgrid-api-ts';
|
|
212
|
+
|
|
213
|
+
const configuration = new Configuration();
|
|
214
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
215
|
+
|
|
216
|
+
let id: number; //Stock Product ID (default to undefined)
|
|
217
|
+
|
|
218
|
+
const { status, data } = await apiInstance.deleteGetStockProduct(
|
|
219
|
+
id
|
|
220
|
+
);
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Parameters
|
|
224
|
+
|
|
225
|
+
|Name | Type | Description | Notes|
|
|
226
|
+
|------------- | ------------- | ------------- | -------------|
|
|
227
|
+
| **id** | [**number**] | Stock Product ID | defaults to undefined|
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
### Return type
|
|
231
|
+
|
|
232
|
+
void (empty response body)
|
|
233
|
+
|
|
234
|
+
### Authorization
|
|
235
|
+
|
|
236
|
+
No authorization required
|
|
237
|
+
|
|
238
|
+
### HTTP request headers
|
|
239
|
+
|
|
240
|
+
- **Content-Type**: Not defined
|
|
241
|
+
- **Accept**: Not defined
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
### HTTP response details
|
|
245
|
+
| Status code | Description | Response headers |
|
|
246
|
+
|-------------|-------------|------------------|
|
|
247
|
+
|**200** | No Response | - |
|
|
248
|
+
|**400** | Bad Request | - |
|
|
249
|
+
|**401** | Unauthorised | - |
|
|
250
|
+
|**403** | Access Denied | - |
|
|
251
|
+
|
|
252
|
+
[[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)
|
|
253
|
+
|
|
254
|
+
# **getDeleteStockOrder**
|
|
255
|
+
> StockOrderModel getDeleteStockOrder()
|
|
256
|
+
|
|
257
|
+
Get Stock Order
|
|
258
|
+
|
|
259
|
+
### Example
|
|
260
|
+
|
|
261
|
+
```typescript
|
|
262
|
+
import {
|
|
263
|
+
StockManagementApi,
|
|
264
|
+
Configuration
|
|
265
|
+
} from 'yellowgrid-api-ts';
|
|
266
|
+
|
|
267
|
+
const configuration = new Configuration();
|
|
268
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
269
|
+
|
|
270
|
+
let id: number; //Stock Order ID (default to undefined)
|
|
271
|
+
|
|
272
|
+
const { status, data } = await apiInstance.getDeleteStockOrder(
|
|
273
|
+
id
|
|
274
|
+
);
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Parameters
|
|
278
|
+
|
|
279
|
+
|Name | Type | Description | Notes|
|
|
280
|
+
|------------- | ------------- | ------------- | -------------|
|
|
281
|
+
| **id** | [**number**] | Stock Order ID | defaults to undefined|
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
### Return type
|
|
285
|
+
|
|
286
|
+
**StockOrderModel**
|
|
287
|
+
|
|
288
|
+
### Authorization
|
|
289
|
+
|
|
290
|
+
No authorization required
|
|
291
|
+
|
|
292
|
+
### HTTP request headers
|
|
293
|
+
|
|
294
|
+
- **Content-Type**: Not defined
|
|
295
|
+
- **Accept**: application/json
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
### HTTP response details
|
|
299
|
+
| Status code | Description | Response headers |
|
|
300
|
+
|-------------|-------------|------------------|
|
|
301
|
+
|**200** | Stock Order | - |
|
|
302
|
+
|**400** | Bad Request | - |
|
|
303
|
+
|**401** | Unauthorised | - |
|
|
304
|
+
|**403** | Access Denied | - |
|
|
305
|
+
|
|
306
|
+
[[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)
|
|
307
|
+
|
|
308
|
+
# **getGetProductDetails**
|
|
309
|
+
> StockProductModel getGetProductDetails()
|
|
310
|
+
|
|
311
|
+
Get Product Details
|
|
312
|
+
|
|
313
|
+
### Example
|
|
314
|
+
|
|
315
|
+
```typescript
|
|
316
|
+
import {
|
|
317
|
+
StockManagementApi,
|
|
318
|
+
Configuration
|
|
319
|
+
} from 'yellowgrid-api-ts';
|
|
320
|
+
|
|
321
|
+
const configuration = new Configuration();
|
|
322
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
323
|
+
|
|
324
|
+
let sku: string; //Product SKU (default to undefined)
|
|
325
|
+
|
|
326
|
+
const { status, data } = await apiInstance.getGetProductDetails(
|
|
327
|
+
sku
|
|
328
|
+
);
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
### Parameters
|
|
332
|
+
|
|
333
|
+
|Name | Type | Description | Notes|
|
|
334
|
+
|------------- | ------------- | ------------- | -------------|
|
|
335
|
+
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
### Return type
|
|
339
|
+
|
|
340
|
+
**StockProductModel**
|
|
341
|
+
|
|
342
|
+
### Authorization
|
|
343
|
+
|
|
344
|
+
No authorization required
|
|
345
|
+
|
|
346
|
+
### HTTP request headers
|
|
347
|
+
|
|
348
|
+
- **Content-Type**: Not defined
|
|
349
|
+
- **Accept**: application/json
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
### HTTP response details
|
|
353
|
+
| Status code | Description | Response headers |
|
|
354
|
+
|-------------|-------------|------------------|
|
|
355
|
+
|**200** | Stock Product | - |
|
|
356
|
+
|**400** | Bad Request | - |
|
|
357
|
+
|**401** | Unauthorised | - |
|
|
358
|
+
|**403** | Access Denied | - |
|
|
359
|
+
|
|
360
|
+
[[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)
|
|
361
|
+
|
|
362
|
+
# **getGetStockOrderPurchaseOrder**
|
|
363
|
+
> GenericFileModel getGetStockOrderPurchaseOrder()
|
|
364
|
+
|
|
365
|
+
Get Stock Order Purchase Order
|
|
366
|
+
|
|
367
|
+
### Example
|
|
368
|
+
|
|
369
|
+
```typescript
|
|
370
|
+
import {
|
|
371
|
+
StockManagementApi,
|
|
372
|
+
Configuration
|
|
373
|
+
} from 'yellowgrid-api-ts';
|
|
374
|
+
|
|
375
|
+
const configuration = new Configuration();
|
|
376
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
377
|
+
|
|
378
|
+
let id: number; //Stock Order ID (default to undefined)
|
|
379
|
+
|
|
380
|
+
const { status, data } = await apiInstance.getGetStockOrderPurchaseOrder(
|
|
381
|
+
id
|
|
382
|
+
);
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### Parameters
|
|
386
|
+
|
|
387
|
+
|Name | Type | Description | Notes|
|
|
388
|
+
|------------- | ------------- | ------------- | -------------|
|
|
389
|
+
| **id** | [**number**] | Stock Order ID | defaults to undefined|
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
### Return type
|
|
393
|
+
|
|
394
|
+
**GenericFileModel**
|
|
395
|
+
|
|
396
|
+
### Authorization
|
|
397
|
+
|
|
398
|
+
No authorization required
|
|
399
|
+
|
|
400
|
+
### HTTP request headers
|
|
401
|
+
|
|
402
|
+
- **Content-Type**: Not defined
|
|
403
|
+
- **Accept**: application/json
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
### HTTP response details
|
|
407
|
+
| Status code | Description | Response headers |
|
|
408
|
+
|-------------|-------------|------------------|
|
|
409
|
+
|**200** | Stock Order Invoice | - |
|
|
410
|
+
|**400** | Bad Request | - |
|
|
411
|
+
|**401** | Unauthorised | - |
|
|
412
|
+
|**403** | Access Denied | - |
|
|
413
|
+
|
|
414
|
+
[[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)
|
|
415
|
+
|
|
416
|
+
# **getGetStockOrderSupplierEmail**
|
|
417
|
+
> string getGetStockOrderSupplierEmail()
|
|
418
|
+
|
|
419
|
+
Get Stock Product Supplier Email mailto
|
|
420
|
+
|
|
421
|
+
### Example
|
|
422
|
+
|
|
423
|
+
```typescript
|
|
424
|
+
import {
|
|
425
|
+
StockManagementApi,
|
|
426
|
+
Configuration
|
|
427
|
+
} from 'yellowgrid-api-ts';
|
|
428
|
+
|
|
429
|
+
const configuration = new Configuration();
|
|
430
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
431
|
+
|
|
432
|
+
let id: number; //Stock Order ID (default to undefined)
|
|
433
|
+
|
|
434
|
+
const { status, data } = await apiInstance.getGetStockOrderSupplierEmail(
|
|
435
|
+
id
|
|
436
|
+
);
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
### Parameters
|
|
440
|
+
|
|
441
|
+
|Name | Type | Description | Notes|
|
|
442
|
+
|------------- | ------------- | ------------- | -------------|
|
|
443
|
+
| **id** | [**number**] | Stock Order ID | defaults to undefined|
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
### Return type
|
|
447
|
+
|
|
448
|
+
**string**
|
|
449
|
+
|
|
450
|
+
### Authorization
|
|
451
|
+
|
|
452
|
+
No authorization required
|
|
453
|
+
|
|
454
|
+
### HTTP request headers
|
|
455
|
+
|
|
456
|
+
- **Content-Type**: Not defined
|
|
457
|
+
- **Accept**: application/json
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
### HTTP response details
|
|
461
|
+
| Status code | Description | Response headers |
|
|
462
|
+
|-------------|-------------|------------------|
|
|
463
|
+
|**200** | string | - |
|
|
464
|
+
|**400** | Bad Request | - |
|
|
465
|
+
|**401** | Unauthorised | - |
|
|
466
|
+
|**403** | Access Denied | - |
|
|
467
|
+
|
|
468
|
+
[[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)
|
|
469
|
+
|
|
470
|
+
# **getGetStockOrders**
|
|
471
|
+
> StockOrdersModel getGetStockOrders()
|
|
472
|
+
|
|
473
|
+
Get Stock Orders
|
|
474
|
+
|
|
475
|
+
### Example
|
|
476
|
+
|
|
477
|
+
```typescript
|
|
478
|
+
import {
|
|
479
|
+
StockManagementApi,
|
|
480
|
+
Configuration
|
|
481
|
+
} from 'yellowgrid-api-ts';
|
|
482
|
+
|
|
483
|
+
const configuration = new Configuration();
|
|
484
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
485
|
+
|
|
486
|
+
let pageSize: number; //Number Of Results (optional) (default to 20)
|
|
487
|
+
let page: number; //Page Number (optional) (default to 1)
|
|
488
|
+
let search: string; //Search (optional) (default to undefined)
|
|
489
|
+
let outstanding: boolean; //Outstanding Orders (optional) (default to undefined)
|
|
490
|
+
|
|
491
|
+
const { status, data } = await apiInstance.getGetStockOrders(
|
|
492
|
+
pageSize,
|
|
493
|
+
page,
|
|
494
|
+
search,
|
|
495
|
+
outstanding
|
|
496
|
+
);
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
### Parameters
|
|
500
|
+
|
|
501
|
+
|Name | Type | Description | Notes|
|
|
502
|
+
|------------- | ------------- | ------------- | -------------|
|
|
503
|
+
| **pageSize** | [**number**] | Number Of Results | (optional) defaults to 20|
|
|
504
|
+
| **page** | [**number**] | Page Number | (optional) defaults to 1|
|
|
505
|
+
| **search** | [**string**] | Search | (optional) defaults to undefined|
|
|
506
|
+
| **outstanding** | [**boolean**] | Outstanding Orders | (optional) defaults to undefined|
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
### Return type
|
|
510
|
+
|
|
511
|
+
**StockOrdersModel**
|
|
512
|
+
|
|
513
|
+
### Authorization
|
|
514
|
+
|
|
515
|
+
No authorization required
|
|
516
|
+
|
|
517
|
+
### HTTP request headers
|
|
518
|
+
|
|
519
|
+
- **Content-Type**: Not defined
|
|
520
|
+
- **Accept**: application/json
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
### HTTP response details
|
|
524
|
+
| Status code | Description | Response headers |
|
|
525
|
+
|-------------|-------------|------------------|
|
|
526
|
+
|**200** | Stock Orders | - |
|
|
527
|
+
|**400** | Bad Request | - |
|
|
528
|
+
|**401** | Unauthorised | - |
|
|
529
|
+
|**403** | Access Denied | - |
|
|
530
|
+
|
|
531
|
+
[[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)
|
|
532
|
+
|
|
533
|
+
# **getGetStockProduct**
|
|
534
|
+
> StockProductModel getGetStockProduct()
|
|
535
|
+
|
|
536
|
+
Get Stock Product
|
|
537
|
+
|
|
538
|
+
### Example
|
|
539
|
+
|
|
540
|
+
```typescript
|
|
541
|
+
import {
|
|
542
|
+
StockManagementApi,
|
|
543
|
+
Configuration
|
|
544
|
+
} from 'yellowgrid-api-ts';
|
|
545
|
+
|
|
546
|
+
const configuration = new Configuration();
|
|
547
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
548
|
+
|
|
549
|
+
let id: number; //Stock Product ID (default to undefined)
|
|
550
|
+
|
|
551
|
+
const { status, data } = await apiInstance.getGetStockProduct(
|
|
552
|
+
id
|
|
553
|
+
);
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
### Parameters
|
|
557
|
+
|
|
558
|
+
|Name | Type | Description | Notes|
|
|
559
|
+
|------------- | ------------- | ------------- | -------------|
|
|
560
|
+
| **id** | [**number**] | Stock Product ID | defaults to undefined|
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
### Return type
|
|
564
|
+
|
|
565
|
+
**StockProductModel**
|
|
566
|
+
|
|
567
|
+
### Authorization
|
|
568
|
+
|
|
569
|
+
No authorization required
|
|
570
|
+
|
|
571
|
+
### HTTP request headers
|
|
572
|
+
|
|
573
|
+
- **Content-Type**: Not defined
|
|
574
|
+
- **Accept**: application/json
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
### HTTP response details
|
|
578
|
+
| Status code | Description | Response headers |
|
|
579
|
+
|-------------|-------------|------------------|
|
|
580
|
+
|**200** | Stock Product | - |
|
|
581
|
+
|**400** | Bad Request | - |
|
|
582
|
+
|**401** | Unauthorised | - |
|
|
583
|
+
|**403** | Access Denied | - |
|
|
584
|
+
|
|
585
|
+
[[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)
|
|
586
|
+
|
|
587
|
+
# **getGetStockProductSuppliers**
|
|
588
|
+
> Array<StockOrderSupplierModel> getGetStockProductSuppliers()
|
|
589
|
+
|
|
590
|
+
Get Stock Product Suppliers
|
|
591
|
+
|
|
592
|
+
### Example
|
|
593
|
+
|
|
594
|
+
```typescript
|
|
595
|
+
import {
|
|
596
|
+
StockManagementApi,
|
|
597
|
+
Configuration
|
|
598
|
+
} from 'yellowgrid-api-ts';
|
|
599
|
+
|
|
600
|
+
const configuration = new Configuration();
|
|
601
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
602
|
+
|
|
603
|
+
const { status, data } = await apiInstance.getGetStockProductSuppliers();
|
|
604
|
+
```
|
|
605
|
+
|
|
606
|
+
### Parameters
|
|
607
|
+
This endpoint does not have any parameters.
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
### Return type
|
|
611
|
+
|
|
612
|
+
**Array<StockOrderSupplierModel>**
|
|
613
|
+
|
|
614
|
+
### Authorization
|
|
615
|
+
|
|
616
|
+
No authorization required
|
|
617
|
+
|
|
618
|
+
### HTTP request headers
|
|
619
|
+
|
|
620
|
+
- **Content-Type**: Not defined
|
|
621
|
+
- **Accept**: application/json
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
### HTTP response details
|
|
625
|
+
| Status code | Description | Response headers |
|
|
626
|
+
|-------------|-------------|------------------|
|
|
627
|
+
|**200** | Stock Order Suppliers | - |
|
|
628
|
+
|**400** | Bad Request | - |
|
|
629
|
+
|**401** | Unauthorised | - |
|
|
630
|
+
|**403** | Access Denied | - |
|
|
631
|
+
|
|
632
|
+
[[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)
|
|
633
|
+
|
|
634
|
+
# **getGetStockProducts**
|
|
635
|
+
> StockProductSummariesModel getGetStockProducts()
|
|
636
|
+
|
|
637
|
+
Get Stock Products
|
|
638
|
+
|
|
639
|
+
### Example
|
|
640
|
+
|
|
641
|
+
```typescript
|
|
642
|
+
import {
|
|
643
|
+
StockManagementApi,
|
|
644
|
+
Configuration
|
|
645
|
+
} from 'yellowgrid-api-ts';
|
|
646
|
+
|
|
647
|
+
const configuration = new Configuration();
|
|
648
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
649
|
+
|
|
650
|
+
let pageSize: number; //Number Of Results (optional) (default to 20)
|
|
651
|
+
let page: number; //Page Number (optional) (default to 1)
|
|
652
|
+
let search: string; //Search (optional) (default to undefined)
|
|
653
|
+
|
|
654
|
+
const { status, data } = await apiInstance.getGetStockProducts(
|
|
655
|
+
pageSize,
|
|
656
|
+
page,
|
|
657
|
+
search
|
|
658
|
+
);
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
### Parameters
|
|
662
|
+
|
|
663
|
+
|Name | Type | Description | Notes|
|
|
664
|
+
|------------- | ------------- | ------------- | -------------|
|
|
665
|
+
| **pageSize** | [**number**] | Number Of Results | (optional) defaults to 20|
|
|
666
|
+
| **page** | [**number**] | Page Number | (optional) defaults to 1|
|
|
667
|
+
| **search** | [**string**] | Search | (optional) defaults to undefined|
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
### Return type
|
|
671
|
+
|
|
672
|
+
**StockProductSummariesModel**
|
|
673
|
+
|
|
674
|
+
### Authorization
|
|
675
|
+
|
|
676
|
+
No authorization required
|
|
677
|
+
|
|
678
|
+
### HTTP request headers
|
|
679
|
+
|
|
680
|
+
- **Content-Type**: Not defined
|
|
681
|
+
- **Accept**: application/json
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
### HTTP response details
|
|
685
|
+
| Status code | Description | Response headers |
|
|
686
|
+
|-------------|-------------|------------------|
|
|
687
|
+
|**200** | Stock Product Summaries | - |
|
|
688
|
+
|**400** | Bad Request | - |
|
|
689
|
+
|**401** | Unauthorised | - |
|
|
690
|
+
|**403** | Access Denied | - |
|
|
691
|
+
|
|
692
|
+
[[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)
|
|
693
|
+
|
|
694
|
+
# **getGetStockSupplierProducts**
|
|
695
|
+
> Array<ProductSummaryModel> getGetStockSupplierProducts()
|
|
696
|
+
|
|
697
|
+
Get Stock Supplier\'s Products
|
|
698
|
+
|
|
699
|
+
### Example
|
|
700
|
+
|
|
701
|
+
```typescript
|
|
702
|
+
import {
|
|
703
|
+
StockManagementApi,
|
|
704
|
+
Configuration
|
|
705
|
+
} from 'yellowgrid-api-ts';
|
|
706
|
+
|
|
707
|
+
const configuration = new Configuration();
|
|
708
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
709
|
+
|
|
710
|
+
let id: number; //Supplier ID (default to undefined)
|
|
711
|
+
|
|
712
|
+
const { status, data } = await apiInstance.getGetStockSupplierProducts(
|
|
713
|
+
id
|
|
714
|
+
);
|
|
715
|
+
```
|
|
716
|
+
|
|
717
|
+
### Parameters
|
|
718
|
+
|
|
719
|
+
|Name | Type | Description | Notes|
|
|
720
|
+
|------------- | ------------- | ------------- | -------------|
|
|
721
|
+
| **id** | [**number**] | Supplier ID | defaults to undefined|
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
### Return type
|
|
725
|
+
|
|
726
|
+
**Array<ProductSummaryModel>**
|
|
727
|
+
|
|
728
|
+
### Authorization
|
|
729
|
+
|
|
730
|
+
No authorization required
|
|
731
|
+
|
|
732
|
+
### HTTP request headers
|
|
733
|
+
|
|
734
|
+
- **Content-Type**: Not defined
|
|
735
|
+
- **Accept**: application/json
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
### HTTP response details
|
|
739
|
+
| Status code | Description | Response headers |
|
|
740
|
+
|-------------|-------------|------------------|
|
|
741
|
+
|**200** | Stock Products | - |
|
|
742
|
+
|**400** | Bad Request | - |
|
|
743
|
+
|**401** | Unauthorised | - |
|
|
744
|
+
|**403** | Access Denied | - |
|
|
745
|
+
|
|
746
|
+
[[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)
|
|
747
|
+
|
|
748
|
+
# **getUploadStockOrderInvoice**
|
|
749
|
+
> GenericFileModel getUploadStockOrderInvoice()
|
|
750
|
+
|
|
751
|
+
Get Stock Order Supplier Invoice
|
|
752
|
+
|
|
753
|
+
### Example
|
|
754
|
+
|
|
755
|
+
```typescript
|
|
756
|
+
import {
|
|
757
|
+
StockManagementApi,
|
|
758
|
+
Configuration
|
|
759
|
+
} from 'yellowgrid-api-ts';
|
|
760
|
+
|
|
761
|
+
const configuration = new Configuration();
|
|
762
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
763
|
+
|
|
764
|
+
let id: number; //Stock Order ID (default to undefined)
|
|
765
|
+
|
|
766
|
+
const { status, data } = await apiInstance.getUploadStockOrderInvoice(
|
|
767
|
+
id
|
|
768
|
+
);
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
### Parameters
|
|
772
|
+
|
|
773
|
+
|Name | Type | Description | Notes|
|
|
774
|
+
|------------- | ------------- | ------------- | -------------|
|
|
775
|
+
| **id** | [**number**] | Stock Order ID | defaults to undefined|
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
### Return type
|
|
779
|
+
|
|
780
|
+
**GenericFileModel**
|
|
781
|
+
|
|
782
|
+
### Authorization
|
|
783
|
+
|
|
784
|
+
No authorization required
|
|
785
|
+
|
|
786
|
+
### HTTP request headers
|
|
787
|
+
|
|
788
|
+
- **Content-Type**: Not defined
|
|
789
|
+
- **Accept**: application/json
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
### HTTP response details
|
|
793
|
+
| Status code | Description | Response headers |
|
|
794
|
+
|-------------|-------------|------------------|
|
|
795
|
+
|**200** | Stock Order Invoice | - |
|
|
796
|
+
|**400** | Bad Request | - |
|
|
797
|
+
|**401** | Unauthorised | - |
|
|
798
|
+
|**403** | Access Denied | - |
|
|
799
|
+
|
|
800
|
+
[[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)
|
|
801
|
+
|
|
802
|
+
# **patchDeleteStockOrder**
|
|
803
|
+
> StockOrderModel patchDeleteStockOrder()
|
|
804
|
+
|
|
805
|
+
Update Stock Order
|
|
806
|
+
|
|
807
|
+
### Example
|
|
808
|
+
|
|
809
|
+
```typescript
|
|
810
|
+
import {
|
|
811
|
+
StockManagementApi,
|
|
812
|
+
Configuration,
|
|
813
|
+
StockOrderModel
|
|
814
|
+
} from 'yellowgrid-api-ts';
|
|
815
|
+
|
|
816
|
+
const configuration = new Configuration();
|
|
817
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
818
|
+
|
|
819
|
+
let id: number; //Stock Order ID (default to undefined)
|
|
820
|
+
let stockOrderModel: StockOrderModel; // (optional)
|
|
821
|
+
|
|
822
|
+
const { status, data } = await apiInstance.patchDeleteStockOrder(
|
|
823
|
+
id,
|
|
824
|
+
stockOrderModel
|
|
825
|
+
);
|
|
826
|
+
```
|
|
827
|
+
|
|
828
|
+
### Parameters
|
|
829
|
+
|
|
830
|
+
|Name | Type | Description | Notes|
|
|
831
|
+
|------------- | ------------- | ------------- | -------------|
|
|
832
|
+
| **stockOrderModel** | **StockOrderModel**| | |
|
|
833
|
+
| **id** | [**number**] | Stock Order ID | defaults to undefined|
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
### Return type
|
|
837
|
+
|
|
838
|
+
**StockOrderModel**
|
|
839
|
+
|
|
840
|
+
### Authorization
|
|
841
|
+
|
|
842
|
+
No authorization required
|
|
843
|
+
|
|
844
|
+
### HTTP request headers
|
|
845
|
+
|
|
846
|
+
- **Content-Type**: application/json
|
|
847
|
+
- **Accept**: application/json
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
### HTTP response details
|
|
851
|
+
| Status code | Description | Response headers |
|
|
852
|
+
|-------------|-------------|------------------|
|
|
853
|
+
|**200** | Stock Order | - |
|
|
854
|
+
|**400** | Bad Request | - |
|
|
855
|
+
|**401** | Unauthorised | - |
|
|
856
|
+
|**403** | Access Denied | - |
|
|
857
|
+
|
|
858
|
+
[[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)
|
|
859
|
+
|
|
860
|
+
# **patchDeleteStockOrderDeduction**
|
|
861
|
+
> StockOrderDeductionModel patchDeleteStockOrderDeduction()
|
|
862
|
+
|
|
863
|
+
Update Stock Order Deduction
|
|
864
|
+
|
|
865
|
+
### Example
|
|
866
|
+
|
|
867
|
+
```typescript
|
|
868
|
+
import {
|
|
869
|
+
StockManagementApi,
|
|
870
|
+
Configuration,
|
|
871
|
+
StockOrderDeductionModel
|
|
872
|
+
} from 'yellowgrid-api-ts';
|
|
873
|
+
|
|
874
|
+
const configuration = new Configuration();
|
|
875
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
876
|
+
|
|
877
|
+
let orderId: number; //Stock Order ID (default to undefined)
|
|
878
|
+
let deductionId: number; //Stock Order Deduction ID (default to undefined)
|
|
879
|
+
let stockOrderDeductionModel: StockOrderDeductionModel; // (optional)
|
|
880
|
+
|
|
881
|
+
const { status, data } = await apiInstance.patchDeleteStockOrderDeduction(
|
|
882
|
+
orderId,
|
|
883
|
+
deductionId,
|
|
884
|
+
stockOrderDeductionModel
|
|
885
|
+
);
|
|
886
|
+
```
|
|
887
|
+
|
|
888
|
+
### Parameters
|
|
889
|
+
|
|
890
|
+
|Name | Type | Description | Notes|
|
|
891
|
+
|------------- | ------------- | ------------- | -------------|
|
|
892
|
+
| **stockOrderDeductionModel** | **StockOrderDeductionModel**| | |
|
|
893
|
+
| **orderId** | [**number**] | Stock Order ID | defaults to undefined|
|
|
894
|
+
| **deductionId** | [**number**] | Stock Order Deduction ID | defaults to undefined|
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
### Return type
|
|
898
|
+
|
|
899
|
+
**StockOrderDeductionModel**
|
|
900
|
+
|
|
901
|
+
### Authorization
|
|
902
|
+
|
|
903
|
+
No authorization required
|
|
904
|
+
|
|
905
|
+
### HTTP request headers
|
|
906
|
+
|
|
907
|
+
- **Content-Type**: application/json
|
|
908
|
+
- **Accept**: application/json
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
### HTTP response details
|
|
912
|
+
| Status code | Description | Response headers |
|
|
913
|
+
|-------------|-------------|------------------|
|
|
914
|
+
|**200** | Stock Order Deduction | - |
|
|
915
|
+
|**400** | Bad Request | - |
|
|
916
|
+
|**401** | Unauthorised | - |
|
|
917
|
+
|**403** | Access Denied | - |
|
|
918
|
+
|
|
919
|
+
[[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)
|
|
920
|
+
|
|
921
|
+
# **patchDeleteStockOrderItem**
|
|
922
|
+
> StockOrderItemModel patchDeleteStockOrderItem()
|
|
923
|
+
|
|
924
|
+
Update Stock Order Item
|
|
925
|
+
|
|
926
|
+
### Example
|
|
927
|
+
|
|
928
|
+
```typescript
|
|
929
|
+
import {
|
|
930
|
+
StockManagementApi,
|
|
931
|
+
Configuration,
|
|
932
|
+
StockOrderItemModel
|
|
933
|
+
} from 'yellowgrid-api-ts';
|
|
934
|
+
|
|
935
|
+
const configuration = new Configuration();
|
|
936
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
937
|
+
|
|
938
|
+
let orderId: number; //Stock Order ID (default to undefined)
|
|
939
|
+
let itemId: number; //Stock Order Item ID (default to undefined)
|
|
940
|
+
let stockOrderItemModel: StockOrderItemModel; // (optional)
|
|
941
|
+
|
|
942
|
+
const { status, data } = await apiInstance.patchDeleteStockOrderItem(
|
|
943
|
+
orderId,
|
|
944
|
+
itemId,
|
|
945
|
+
stockOrderItemModel
|
|
946
|
+
);
|
|
947
|
+
```
|
|
948
|
+
|
|
949
|
+
### Parameters
|
|
950
|
+
|
|
951
|
+
|Name | Type | Description | Notes|
|
|
952
|
+
|------------- | ------------- | ------------- | -------------|
|
|
953
|
+
| **stockOrderItemModel** | **StockOrderItemModel**| | |
|
|
954
|
+
| **orderId** | [**number**] | Stock Order ID | defaults to undefined|
|
|
955
|
+
| **itemId** | [**number**] | Stock Order Item ID | defaults to undefined|
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
### Return type
|
|
959
|
+
|
|
960
|
+
**StockOrderItemModel**
|
|
961
|
+
|
|
962
|
+
### Authorization
|
|
963
|
+
|
|
964
|
+
No authorization required
|
|
965
|
+
|
|
966
|
+
### HTTP request headers
|
|
967
|
+
|
|
968
|
+
- **Content-Type**: application/json
|
|
969
|
+
- **Accept**: application/json
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
### HTTP response details
|
|
973
|
+
| Status code | Description | Response headers |
|
|
974
|
+
|-------------|-------------|------------------|
|
|
975
|
+
|**200** | Stock Order Item | - |
|
|
976
|
+
|**400** | Bad Request | - |
|
|
977
|
+
|**401** | Unauthorised | - |
|
|
978
|
+
|**403** | Access Denied | - |
|
|
979
|
+
|
|
980
|
+
[[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)
|
|
981
|
+
|
|
982
|
+
# **postAddStockOrderDeduction**
|
|
983
|
+
> Array<StockOrderDeductionModel> postAddStockOrderDeduction()
|
|
984
|
+
|
|
985
|
+
Add Stock Order Deductions
|
|
986
|
+
|
|
987
|
+
### Example
|
|
988
|
+
|
|
989
|
+
```typescript
|
|
990
|
+
import {
|
|
991
|
+
StockManagementApi,
|
|
992
|
+
Configuration
|
|
993
|
+
} from 'yellowgrid-api-ts';
|
|
994
|
+
|
|
995
|
+
const configuration = new Configuration();
|
|
996
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
997
|
+
|
|
998
|
+
let id: number; //Stock Order ID (default to undefined)
|
|
999
|
+
let stockOrderDeductionRequestModel: Array<StockOrderDeductionRequestModel>; // (optional)
|
|
1000
|
+
|
|
1001
|
+
const { status, data } = await apiInstance.postAddStockOrderDeduction(
|
|
1002
|
+
id,
|
|
1003
|
+
stockOrderDeductionRequestModel
|
|
1004
|
+
);
|
|
1005
|
+
```
|
|
1006
|
+
|
|
1007
|
+
### Parameters
|
|
1008
|
+
|
|
1009
|
+
|Name | Type | Description | Notes|
|
|
1010
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1011
|
+
| **stockOrderDeductionRequestModel** | **Array<StockOrderDeductionRequestModel>**| | |
|
|
1012
|
+
| **id** | [**number**] | Stock Order ID | defaults to undefined|
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
### Return type
|
|
1016
|
+
|
|
1017
|
+
**Array<StockOrderDeductionModel>**
|
|
1018
|
+
|
|
1019
|
+
### Authorization
|
|
1020
|
+
|
|
1021
|
+
No authorization required
|
|
1022
|
+
|
|
1023
|
+
### HTTP request headers
|
|
1024
|
+
|
|
1025
|
+
- **Content-Type**: application/json
|
|
1026
|
+
- **Accept**: application/json
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
### HTTP response details
|
|
1030
|
+
| Status code | Description | Response headers |
|
|
1031
|
+
|-------------|-------------|------------------|
|
|
1032
|
+
|**200** | Stock Order Deductions | - |
|
|
1033
|
+
|**400** | Bad Request | - |
|
|
1034
|
+
|**401** | Unauthorised | - |
|
|
1035
|
+
|**403** | Access Denied | - |
|
|
1036
|
+
|
|
1037
|
+
[[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)
|
|
1038
|
+
|
|
1039
|
+
# **postAddStockOrderItem**
|
|
1040
|
+
> Array<StockOrderItemModel> postAddStockOrderItem()
|
|
1041
|
+
|
|
1042
|
+
Add Stock Order Items
|
|
1043
|
+
|
|
1044
|
+
### Example
|
|
1045
|
+
|
|
1046
|
+
```typescript
|
|
1047
|
+
import {
|
|
1048
|
+
StockManagementApi,
|
|
1049
|
+
Configuration
|
|
1050
|
+
} from 'yellowgrid-api-ts';
|
|
1051
|
+
|
|
1052
|
+
const configuration = new Configuration();
|
|
1053
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
1054
|
+
|
|
1055
|
+
let id: number; //Stock Order ID (default to undefined)
|
|
1056
|
+
let stockOrderItemRequestModel: Array<StockOrderItemRequestModel>; // (optional)
|
|
1057
|
+
|
|
1058
|
+
const { status, data } = await apiInstance.postAddStockOrderItem(
|
|
1059
|
+
id,
|
|
1060
|
+
stockOrderItemRequestModel
|
|
1061
|
+
);
|
|
1062
|
+
```
|
|
1063
|
+
|
|
1064
|
+
### Parameters
|
|
1065
|
+
|
|
1066
|
+
|Name | Type | Description | Notes|
|
|
1067
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1068
|
+
| **stockOrderItemRequestModel** | **Array<StockOrderItemRequestModel>**| | |
|
|
1069
|
+
| **id** | [**number**] | Stock Order ID | defaults to undefined|
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
### Return type
|
|
1073
|
+
|
|
1074
|
+
**Array<StockOrderItemModel>**
|
|
1075
|
+
|
|
1076
|
+
### Authorization
|
|
1077
|
+
|
|
1078
|
+
No authorization required
|
|
1079
|
+
|
|
1080
|
+
### HTTP request headers
|
|
1081
|
+
|
|
1082
|
+
- **Content-Type**: application/json
|
|
1083
|
+
- **Accept**: application/json
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
### HTTP response details
|
|
1087
|
+
| Status code | Description | Response headers |
|
|
1088
|
+
|-------------|-------------|------------------|
|
|
1089
|
+
|**200** | Stock Order Items | - |
|
|
1090
|
+
|**400** | Bad Request | - |
|
|
1091
|
+
|**401** | Unauthorised | - |
|
|
1092
|
+
|**403** | Access Denied | - |
|
|
1093
|
+
|
|
1094
|
+
[[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)
|
|
1095
|
+
|
|
1096
|
+
# **postGetStockOrders**
|
|
1097
|
+
> StockOrderModel postGetStockOrders()
|
|
1098
|
+
|
|
1099
|
+
Create New Stock Order
|
|
1100
|
+
|
|
1101
|
+
### Example
|
|
1102
|
+
|
|
1103
|
+
```typescript
|
|
1104
|
+
import {
|
|
1105
|
+
StockManagementApi,
|
|
1106
|
+
Configuration,
|
|
1107
|
+
StockOrderRequestModel
|
|
1108
|
+
} from 'yellowgrid-api-ts';
|
|
1109
|
+
|
|
1110
|
+
const configuration = new Configuration();
|
|
1111
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
1112
|
+
|
|
1113
|
+
let stockOrderRequestModel: StockOrderRequestModel; // (optional)
|
|
1114
|
+
|
|
1115
|
+
const { status, data } = await apiInstance.postGetStockOrders(
|
|
1116
|
+
stockOrderRequestModel
|
|
1117
|
+
);
|
|
1118
|
+
```
|
|
1119
|
+
|
|
1120
|
+
### Parameters
|
|
1121
|
+
|
|
1122
|
+
|Name | Type | Description | Notes|
|
|
1123
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1124
|
+
| **stockOrderRequestModel** | **StockOrderRequestModel**| | |
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
### Return type
|
|
1128
|
+
|
|
1129
|
+
**StockOrderModel**
|
|
1130
|
+
|
|
1131
|
+
### Authorization
|
|
1132
|
+
|
|
1133
|
+
No authorization required
|
|
1134
|
+
|
|
1135
|
+
### HTTP request headers
|
|
1136
|
+
|
|
1137
|
+
- **Content-Type**: application/json
|
|
1138
|
+
- **Accept**: application/json
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
### HTTP response details
|
|
1142
|
+
| Status code | Description | Response headers |
|
|
1143
|
+
|-------------|-------------|------------------|
|
|
1144
|
+
|**200** | Stock Order | - |
|
|
1145
|
+
|**400** | Bad Request | - |
|
|
1146
|
+
|**401** | Unauthorised | - |
|
|
1147
|
+
|**403** | Access Denied | - |
|
|
1148
|
+
|
|
1149
|
+
[[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)
|
|
1150
|
+
|
|
1151
|
+
# **postGetStockProducts**
|
|
1152
|
+
> StockProductModel postGetStockProducts()
|
|
1153
|
+
|
|
1154
|
+
Create Stock Product
|
|
1155
|
+
|
|
1156
|
+
### Example
|
|
1157
|
+
|
|
1158
|
+
```typescript
|
|
1159
|
+
import {
|
|
1160
|
+
StockManagementApi,
|
|
1161
|
+
Configuration,
|
|
1162
|
+
StockProductModel
|
|
1163
|
+
} from 'yellowgrid-api-ts';
|
|
1164
|
+
|
|
1165
|
+
const configuration = new Configuration();
|
|
1166
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
1167
|
+
|
|
1168
|
+
let stockProductModel: StockProductModel; //Stock Product (optional)
|
|
1169
|
+
|
|
1170
|
+
const { status, data } = await apiInstance.postGetStockProducts(
|
|
1171
|
+
stockProductModel
|
|
1172
|
+
);
|
|
1173
|
+
```
|
|
1174
|
+
|
|
1175
|
+
### Parameters
|
|
1176
|
+
|
|
1177
|
+
|Name | Type | Description | Notes|
|
|
1178
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1179
|
+
| **stockProductModel** | **StockProductModel**| Stock Product | |
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
### Return type
|
|
1183
|
+
|
|
1184
|
+
**StockProductModel**
|
|
1185
|
+
|
|
1186
|
+
### Authorization
|
|
1187
|
+
|
|
1188
|
+
No authorization required
|
|
1189
|
+
|
|
1190
|
+
### HTTP request headers
|
|
1191
|
+
|
|
1192
|
+
- **Content-Type**: application/json
|
|
1193
|
+
- **Accept**: application/json
|
|
1194
|
+
|
|
1195
|
+
|
|
1196
|
+
### HTTP response details
|
|
1197
|
+
| Status code | Description | Response headers |
|
|
1198
|
+
|-------------|-------------|------------------|
|
|
1199
|
+
|**200** | Stock Product | - |
|
|
1200
|
+
|**400** | Bad Request | - |
|
|
1201
|
+
|**401** | Unauthorised | - |
|
|
1202
|
+
|**403** | Access Denied | - |
|
|
1203
|
+
|
|
1204
|
+
[[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)
|
|
1205
|
+
|
|
1206
|
+
# **postUploadStockOrderInvoice**
|
|
1207
|
+
> postUploadStockOrderInvoice()
|
|
1208
|
+
|
|
1209
|
+
Upload Stock Order Supplier Invoice
|
|
1210
|
+
|
|
1211
|
+
### Example
|
|
1212
|
+
|
|
1213
|
+
```typescript
|
|
1214
|
+
import {
|
|
1215
|
+
StockManagementApi,
|
|
1216
|
+
Configuration
|
|
1217
|
+
} from 'yellowgrid-api-ts';
|
|
1218
|
+
|
|
1219
|
+
const configuration = new Configuration();
|
|
1220
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
1221
|
+
|
|
1222
|
+
let id: number; //Stock Order ID (default to undefined)
|
|
1223
|
+
let invoice: File; //Supplier Invoice (default to undefined)
|
|
1224
|
+
|
|
1225
|
+
const { status, data } = await apiInstance.postUploadStockOrderInvoice(
|
|
1226
|
+
id,
|
|
1227
|
+
invoice
|
|
1228
|
+
);
|
|
1229
|
+
```
|
|
1230
|
+
|
|
1231
|
+
### Parameters
|
|
1232
|
+
|
|
1233
|
+
|Name | Type | Description | Notes|
|
|
1234
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1235
|
+
| **id** | [**number**] | Stock Order ID | defaults to undefined|
|
|
1236
|
+
| **invoice** | [**File**] | Supplier Invoice | defaults to undefined|
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
### Return type
|
|
1240
|
+
|
|
1241
|
+
void (empty response body)
|
|
1242
|
+
|
|
1243
|
+
### Authorization
|
|
1244
|
+
|
|
1245
|
+
No authorization required
|
|
1246
|
+
|
|
1247
|
+
### HTTP request headers
|
|
1248
|
+
|
|
1249
|
+
- **Content-Type**: multipart/form-data
|
|
1250
|
+
- **Accept**: Not defined
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
### HTTP response details
|
|
1254
|
+
| Status code | Description | Response headers |
|
|
1255
|
+
|-------------|-------------|------------------|
|
|
1256
|
+
|**200** | No Response | - |
|
|
1257
|
+
|**400** | Bad Request | - |
|
|
1258
|
+
|**401** | Unauthorised | - |
|
|
1259
|
+
|**403** | Access Denied | - |
|
|
1260
|
+
|
|
1261
|
+
[[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)
|
|
1262
|
+
|
|
1263
|
+
# **putGetStockProduct**
|
|
1264
|
+
> StockProductModel putGetStockProduct()
|
|
1265
|
+
|
|
1266
|
+
Update Stock Product
|
|
1267
|
+
|
|
1268
|
+
### Example
|
|
1269
|
+
|
|
1270
|
+
```typescript
|
|
1271
|
+
import {
|
|
1272
|
+
StockManagementApi,
|
|
1273
|
+
Configuration,
|
|
1274
|
+
StockProductModel
|
|
1275
|
+
} from 'yellowgrid-api-ts';
|
|
1276
|
+
|
|
1277
|
+
const configuration = new Configuration();
|
|
1278
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
1279
|
+
|
|
1280
|
+
let id: number; //Stock Product ID (default to undefined)
|
|
1281
|
+
let stockProductModel: StockProductModel; //Stock Product (optional)
|
|
1282
|
+
|
|
1283
|
+
const { status, data } = await apiInstance.putGetStockProduct(
|
|
1284
|
+
id,
|
|
1285
|
+
stockProductModel
|
|
1286
|
+
);
|
|
1287
|
+
```
|
|
1288
|
+
|
|
1289
|
+
### Parameters
|
|
1290
|
+
|
|
1291
|
+
|Name | Type | Description | Notes|
|
|
1292
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1293
|
+
| **stockProductModel** | **StockProductModel**| Stock Product | |
|
|
1294
|
+
| **id** | [**number**] | Stock Product ID | defaults to undefined|
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
### Return type
|
|
1298
|
+
|
|
1299
|
+
**StockProductModel**
|
|
1300
|
+
|
|
1301
|
+
### Authorization
|
|
1302
|
+
|
|
1303
|
+
No authorization required
|
|
1304
|
+
|
|
1305
|
+
### HTTP request headers
|
|
1306
|
+
|
|
1307
|
+
- **Content-Type**: application/json
|
|
1308
|
+
- **Accept**: application/json
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
### HTTP response details
|
|
1312
|
+
| Status code | Description | Response headers |
|
|
1313
|
+
|-------------|-------------|------------------|
|
|
1314
|
+
|**200** | Stock Product | - |
|
|
1315
|
+
|**400** | Bad Request | - |
|
|
1316
|
+
|**401** | Unauthorised | - |
|
|
1317
|
+
|**403** | Access Denied | - |
|
|
1318
|
+
|
|
1319
|
+
[[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)
|
|
1320
|
+
|
|
1321
|
+
# **putReceiveStockOrderItem**
|
|
1322
|
+
> putReceiveStockOrderItem()
|
|
1323
|
+
|
|
1324
|
+
Receive Stock Order Item
|
|
1325
|
+
|
|
1326
|
+
### Example
|
|
1327
|
+
|
|
1328
|
+
```typescript
|
|
1329
|
+
import {
|
|
1330
|
+
StockManagementApi,
|
|
1331
|
+
Configuration
|
|
1332
|
+
} from 'yellowgrid-api-ts';
|
|
1333
|
+
|
|
1334
|
+
const configuration = new Configuration();
|
|
1335
|
+
const apiInstance = new StockManagementApi(configuration);
|
|
1336
|
+
|
|
1337
|
+
let orderId: number; //Stock Order ID (default to undefined)
|
|
1338
|
+
let itemId: number; //Stock Order Item ID (default to undefined)
|
|
1339
|
+
let received: number; //Quantity Received (default to undefined)
|
|
1340
|
+
|
|
1341
|
+
const { status, data } = await apiInstance.putReceiveStockOrderItem(
|
|
1342
|
+
orderId,
|
|
1343
|
+
itemId,
|
|
1344
|
+
received
|
|
1345
|
+
);
|
|
1346
|
+
```
|
|
1347
|
+
|
|
1348
|
+
### Parameters
|
|
1349
|
+
|
|
1350
|
+
|Name | Type | Description | Notes|
|
|
1351
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1352
|
+
| **orderId** | [**number**] | Stock Order ID | defaults to undefined|
|
|
1353
|
+
| **itemId** | [**number**] | Stock Order Item ID | defaults to undefined|
|
|
1354
|
+
| **received** | [**number**] | Quantity Received | defaults to undefined|
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
### Return type
|
|
1358
|
+
|
|
1359
|
+
void (empty response body)
|
|
1360
|
+
|
|
1361
|
+
### Authorization
|
|
1362
|
+
|
|
1363
|
+
No authorization required
|
|
1364
|
+
|
|
1365
|
+
### HTTP request headers
|
|
1366
|
+
|
|
1367
|
+
- **Content-Type**: Not defined
|
|
1368
|
+
- **Accept**: Not defined
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
### HTTP response details
|
|
1372
|
+
| Status code | Description | Response headers |
|
|
1373
|
+
|-------------|-------------|------------------|
|
|
1374
|
+
|**200** | No Response | - |
|
|
1375
|
+
|**400** | Bad Request | - |
|
|
1376
|
+
|**401** | Unauthorised | - |
|
|
1377
|
+
|**403** | Access Denied | - |
|
|
1378
|
+
|
|
1379
|
+
[[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)
|
|
1380
|
+
|