Accounts-accountId-paymentInfo-paymentInfoId:DELETE
From Hostway API Documentation
(Difference between revisions)
Mike.robski (Talk | contribs) m (1 revision: Release 92) |
Mike.robski (Talk | contribs) m (1 revision: Release 109) |
||
(One intermediate revision by one user not shown) | |||
Line 12: | Line 12: | ||
; paymentInfoId - ''string'' | ; paymentInfoId - ''string'' | ||
: The Id of the payment method. | : The Id of the payment method. | ||
+ | : '''Note''': Default payment info can be unset only with agent credentials. | ||
=== URI Parameters === | === URI Parameters === |
Latest revision as of 12:12, 24 July 2015
DELETE /accounts/{accountId}/paymentInfo/{paymentInfoId}
Removes a given payment method. If the payment method is the current default, it cannot be removed
Contents |
Request
DELETE /accounts/{accountId}/paymentInfo/{paymentInfoId}
Parameters
- accountId - string
- The Id of the account.
- paymentInfoId - string
- The Id of the payment method.
- Note: Default payment info can be unset only with agent credentials.
URI Parameters
None.
Request Headers
- Authorization - HTTP Authorization header [1]
- The Authentication credentials of the client application.
Request Body
None.
Response
Status Code
- 204 No Content
- Successful removal
- 403 Forbidden
- The current user is not allowed to delete this payment method
- 404 Not Found
- The account or payment info was not found
- 409 Conflict
- Cannot delete the current default payment method
Response Body
None.
See also