Removes a saved credit card from the customer account
JavaScript
import { createClient } from '@spree/sdk' const client = createClient({ baseUrl: 'https://your-store.com', publishableKey: '<api-key>', }) await client.customer.creditCards.delete('card_abc123', { token: '<token>', })
{ "error": { "code": "record_not_found", "message": "Credit card not found" } }
Documentation IndexFetch the complete documentation index at: https://spreecommerce.org/docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://spreecommerce.org/docs/llms.txt
Use this file to discover all available pages before exploring further.
Publishable API key for store access
JWT token for authenticated customers
credit card deleted
Was this page helpful?
Contact support