curl --request DELETE \
--url https://demo.spreecommerce.org/api/v2/storefront/account/credit_cards/{id} \
--header 'Authorization: Bearer <token>'{
"error": "The resource you were looking for could not be found."
}Removes a specified credit card for the current user with a soft delete to retain payment information for any pre-existing orders.
curl --request DELETE \
--url https://demo.spreecommerce.org/api/v2/storefront/account/credit_cards/{id} \
--header 'Authorization: Bearer <token>'{
"error": "The resource you were looking for could not be found."
}User token to authorize Cart and Checkout requests.
It is required to associate Cart with the User.
The ID of the credit_card you wish to remove.
"1"
204 Success No Content Returned - Requested Credit Card has been removed from the User Account
Was this page helpful?