Accounts-accountId-discount:GET

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
(Response Body)
 
m (1 revision)
 

Latest revision as of 14:33, 30 May 2016

[edit] GET /accounts/{accountId}/discount

Get account level discount

Contents


[edit] Request

GET /accounts/{accountId}/discount

[edit] Request Parameters

accountId - string
The user account on which the discount is applied

[edit] Response

[edit] Status Code

200 OK
Success
401 Unauthorized
The supplied credentials are invalid or do not provide permissions for this operation.
404 Not Found
The account or invoice does not exist.

[edit] Response Body

    {
       "discountPercentage": "{discountPercentage}",
       "links":
       [
           {
                "href": "{{APIBaseURL}}/accounts/{accountId}/discount",
                "rel": "self"
           }
       ]
    }
 

[edit] Parameters

discountPercentage - integer
Discount percentage
accountId - string
The user account on which the discount is applied
links - string
Hypermedia for this resource. Links to self

[edit] Examples

[edit] Success scenario

Request

GET /accounts/test-account/discount
 

Response

{
    {
       "discountPercentage": 30,
       "links":
       [
           {
               "href": "http://{{APIBaseURL}}/accounts/test-account/discount/",
               "rel": "self"
           }
       ]
    }
}
 

[edit] See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox