How to delete a saved credit card

A credit card can be deleted from in the system by using the following URL and POST parameters

 

 Method URL
 POST  https://api.fairwarningsoftware.com/v1.1.1/user/billing/card/delete

 Parameters to pass during the request:

 Field  Type  Required  Description
user_id int YES The user's unique identification number from the FWS management software.
card_id string YES The ID of the credit card.

 

 Status Response
 200

 {
    "success" : <success>
}

401  {"error":"The API keys provided are invalid."}
403  {"error":"API keys are missing."}
500  {"error": <custom error>}

 

 Field  Type Description
success bool Whether the API call was successful or not.
error string Contains the error returned by the API, or false if there were no errors.