Orders-orderId:DELETE

From Hostway API Documentation
Revision as of 01:58, 17 February 2013 by Mike.robski (Talk | contribs)
Jump to: navigation, search

DELETE /orders/{orderId}

Deletes an order. Only new orders that were not submitted can be deleted.

Contents

Request

DELETE /orders/{orderId}

Parameters

orderId - string
The unique order Id. The URI of the order is returned by the POST /orders call.

URI Parameters

None.

Request Headers

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
Order was successfully deleted.
404 Not Found
The specified order does not exist or it was previously deleted.
409 Conflict
The order was submitted and cannot be deleted.

Example

Request

DELETE /orders/0000013ca61880fbfc068b33000a02c9d8ef861c
Cookie: OwnerId=948ce0d4-7cf0-43b6-88a5-2b3f1331b689; Path=/
 

Response

204 No Content
 

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox