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 .jsv suffix or ?format=jsv

HTTP + JSV

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

POST /jsv/reply/PlaceSimpleOrderRequest HTTP/1.1 
Host: s1-api-tst.fource.nl 
Content-Type: text/jsv
Content-Length: length

{
	customerOrderReferenceNumber: String,
	paymentMethod: String,
	deliveryAddressId: String,
	deliveryOption: AsSoonAsPossible,
	complyWithDeliveryTimePreference: False,
	comment: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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: 0001-01-01,
		placeOrderRequest: 
		{
			customerOrderReferenceNumber: String,
			paymentMethod: String,
			deliveryAddressId: String,
			externalDeliveryPaazlType: String,
			externalDeliveryShippingFee: 0,
			comment: String
		},
		comment: String,
		totalAmount: 0,
		portal: String,
		warehouse: String
	},
	orderId: String
}