s1 API Host

<back to all web services

PlaceSimpleOrderRequest

The following routes are available for this service:
POST,OPTIONS/api/cart/place-simple-orderPlaces an order for the items in the cart. allows an option to be provided instead of the routes.User has to be authenticated to retrieve the information.
Parameters:
NameParameterData TypeRequiredDescription
PlaceSimpleOrderRequestbodyPlaceSimpleOrderRequestYesProvide the requested properties to place an order.

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

{"customerOrderReferenceNumber":"String","paymentMethod":"String","deliveryAddressId":"String","deliveryOption":"AsSoonAsPossible","complyWithDeliveryTimePreference":false,"comment":"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"}]},"placedOrder":{"id":"String","userName":"String","sessionId":"String","placedOn":"\/Date(-62135596800000-0000)\/","placeOrderRequest":{"customerOrderReferenceNumber":"String","paymentMethod":"String","deliveryAddressId":"String","externalDeliveryPaazlType":"String","externalDeliveryShippingFee":0,"comment":"String"},"comment":"String","totalAmount":0,"portal":"String","warehouse":"String"},"orderId":"String"}