You are viewing an old version of the API
Delete customer card

Removes a card on file from a customer

Required permissions CUSTOMERS_WRITE

Path Parameters

Name Description
customer_id
string

Required

The ID of the customer that the card on file belongs to.

card_id
string

Required

The ID of the card on file to delete.

Response Fields

Name Description
errors
Error [ ]

Any errors that occurred during the request.

Examples

You are viewing an old version of the API
DELETE /v2/customers/{customer_id}/cards/{card_id}
cURL
  • cURL
  • Ruby
  • Python
curl https://connect.squareup.com/v2/customers/{customer_id}/cards/{card_id} \
  -X DELETE \
  -H 'Square-Version: 2019-11-20' \
  -H 'Authorization: Bearer ACCESS_TOKEN'
Response JSON
{}

Share Feedback

Thanks for visiting the Square API documentation. What's on your mind?