Orders-orderId-account-products-productId-promotion:DELETE

From Hostway API Documentation
Revision as of 11:59, 11 October 2013 by Mike.robski (Talk | contribs)
Jump to: navigation, search

DELETE /orders/{orderId}/account/products/{productId}/promotion

Set promotion code for a product in an order.

Contents


Request

DELETE /orders/{orderId}/account/products/{productId}/promotion

URI Parameters

orderId - string
The unique order Id. The URI of the order is returned by the POST /orders call.
productId - string
UUID specifying the product for which actions are to be performed

Query String Parameters

None.

Request Headers

Content-Type
Required. Set this header to application/json; charset=UTF-8
Cookie
A cookie named OwnerId to identify the client (for most browser clients, the browser will do this automatically, depending on the browser configuration). The value of the cookie would come from the response to the create order request in the Set-Cookie response header.

Response

Status Code

204 No Content
The promotion code was successfully set.
401 Unauthorized
The request was not properly authorized.
404 Not Found
Returned if the order or the product could not be found.

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox