Accounts-accountId-paymentInfo-default:PUT
From Hostway API Documentation
(Difference between revisions)
(→Status Code) |
Mike.robski (Talk | contribs) m (1 revision: Release 92) |
Latest revision as of 12:20, 8 April 2014
[edit] PUT /accounts/{accountId}/paymentInfo/default
Sets the default payment method
Contents |
[edit] Request
PUT /accounts/{accountId}/paymentInfo/default
[edit] Parameters
- accountId - string
- The Id of the account.
[edit] URI Parameters
None.
[edit] Request Headers
- Authorization - HTTP Authorization header [1]
- The Authentication credentials of the client application.
[edit] Request Body
{ "paymentInfo": "https://api.hostway.com/accounts/{accountId}/paymentInfo/{paymentId}" }
[edit] Parameters
- paymentInfo - string
- The new defalut payment method. Should contain a link to the payment info that will become the new default.
[edit] Response
[edit] Status Code
- 204 No Content
- Successful default payment change
- 400 Bad Request
- Request body was malformed, or an invalid link was submitted for the new default payment.
- 404 Not Found
- The account Id was not found.
[edit] Response Body
None.
[edit] See also