Secure Payments API – DELETE Customers Card
General
Deleting customer cards is one of the customer options available through the Secure Payments API.
How To
To to remove a customer's card, send a DELETE request to the endpoint:
DELETE https://securepayments.loanpro.io/api/customers/{id}/card
The customer ID is specific to the customer you're trying to edit. If you don't know the customer ID, see our GET Customers article.
This is an example payload:
{
"credit-card": {
"token": "CARD TOKEN"
}
}
And a sample cURL payload:
curl -X DELETE --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'authorization: YOUR AUTH' --header 'secret: YOUR SECRET' -d '{ \
"credit-card": { \
"token": "CARD TOKEN" \
} \
}' 'https://securepayments.loanpro.io/api/customers/1/card'