s1 API Host

<back to all web services

GetProductRouteRequest

The following routes are available for this service:
GET,OPTIONS/api/products/{id}/routeGet route and pricing info for a product by an id.User has to be authenticated.
Parameters:
NameParameterData TypeRequiredDescription
IdpathstringYesThe id of the product (9 numbers long)
WithoutRouteInfoqueryboolNoIf set to true, will not return route info which will decrease response times.
WithoutNettoPricequeryboolNoIf set to true, will not return net prices which will decrease response times.

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/GetProductRouteRequest HTTP/1.1 
Host: api2.ghs-automotive.nl 
Content-Type: application/json
Content-Length: length

{"id":"String","withoutRouteInfo":false,"withoutNettoPrice":false}
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":{"availableLinkedWarehouse":"\/Date(-62135596800000-0000)\/","availableNextRoute":"\/Date(-62135596800000-0000)\/","routeExpiryDate":"\/Date(-62135596800000-0000)\/","isNextRoute":false,"isVheckRoute":false,"nettoPrice":0,"quantityLinkedWarehouse":0,"quantityAllWarehouses":0}}