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-04T22:51:44.4066064+03:00", "description": "sample string 4", "endDate": "2025-08-04T22:51:44.4066064+03:00", "isComplated": true, "warehouseID": "8f0ddc3b-3a23-44c1-847f-6d1621a7a292", "companyID": "d6b22cb8-d651-4108-b47e-830f6b7b96eb", "countsAreDetailAddDto": [ { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "e9d29d1f-92bf-4e37-83ac-512dcd27427a", "companyID": "7dfdaade-b1e6-494a-8be1-ffeee0282bdb", "countsAreID": "c1eb60a0-003e-4a3f-ab72-42e0bba1ad35" }, { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "e9d29d1f-92bf-4e37-83ac-512dcd27427a", "companyID": "7dfdaade-b1e6-494a-8be1-ffeee0282bdb", "countsAreID": "c1eb60a0-003e-4a3f-ab72-42e0bba1ad35" } ] }
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>d6b22cb8-d651-4108-b47e-830f6b7b96eb</CompanyID> <CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>7dfdaade-b1e6-494a-8be1-ffeee0282bdb</CompanyID> <CountsAreID>c1eb60a0-003e-4a3f-ab72-42e0bba1ad35</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>e9d29d1f-92bf-4e37-83ac-512dcd27427a</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>7dfdaade-b1e6-494a-8be1-ffeee0282bdb</CompanyID> <CountsAreID>c1eb60a0-003e-4a3f-ab72-42e0bba1ad35</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>e9d29d1f-92bf-4e37-83ac-512dcd27427a</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> </CountsAreDetailAddDto> <Date>2025-08-04T22:51:44.4066064+03:00</Date> <Description>sample string 4</Description> <EndDate>2025-08-04T22:51:44.4066064+03:00</EndDate> <IsComplated>true</IsComplated> <TotalAmount>2.1</TotalAmount> <WarehouseID>8f0ddc3b-3a23-44c1-847f-6d1621a7a292</WarehouseID> </CountsAreAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"code":"sample string 1","totalAmount":2.1,"date":"2025-08-04T22:51:44.4066064+03:00","description":"sample string 4","endDate":"2025-08-04T22:51:44.4066064+03:00","isComplated":true,"warehouseID":"8f0ddc3b-3a23-44c1-847f-6d1621a7a292","companyID":"d6b22cb8-d651-4108-b47e-830f6b7b96eb","countsAreDetailAddDto":[{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"e9d29d1f-92bf-4e37-83ac-512dcd27427a","companyID":"7dfdaade-b1e6-494a-8be1-ffeee0282bdb","countsAreID":"c1eb60a0-003e-4a3f-ab72-42e0bba1ad35"},{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"e9d29d1f-92bf-4e37-83ac-512dcd27427a","companyID":"7dfdaade-b1e6-494a-8be1-ffeee0282bdb","countsAreID":"c1eb60a0-003e-4a3f-ab72-42e0bba1ad35"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.