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-05-24T14:50:04.84838+03:00", "description": "sample string 4", "endDate": "2025-05-24T14:50:04.84838+03:00", "isComplated": true, "warehouseID": "6c730824-c152-442a-95a4-f14302a3a5fa", "companyID": "03ab45f3-6a56-405e-a8c4-aabad0c42ed5", "countsAreDetailAddDto": [ { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "b28c2b9b-5f2d-4bb8-b98d-50689b5cbbe3", "companyID": "c9036998-cdcd-482e-af64-1e352b0219c1", "countsAreID": "9f327675-8057-4f0c-82d7-6536f149eb99" }, { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "b28c2b9b-5f2d-4bb8-b98d-50689b5cbbe3", "companyID": "c9036998-cdcd-482e-af64-1e352b0219c1", "countsAreID": "9f327675-8057-4f0c-82d7-6536f149eb99" } ] }
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>03ab45f3-6a56-405e-a8c4-aabad0c42ed5</CompanyID> <CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>c9036998-cdcd-482e-af64-1e352b0219c1</CompanyID> <CountsAreID>9f327675-8057-4f0c-82d7-6536f149eb99</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>b28c2b9b-5f2d-4bb8-b98d-50689b5cbbe3</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>c9036998-cdcd-482e-af64-1e352b0219c1</CompanyID> <CountsAreID>9f327675-8057-4f0c-82d7-6536f149eb99</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>b28c2b9b-5f2d-4bb8-b98d-50689b5cbbe3</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> </CountsAreDetailAddDto> <Date>2025-05-24T14:50:04.84838+03:00</Date> <Description>sample string 4</Description> <EndDate>2025-05-24T14:50:04.84838+03:00</EndDate> <IsComplated>true</IsComplated> <TotalAmount>2.1</TotalAmount> <WarehouseID>6c730824-c152-442a-95a4-f14302a3a5fa</WarehouseID> </CountsAreAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"code":"sample string 1","totalAmount":2.1,"date":"2025-05-24T14:50:04.84838+03:00","description":"sample string 4","endDate":"2025-05-24T14:50:04.84838+03:00","isComplated":true,"warehouseID":"6c730824-c152-442a-95a4-f14302a3a5fa","companyID":"03ab45f3-6a56-405e-a8c4-aabad0c42ed5","countsAreDetailAddDto":[{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"b28c2b9b-5f2d-4bb8-b98d-50689b5cbbe3","companyID":"c9036998-cdcd-482e-af64-1e352b0219c1","countsAreID":"9f327675-8057-4f0c-82d7-6536f149eb99"},{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"b28c2b9b-5f2d-4bb8-b98d-50689b5cbbe3","companyID":"c9036998-cdcd-482e-af64-1e352b0219c1","countsAreID":"9f327675-8057-4f0c-82d7-6536f149eb99"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.