Orders-orderId-account-products-productId:GET
From Hostway API Documentation
Revision as of 07:51, 15 September 2014 by Mike.robski (Talk | contribs)
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
Status Code | Error Message | Description |
---|---|---|
200 OK | - | The operation was successfully completed. |
401 Unauthorized | This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required. | The OwnerId cookie or the Authorization header are not specified or are invalid |
404 Not Found | Resource not found | The client is trying to get the products for non existing order or non existing product. |
Response Body
Successful response
200 OK { "status" : "open", "services" : "https://api.hostway.com/orders/{orderId}/account/products/{productId}/services", "offering" : "https://api.hostway.com/productSpecifications/{productSpecificationId}/offerings/{productOfferingId}", "displayName": "My custom product name", "partnerId": "Partner purchased plan Id", "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
- displayName - string
- A custom display name for the product.
- partnerId - string
- Partner purchased plan id.
- links - list
- Hypermedia for the product resource
Error responses
401 Unauthorized This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
404 Not Found { "itemNotFound": { "guid": "579951da-5f2c-4db7-9169-25658bfaafdb", "message": "Resource not found", "code": 404, "details": "" } }
See also