Orders-orderId-account-user:GET

(Difference between revisions)
Jump to: navigation, search
 
m (1 revision)

Revision as of 00:58, 17 February 2013

GET /orders/{orderId}/account/user

Get details of the account user for the given order. A user with auto-generated information is created by default when the account is created. The user password is excluded from the response.

Contents


Request

GET /orders/{orderId}/account/user

Request 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

200 OK
The operation was successfully completed.
404 Not Found
An account or user has not been added to the given order or the order does not exist.

Response Body

{
 "userName": "{userName}",
 "links": [
  {"href": "https://api.hostway.com/orders/{order_id}/account/user/", "rel": "self"}
 ]
}
 

Parameters

userName - string
The username of the account login credentials.
links - list
Hypermedia for this resource. Links to self.

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox