s1 API Host

<back to all web services

GetProductRequest

The following routes are available for this service:
GET,OPTIONS/api/products/{id}Get a product by an id.User has to be authenticated.
Parameters:
NameParameterData TypeRequiredDescription
IdpathstringYesThe id of the product (9 numbers long)
CarIdquerystringNoThe carid. If this id is provided, additional product attributes will be provided specific for this car.
LicensePlatequerystringNoThe car license plate. If this is provided, additional product attributes will be provided specific for this car.

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/GetProductRequest HTTP/1.1 
Host: s1-api-tst.fource.nl 
Content-Type: application/json
Content-Length: length

{"id":"String","carId":"String","licensePlate":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String"}]},"product":{"id":"String","articleDataId":"String","alfaCode":"String","articleNo":"String","name":"String","commercialName":"String","description":"String","shortDescription":"String","longDescription":"String","brandName":"String","brandId":"String","productGroup":"String","productGroupId":"String","boschProductGroupId":"String","requiresLegitimation":false,"isGaik":false,"isNotRetourable":false,"isFGas":false,"canBackorder":false,"nettoPrice":0,"brutoPrice":0,"isLeadSurcharge":false,"leadSurcharge":0,"isDisposalFee":false,"disposalFee":0,"priceLabel":"String","unitsPerSale":0,"quantityLinkedWarehouse":0,"quantityAllWarehouses":0,"depositFee":0,"environmentalTax":0,"removalFee":0,"hasCharacteristic":false,"countryCode":"String","availableLinkedWarehouse":"\/Date(-62135596800000-0000)\/","availableNextRoute":"\/Date(-62135596800000-0000)\/","routeExpiryDate":"\/Date(-62135596800000-0000)\/","isNextRoute":false,"isVheckRoute":false,"isInPromotion":false,"isNettoPriceProvided":false,"isRouteInfoProvided":false,"isKnownProduct":false,"relevance":0,"brandLabel":"Onbekend","sortOrder":0,"origins":0,"hasSetParts":false,"setParts":{},"isRentalProduct":false,"isLeisureProduct":false,"isLeisureProductText":"Nee","hasCompatibleCars":false,"hbase":{"productId":"String","productGroupId":"String","name":"String"},"heijl":{"productId":"String","productGroupId":"String","name":"String"},"tecDoc":{"productId":"String","productGroupId":"String","name":"String"},"universalParts":{"productId":"String","productGroupId":"String","name":"String"},"toolSpecial":{"productId":"String","productGroupId":"String","name":"String"},"autoElectra":{"productId":"String"},"aldoc":{"productId":"String","brandId":"String","brandName":"String"}}}