---
title: "Set Default Card Account"
method: POST
path: "/pws/pws_set_default_card_account/"
tags: ["Account"]
---

# Set Default Card Account

`POST /pws/pws_set_default_card_account/`

This API is used for tokens (cards) that are associated with multiple accounts. By changing the default account from old to new, the Account ID passed in the FAST feed will be updated for all authorizations going forward. To associate a token with the new account, it is necessary to link the card and account using this API.

## Request body

- DefaultCardAccountModel — This web service allows to alter the default account for a card token.
  - `account_new` integer, required — account number new. This will alter old account for card with new account.
  - `account_old` integer, required — account number old.
  - `api_call_unique_identifier` string, required — Unique number that must be passed at each API request. Identifier to make each API request unique
  - `client_id` integer, required — Unique identifier for the client which Paymentology will provide at outset
  - `token` integer, required — Public token for the card.
  - `user_id` string — User Id of the Customer who triggered the API request.
  - `remarks` string — Remarks for API request

## Response `200`

Successful Response

- SetDefaultCardAccountResponse — This model contain response message when we set default card account
  - `header` DefaultCardAccountHeader
    - `error_id` integer — error id
    - `error_desc` string — error message
  - `body` DefaultCardAccountBody
    - `message` string — Message for Description

## Other responses

- `404` — Webservices does not exist
- `500` — Internal Server error

---

[API](https://skmtc.net/paymentology/apis/payapi-docs.md) · [All operations](https://skmtc.net/paymentology/apis/payapi-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paymentology/payapi-docs/revisions/a675891b0365/schema)
