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-24T17:04:31.3175086+03:00", "description": "sample string 4", "endDate": "2025-05-24T17:04:31.3175086+03:00", "isComplated": true, "warehouseID": "749df6d2-bd31-45cd-b16d-7d8f1714b1d2", "companyID": "bb2b3a00-1a75-416f-80e2-60eb94822e2f", "countsAreDetailAddDto": [ { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "9c5e21eb-5d98-4729-b616-b5de3b9361d2", "companyID": "c2e44305-a1a1-49f7-8cc4-d694979ae655", "countsAreID": "cfc6775c-e8f9-4a56-ac78-6017b315bb3c" }, { "quantity": 1.1, "unitCost": 2.1, "totalCost": 3.1, "previousAvailable": 4.1, "productID": "9c5e21eb-5d98-4729-b616-b5de3b9361d2", "companyID": "c2e44305-a1a1-49f7-8cc4-d694979ae655", "countsAreID": "cfc6775c-e8f9-4a56-ac78-6017b315bb3c" } ] }
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>bb2b3a00-1a75-416f-80e2-60eb94822e2f</CompanyID> <CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>c2e44305-a1a1-49f7-8cc4-d694979ae655</CompanyID> <CountsAreID>cfc6775c-e8f9-4a56-ac78-6017b315bb3c</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>9c5e21eb-5d98-4729-b616-b5de3b9361d2</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> <CountsAreDetailAddDto> <CompanyID>c2e44305-a1a1-49f7-8cc4-d694979ae655</CompanyID> <CountsAreID>cfc6775c-e8f9-4a56-ac78-6017b315bb3c</CountsAreID> <PreviousAvailable>4.1</PreviousAvailable> <ProductID>9c5e21eb-5d98-4729-b616-b5de3b9361d2</ProductID> <Quantity>1.1</Quantity> <TotalCost>3.1</TotalCost> <UnitCost>2.1</UnitCost> </CountsAreDetailAddDto> </CountsAreDetailAddDto> <Date>2025-05-24T17:04:31.3175086+03:00</Date> <Description>sample string 4</Description> <EndDate>2025-05-24T17:04:31.3175086+03:00</EndDate> <IsComplated>true</IsComplated> <TotalAmount>2.1</TotalAmount> <WarehouseID>749df6d2-bd31-45cd-b16d-7d8f1714b1d2</WarehouseID> </CountsAreAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"code":"sample string 1","totalAmount":2.1,"date":"2025-05-24T17:04:31.3175086+03:00","description":"sample string 4","endDate":"2025-05-24T17:04:31.3175086+03:00","isComplated":true,"warehouseID":"749df6d2-bd31-45cd-b16d-7d8f1714b1d2","companyID":"bb2b3a00-1a75-416f-80e2-60eb94822e2f","countsAreDetailAddDto":[{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"9c5e21eb-5d98-4729-b616-b5de3b9361d2","companyID":"c2e44305-a1a1-49f7-8cc4-d694979ae655","countsAreID":"cfc6775c-e8f9-4a56-ac78-6017b315bb3c"},{"quantity":1.1,"unitCost":2.1,"totalCost":3.1,"previousAvailable":4.1,"productID":"9c5e21eb-5d98-4729-b616-b5de3b9361d2","companyID":"c2e44305-a1a1-49f7-8cc4-d694979ae655","countsAreID":"cfc6775c-e8f9-4a56-ac78-6017b315bb3c"}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.