POST api/CountsAre/Add
Request Information
URI Parameters
None.
Body Parameters
CountsAreAddDtoName | Description | Type | Additional information |
---|---|---|---|
Code | string |
None. |
|
TotalAmount | decimal number |
None. |
|
Date | date |
None. |
|
Description | string |
None. |
|
EndDate | date |
None. |
|
IsComplated | boolean |
None. |
|
WarehouseID | globally unique identifier |
None. |
|
CompanyID | globally unique identifier |
None. |
|
CountsAreDetailAddDto | Collection of CountsAreDetailAddDto |
None. |
Request Formats
application/json, text/json
Sample:
{ "code": "sample string 1", "totalAmount": 2.1, "date": "2025-07-08T21:28:57.4728042+03:00", "description": "sample string 4", "endDate": "2025-07-08T21:28:57.4728042+03:00", "isComplated": true, "warehouseID": "6e2a6d70-29ee-474a-bc97-e1d83ea8361b", "companyID": "f904a419-6c8d-4163-a2f9-274817d36582", "countsAreDetailAddDto": [ { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "20616197-1181-4c87-9231-50a7bb1f40bd", "companyID": "0b1e90ee-62ce-4f07-8fd2-ec1e4d394f45", "countsAreID": "bcb724d3-ba9c-4c1a-9517-3caf05a472d2" }, { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "20616197-1181-4c87-9231-50a7bb1f40bd", "companyID": "0b1e90ee-62ce-4f07-8fd2-ec1e4d394f45", "countsAreID": "bcb724d3-ba9c-4c1a-9517-3caf05a472d2" } ] }
application/xml, text/xml
Sample:
<CountsAreAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TP.TulTrack.Core.Service.DTOs"> <Code>sample string 1</Code> <CompanyID>f904a419-6c8d-4163-a2f9-274817d36582</CompanyID> <CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>0b1e90ee-62ce-4f07-8fd2-ec1e4d394f45</CompanyID> <CountsAreID>bcb724d3-ba9c-4c1a-9517-3caf05a472d2</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>20616197-1181-4c87-9231-50a7bb1f40bd</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>0b1e90ee-62ce-4f07-8fd2-ec1e4d394f45</CompanyID> <CountsAreID>bcb724d3-ba9c-4c1a-9517-3caf05a472d2</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>20616197-1181-4c87-9231-50a7bb1f40bd</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> </CountsAreDetailAddDto> <Date>2025-07-08T21:28:57.4728042+03:00</Date> <Description>sample string 4</Description> <EndDate>2025-07-08T21:28:57.4728042+03:00</EndDate> <IsComplated>true</IsComplated> <TotalAmount>2.1</TotalAmount> <WarehouseID>6e2a6d70-29ee-474a-bc97-e1d83ea8361b</WarehouseID> </CountsAreAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"code":"sample string 1","totalAmount":2.1,"date":"2025-07-08T21:28:57.4728042+03:00","description":"sample string 4","endDate":"2025-07-08T21:28:57.4728042+03:00","isComplated":true,"warehouseID":"6e2a6d70-29ee-474a-bc97-e1d83ea8361b","companyID":"f904a419-6c8d-4163-a2f9-274817d36582","countsAreDetailAddDto":[{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"20616197-1181-4c87-9231-50a7bb1f40bd","companyID":"0b1e90ee-62ce-4f07-8fd2-ec1e4d394f45","countsAreID":"bcb724d3-ba9c-4c1a-9517-3caf05a472d2"},{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"20616197-1181-4c87-9231-50a7bb1f40bd","companyID":"0b1e90ee-62ce-4f07-8fd2-ec1e4d394f45","countsAreID":"bcb724d3-ba9c-4c1a-9517-3caf05a472d2"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.