POST api/OfficeSupplies/SaveOrUpdateOfficeSupplies
Request Information
URI Parameters
None.
Body Parameters
OfficeSuppliesDataObject| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | string |
None. |
|
| CategoryId | string |
None. |
|
| CategoryName | string |
None. |
|
| Brand | string |
None. |
|
| Size | string |
None. |
|
| UnitPrice | decimal number |
None. |
|
| Quantity | decimal number |
None. |
|
| EnterDate | date |
None. |
|
| EnterDateString | string |
None. |
|
| Amount | decimal number |
None. |
|
| SurplusStock | decimal number |
None. |
|
| SurplusStockAmount | decimal number |
None. |
|
| OrderCode | string |
None. |
|
| Warranty | date |
None. |
|
| WarrantyString | string |
None. |
|
| IfWarrantyStr | string |
None. |
|
| isReceived | boolean |
None. |
|
| ReceiveStatus | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "sample string 1",
"categoryId": "sample string 2",
"categoryName": "sample string 3",
"brand": "sample string 4",
"size": "sample string 5",
"unitPrice": 6.0,
"quantity": 7.0,
"enterDate": "2026-06-10T07:14:42.1484174+08:00",
"enterDateString": "2026-06-10",
"amount": 9.0,
"surplusStock": 10.0,
"surplusStockAmount": 11.0,
"orderCode": "sample string 12",
"warranty": "2026-06-10T07:14:42.1484174+08:00",
"warrantyString": "2026-06-10",
"ifWarrantyStr": "超过质保期",
"isReceived": true,
"receiveStatus": "已领取过"
}
application/xml, text/xml
Sample:
<OfficeSuppliesDataObject xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Id>sample string 1</Id> <CategoryId>sample string 2</CategoryId> <CategoryName>sample string 3</CategoryName> <Brand>sample string 4</Brand> <Size>sample string 5</Size> <UnitPrice>6</UnitPrice> <Quantity>7</Quantity> <EnterDate>2026-06-10T07:14:42.1484174+08:00</EnterDate> <Amount>9</Amount> <SurplusStock>10</SurplusStock> <SurplusStockAmount>11</SurplusStockAmount> <OrderCode>sample string 12</OrderCode> <Warranty>2026-06-10T07:14:42.1484174+08:00</Warranty> <isReceived>true</isReceived> </OfficeSuppliesDataObject>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
JsonResultObject| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSucceed | boolean |
None. |
|
| Remark | string |
None. |
|
| OpTime | string |
None. |
|
| Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"isSucceed": true,
"remark": "sample string 2",
"opTime": "sample string 3",
"result": {}
}
application/xml, text/xml
Sample:
<JsonResultObject xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <IsSucceed>true</IsSucceed> <Remark>sample string 2</Remark> <OpTime>sample string 3</OpTime> <Result /> </JsonResultObject>