Delete customer card
Deprecated
Removes a card on file from a customer.
Name | Description |
---|---|
customer_
Required
|
The ID of the customer that the card on file belongs to. |
card_
Required
|
The ID of the card on file to delete. |
Response Fields
Name | Description |
---|---|
errors
|
Any errors that occurred during the request. |
Examples
DELETE
/v2/customers/{customer_id}/cards/{card_id}
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/customers/customer_id0/cards/card_id1 \
-X DELETE \
-H 'Square-Version: 2023-01-19' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json'
Response JSON
{}