Accounts-accountId-discount:GET
From Hostway API Documentation
(Difference between revisions)
(→Response Body) |
Corinne.chui (Talk | contribs) m (1 revision) |
Latest revision as of 13:33, 30 May 2016
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