POST PurchasesByItem/Get
Gets the specified request.
Request Information
This method supports OData queries.
URI Parameters
None.
Body Parameters
The Sales By Item request.
Purchases By Item Request ModelName | Type | Additional information | Description |
---|---|---|---|
FromDate | date |
None. |
Gets or sets From Date. |
ToDate | date |
None. |
Gets or sets To Date. |
FromItem | string |
None. |
The Item Code to start the range at. |
ToItem | string |
None. |
The Item Code to stop the range at. |
FromCategory | string |
None. |
The Category Name to start the range at. |
ToCategory | string |
None. |
The Category Name to stop the range at. |
IncludeService | bool |
None. |
Gets or sets a value indicating whether service items should be included. |
IncludePhysical | bool |
None. |
Gets or sets a value indicating whether physical items should be included. |
IncludeActive | bool |
None. |
Gets or sets a value indicating whether to include active items. |
IncludeInactive | bool |
None. |
Gets or sets a value indicating whether to include inactive items. |
AnalysisCategoryId1 | nullable integer |
None. |
Gets or sets the AnalysisCategoryID1. |
AnalysisCategoryId2 | nullable integer |
None. |
Gets or sets the AnalysisCategoryID2. |
AnalysisCategoryId3 | nullable integer |
None. |
Gets or sets the AnalysisCategoryID3. |
ReportGroupAccount | string |
None. |
Gets or sets the report group account. |
IncludeReturns | bool |
None. |
Gets or sets a value indicating whether to include returns or not. |
Limit | integer |
None. |
Gets or sets the limit. |
Request Formats
application/json, text/json
{ "AnalysisCategoryId1": 1, "AnalysisCategoryId2": 1, "AnalysisCategoryId3": 1, "ReportGroupAccount": "sample string 1", "IncludeReturns": true, "Limit": 3, "FromItem": "sample string 4", "ToItem": "sample string 5", "FromCategory": "sample string 6", "ToCategory": "sample string 7", "IncludeService": true, "IncludePhysical": true, "IncludeActive": true, "IncludeInactive": true, "FromDate": "2024-11-15", "ToDate": "2024-11-15" }
Response Information
Resource Description
This collection is wrapped in a paging response object.
Paging response of Purchases By ItemName | Type | Additional information | Description |
---|---|---|---|
TotalResults | integer |
None. |
|
ReturnedResults | integer |
None. |
|
Results | Collection of Purchases By Item |
None. |
Response Formats
application/json, text/json
{ "TotalResults": 1, "ReturnedResults": 2, "Results": [ { "ID": 1, "TransactionID": 2, "DocumentTypeId": 3, "DocumentNumber": "sample string 4", "SupplierName": "sample string 5", "ItemCode": "sample string 6", "ItemDescription": "sample string 7", "ItemCodeAndDescription": "sample string 8", "UnitPriceExclusive": 9.0, "Quantity": 10.0, "TotalPurchases": 11.0, "Date": "2024-11-15T00:00:00Z", "PriceExclusive": 13.0 }, { "ID": 1, "TransactionID": 2, "DocumentTypeId": 3, "DocumentNumber": "sample string 4", "SupplierName": "sample string 5", "ItemCode": "sample string 6", "ItemDescription": "sample string 7", "ItemCodeAndDescription": "sample string 8", "UnitPriceExclusive": 9.0, "Quantity": 10.0, "TotalPurchases": 11.0, "Date": "2024-11-15T00:00:00Z", "PriceExclusive": 13.0 } ] }