Accounts-accountId-paymentInfo-paymentInfoId:DELETE
(Difference between revisions)
				
																
				
				
								
				Revision as of 13:12, 25 March 2014
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