Accounts-accountId-paymentInfo-paymentInfoId:DELETE
From Hostway API Documentation
				
								
				Revision as of 11:20, 8 April 2014 by Mike.robski  (Talk | contribs)
				
			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.
 
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