REST Call to Fetch PartsList
The following is the template for REST call for partsList.
Template URL
https://<HOST_NAME>:<PORT>/ACD/delivery/servicecenter/rest/partslists/fetchpartsList/<PartsList_ID>?model=<model_ID>Engine&sn=<SN_Id>
PartsList_ID is the ID of the partsList and must be taken from the previous IS call.
You can fetch the ID of the partsList from: Items > 0 > actions > action_get_self > id or Items > 0 > actions > action_get_self > href
Query Parameters
model or sn: Either the serial number or the model name is mandatory. Both model and sn can also be specified in a URL. When no custom parameters are defined, the default applicability is applied to the partslist and results are fetched.
Example for model name — SH Diesel Engine
Example for sn — SEDAN_SH_DE_SN001
Optional Query Parameters
customEff — Fetches the result with custom options and choices. For more information, see Getting the Default Options and Choices on the Product.
dateEff — Fetches the result with date effectivity. The date format should be YYYY-MM-DDTHH:mm:ssZ
$top — Use this to define the length of returning parts.
$skip — Use this to define the offset.
Headers
Key
Value
Accept
application/vnd.ptc.scsearch+json;version=1
Content-Type
application/vnd.ptc.scsearch+json;version=1
X-XSRF-TOKEN
static value
Accept-Language
ja [This is an optional header. Default value will be en-US]
Example to fetch the element for partsList:
https://<HOST_NAME>:<PORT>/ACD/servlet/servicecenter/rest/partslists/fetchpartsList/Element.PartsList%3A%3AVj0xfnsicklkIjoiSVNfMDAwMDAxODk5NF9BTVBfT3JnIiwib3AiOlsiSVNfMDAwMDAxODk5NF9BTVBfT3JnIiwiSVNfMDAwMDAxNTIxNV9BTVBfT3JnIiwiUExfQ29sMV8wMDAwMDAwMDk4X0FNUF9PcmciXSwibm4iOjYxNTMsInRzIjowfQ?model=SH Diesel Engine
The following image shows a partsList RESTcall response:
The PartsList has the following details:
illustrations — Illustrations has the list of all the images in the partsList. You can find links to the illustration under item > collection > illustrations > 0 > objects > associatedimage > action > action_get_self > href
For example:
callouts & calloutMappings — This contains information about hotspots. You can find it under item > collection > callouts > items > 0 > attributes and item > collection > calloutMappings > items > 0 > attributes
For example:
Parts — You can find the details of the Parts under item > collections > Parts > items
describingPart — You can find the details of the Describing Parts under item > objects > associatedPart
Was this helpful?