Accounts-accountId-discount:GET

From Hostway API Documentation
Revision as of 13:33, 30 May 2016 by Corinne.chui (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

GET /accounts/{accountId}/discount

Get account level discount

Contents


Request

GET /accounts/{accountId}/discount

Request Parameters

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

Response

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.

Response Body

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

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

Examples

Success scenario

Request

GET /accounts/test-account/discount
 

Response

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

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox