Skip to main content
DELETE
/
api
/
v3
/
store
/
customer
/
credit_cards
/
{id}
Spree SDK
import { createSpreeClient } from '@spree/sdk'

const client = createSpreeClient({
  baseUrl: 'https://your-store.com',
  publishableKey: '<api-key>',
})

await client.store.customer.creditCards.delete('cc_abc123', {
  bearerToken: '<token>',
})
{
  "error": {
    "code": "record_not_found",
    "message": "Credit card not found"
  }
}

Authorizations

x-spree-api-key
string
header
required

Publishable API key for store access

Authorization
string
header
required

JWT token for authenticated customers

Headers

x-spree-api-key
string
required
Authorization
string
required

Path Parameters

id
string
required

Response

credit card deleted