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-29T12:25:44.6981095+03:00", "description": "sample string 4", "endDate": "2025-08-29T12:25:44.6981095+03:00", "isComplated": true, "warehouseID": "8fecd651-df98-476a-9d64-8ff3db425de0", "companyID": "fbeaec98-959f-4b15-876f-35d52c76721f", "countsAreDetailAddDto": [ { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "4682c09b-7934-404b-a6ae-fe80904ea16d", "companyID": "1a2aedea-b854-4039-8e33-9ef4537cfb4d", "countsAreID": "353bd459-d0bb-44c1-b588-229f5ae38a74" }, { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "4682c09b-7934-404b-a6ae-fe80904ea16d", "companyID": "1a2aedea-b854-4039-8e33-9ef4537cfb4d", "countsAreID": "353bd459-d0bb-44c1-b588-229f5ae38a74" } ] }
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>fbeaec98-959f-4b15-876f-35d52c76721f</CompanyID> <CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>1a2aedea-b854-4039-8e33-9ef4537cfb4d</CompanyID> <CountsAreID>353bd459-d0bb-44c1-b588-229f5ae38a74</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>4682c09b-7934-404b-a6ae-fe80904ea16d</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>1a2aedea-b854-4039-8e33-9ef4537cfb4d</CompanyID> <CountsAreID>353bd459-d0bb-44c1-b588-229f5ae38a74</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>4682c09b-7934-404b-a6ae-fe80904ea16d</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> </CountsAreDetailAddDto> <Date>2025-08-29T12:25:44.6981095+03:00</Date> <Description>sample string 4</Description> <EndDate>2025-08-29T12:25:44.6981095+03:00</EndDate> <IsComplated>true</IsComplated> <TotalAmount>2.1</TotalAmount> <WarehouseID>8fecd651-df98-476a-9d64-8ff3db425de0</WarehouseID> </CountsAreAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"code":"sample string 1","totalAmount":2.1,"date":"2025-08-29T12:25:44.6981095+03:00","description":"sample string 4","endDate":"2025-08-29T12:25:44.6981095+03:00","isComplated":true,"warehouseID":"8fecd651-df98-476a-9d64-8ff3db425de0","companyID":"fbeaec98-959f-4b15-876f-35d52c76721f","countsAreDetailAddDto":[{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"4682c09b-7934-404b-a6ae-fe80904ea16d","companyID":"1a2aedea-b854-4039-8e33-9ef4537cfb4d","countsAreID":"353bd459-d0bb-44c1-b588-229f5ae38a74"},{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"4682c09b-7934-404b-a6ae-fe80904ea16d","companyID":"1a2aedea-b854-4039-8e33-9ef4537cfb4d","countsAreID":"353bd459-d0bb-44c1-b588-229f5ae38a74"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.