Accounts-accountId-paymentInfo-paymentInfoId:DELETE
From Hostway API Documentation
Revision as of 08:56, 12 June 2015 by Jerry.dimitrov (Talk)
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