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 .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 /csv/reply/GetProductRouteRequest HTTP/1.1 
Host: s1-api.fource.nl 
Content-Type: text/csv
Content-Length: length

Id,WithoutRouteInfo,WithoutNettoPrice
String,False,False

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

ResponseStatus,UrgentMessages,Product
"{errorCode:String,message:String,stackTrace:String,errors:[{errorCode:String,fieldName:String,message:String}]}",,"{availableLinkedWarehouse:0001-01-01,availableNextRoute:0001-01-01,routeExpiryDate:0001-01-01,isNextRoute:False,isVheckRoute:False,nettoPrice:0,quantityLinkedWarehouse:0,quantityAllWarehouses:0}"