POS365.VN APIs

<back to all web services

ComponentsByProduct

Requires Authentication
Required permission:Product_Read
The following routes are available for this service:
All Verbs/api/products/{Id}/components
ComponentsByProduct Parameters:
NameParameterData TypeRequiredDescription
IdpathlongNo
Includesquerystring[]No
ODataReq Parameters:
NameParameterData TypeRequiredDescription
OrderbyformstringNo
SelectformstringNo
FilterformstringNo
Skipformint?No
Topformint?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/products/{Id}/components HTTP/1.1 
Host: api.pos365.vn 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Id":0,"Includes":["String"],"$orderby":"String","$select":"String","$filter":"String","$skip":0,"$top":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'IList`1' using the custom 'csv' filter}Cannot dynamically create an instance of type 'System.Collections.Generic.IList`1[POS.Repositories.ComponentsByProductResult]'. Reason: Cannot create an instance of an interface.