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-08-05T21:27:05.9459402+03:00", "description": "sample string 4", "endDate": "2025-08-05T21:27:05.9459402+03:00", "isComplated": true, "warehouseID": "9d81ab17-0275-4976-94b2-41bea669e4d1", "companyID": "6738f267-ecf8-42af-a8ee-87e78a8f230e", "countsAreDetailAddDto": [ { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "84b07a12-f266-4707-9ef0-fc3d9260df0b", "companyID": "2e003b83-f647-4a64-a185-d677841f5986", "countsAreID": "e919c532-5af0-4f3c-b404-e6ec40c0eab8" }, { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "84b07a12-f266-4707-9ef0-fc3d9260df0b", "companyID": "2e003b83-f647-4a64-a185-d677841f5986", "countsAreID": "e919c532-5af0-4f3c-b404-e6ec40c0eab8" } ] }
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>6738f267-ecf8-42af-a8ee-87e78a8f230e</CompanyID> <CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>2e003b83-f647-4a64-a185-d677841f5986</CompanyID> <CountsAreID>e919c532-5af0-4f3c-b404-e6ec40c0eab8</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>84b07a12-f266-4707-9ef0-fc3d9260df0b</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>2e003b83-f647-4a64-a185-d677841f5986</CompanyID> <CountsAreID>e919c532-5af0-4f3c-b404-e6ec40c0eab8</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>84b07a12-f266-4707-9ef0-fc3d9260df0b</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> </CountsAreDetailAddDto> <Date>2025-08-05T21:27:05.9459402+03:00</Date> <Description>sample string 4</Description> <EndDate>2025-08-05T21:27:05.9459402+03:00</EndDate> <IsComplated>true</IsComplated> <TotalAmount>2.1</TotalAmount> <WarehouseID>9d81ab17-0275-4976-94b2-41bea669e4d1</WarehouseID> </CountsAreAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"code":"sample string 1","totalAmount":2.1,"date":"2025-08-05T21:27:05.9459402+03:00","description":"sample string 4","endDate":"2025-08-05T21:27:05.9459402+03:00","isComplated":true,"warehouseID":"9d81ab17-0275-4976-94b2-41bea669e4d1","companyID":"6738f267-ecf8-42af-a8ee-87e78a8f230e","countsAreDetailAddDto":[{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"84b07a12-f266-4707-9ef0-fc3d9260df0b","companyID":"2e003b83-f647-4a64-a185-d677841f5986","countsAreID":"e919c532-5af0-4f3c-b404-e6ec40c0eab8"},{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"84b07a12-f266-4707-9ef0-fc3d9260df0b","companyID":"2e003b83-f647-4a64-a185-d677841f5986","countsAreID":"e919c532-5af0-4f3c-b404-e6ec40c0eab8"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.