---
title: "debit-card/set-debit-card"
method: POST
path: "/debit-card/set-debit-card"
tags: ["Debit Card Endpoints"]
---

# debit-card/set-debit-card

`POST /debit-card/set-debit-card`

## Request

- Base URL: `https://earthnode-dev.vopay.com/api/v2`
- URL: `https://earthnode-dev.vopay.com/api/v2/debit-card/set-debit-card`
- Auth: none declared

This endpoint allows you to identify a debit card as belonging to the VoPay account holder. Optionally, you can use this endpoint to identify a debit card as being the VoPay account holder's default debit card. Note, a VoPay account can only have one default debit card.

## Request body `application/x-www-form-urlencoded`

- object
  - `AccountID` string, required: Your account ID
  - `Key` string, required: API key for the account
  - `Signature` string, required: Hashed signature for the request
  - `CardToken` string, required: Debit card token
  - `ClientAccountID` string: Client Account ID
  - `SetAsDefault` boolean: Identify card as default debit card

## Response `200`

- object
  - `Success` boolean, required: True if the request was successful, false if it failed
  - `ErrorMessage` string, required: Contains a description of the error if the request failed
  - `CardToken` string, required: Debit card token
  - `IsDefault` boolean, required: Is this the VoPay account holder's default debit card

---

[API](https://skmtc.dev/vopay/apis/payment-methods.md) - [All operations](https://skmtc.dev/vopay/apis/payment-methods/llms.txt) - [OpenAPI document](https://skmtc.dev/vopay/apis/payment-methods/revisions/b566c8002410?raw)
