Accounts-accountId-paymentInfo-paymentInfoId:DELETE
(Difference between revisions)
				
																
				
				
								
				Mike.robski  (Talk | contribs) m (1 revision: Release 92)  | 
		 (→Parameters)  | 
		||
| 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 ===  | ||
Revision as of 08:56, 12 June 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