Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎2 - Consumer Related‎ > ‎Credit Card Management‎ > ‎

Delete Credit Card

This method will delete a credit card from the system.

Method: DELETE /api/v3/publisher/consumer/{userKey}/creditcard/{storedCreditCardId}

Authentication: oauth
 
Parameters:
 
userKey - The publisher assigned userKey for the consumer.
  storedCreditCardId - The id of the stored credit card.  Can be retrieved using the Get Credit Cards method.

Returns

base response fields


Sample Request:

DELETE http://api.groupcommerce.com/api/v3/publisher/consumer/3c651ac9e6054d72b9b938f782790c8c/creditcard/5008200

Authorization: OAuth oauth_signature="cP2gt0fmSzxRMFTuqvCXsIfUCf8%3d", oauth_nonce="474818", oauth_timestamp="1322684248", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"


Sample JSON Response:

{
    "errors":[],
    "lastPublished":"/Date(1319762442406)/",
    "success":true,
    "version":"3"
}


Sample XML Response:

<deleteCreditCardResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors/>
    <lastPublished>2011-10-28T00:41:46.6073105Z</lastPublished>
    <success>true</success>
    <version>3</version>
</deleteCreditCardResponse>
Comments