Square API
You are viewing an old version of the API
Cards
Square API
Use the Cards API to save a credit or debit card on file.
You can use the CreateCard endpoint to save a credit or debit card to a Square account. Developers can integrate the Cards API in their application to let Square sellers:
- Save a card that can be charged by any Square seller who uses your application. Your application specifies the organization access token in the
CreateCard
request. - Save a card that can be charged by a single Square seller. Your application specifies the access token of the specific seller account in the
CreateCard
request.
The Cards API also supports other endpoints to manage the cards.
-
List cards
GET /v2/cards - Retrieves a list of cards owned by the account making the request.
-
Create card
POST /v2/cards - Adds a card on file to an existing merchant.
-
Retrieve card
GET /v2/cards/{card_id} - Retrieves details for a specific Card.
-
Disable card
POST /v2/cards/{card_id}/disable - Disables the card, preventing any further updates or charges.