Orders-orderId-account-products-productId:GET

From Hostway API Documentation
Revision as of 17:15, 15 February 2013 by Mike.robski (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

GET /orders/{orderId}/account/products/{productId}

Get details about a specific Product in an account.

Contents


Request

GET /orders/{orderId}/account/products/{productId}

Request Parameters

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

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

200 OK
The operation was successfully completed.
401 Unauthorized
The OwnerId cookie or the Authorization header are not specified or do not permit access to the specified order.
404 Not Found
The specified order or product does not exist.

Response Body

{
  "status" : "open",
  "services" : "https://api.hostway.com/orders/{orderId}/account/products/{productId}/services",
  "offering" : "https://api.hostway.com/productSpecifications/{productSpecificationId}/offerings/{productOfferingId}",
  "links" : [
    {"href": "https://api.hostway.com/orders/{orderId}/account/products/{productId}", "rel": "self" }
  ]
}
 

Parameters

status - string
Current status of the product. Allowed values are new, pending, open, suspended, close_pending, closed and purge_pending
services - string
A link to the services associated with the product
offering - string
Link to the product catalog offering specifying the given product
links - list
Hypermedia for the product resource

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox