Accounts-accountId-paymentInfo-default:PUT
From Hostway API Documentation
Revision as of 11:20, 8 April 2014 by Mike.robski (Talk | contribs)
PUT /accounts/{accountId}/paymentInfo/default
Sets the default payment method
Contents |
Request
PUT /accounts/{accountId}/paymentInfo/default
Parameters
- accountId - string
- The Id of the account.
URI Parameters
None.
Request Headers
- Authorization - HTTP Authorization header [1]
- The Authentication credentials of the client application.
Request Body
{ "paymentInfo": "https://api.hostway.com/accounts/{accountId}/paymentInfo/{paymentId}" }
Parameters
- paymentInfo - string
- The new defalut payment method. Should contain a link to the payment info that will become the new default.
Response
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.
Response Body
None.
See also