---
title: "POST /card"
method: POST
path: "/card"
---

# POST /card

`POST /card`

Switch a card in a user's merchant account.

## Request body

- union
  - object
    - `jwe` string, required — JWE value.
    - `task_id` string, required — `task_id` value provided in the [`AUTHENTICATED`](/link/webhook-events/authenticated) webhook.
  - object
    - `jwe` string, required — JWE value.
    - `external_user_id` string, required — Your unique identifier for the user.
    - `merchant_id` integer, required — Unique identifier for the merchant.
    - `card_name` string — Name of the card. Learn more [here](/sdk/ios#customerconfiguration).
    - `customer_name` string — Name of the customer. Learn more [here](/sdk/ios#customerconfiguration).

## Response `200`

Successful request. Receiving this response means your request has passed validations, including the `jwe`.

- object
  - `message` string — Success message.

## Other responses

- `400` — Bad request.
- `403` — Forbidden request.

---

[API](https://skmtc.net/knotapi/apis/knot-api.md) · [All operations](https://skmtc.net/knotapi/apis/knot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/knotapi/knot-api/versions/4610832c2087/schema)
