removeCreditCard
delete
/ccstore/v1/profiles/current/creditCards/{id}
Removes the credit card for the id, passed in as query parameter, from the current user.
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
The id of the credit card, that needs to be removed from the current user.
Header Parameters
-
X-CCAsset-Language(optional): string
The asset language of the request.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when the operation succeeds.
Root Schema : removeCreditCard_response
Type:
Show Source
object
-
id(optional):
string
The card id for the card that was deleted.
Example Response (application/json)
{
"links":[
{
"rel":"self",
"href":"http://localhost:8080/ccstoreui/v1/profiles/current/creditCards/usercc10001"
}
],
"id":"usercc10001"
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commercer Cloud:
|Error Code|Description|
|------------------|------------------|
|28388|Unable to find credit card for the card id {cardId}.|
|28393|User is not authorized to remove the credit card with card id {cardId}.|
|28394|An error occured while trying to remove the credit card with card id {cardId}.
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code