---
title: "Set card"
method: PUT
path: "/cart/card"
tags: ["Cart"]
---

# Set card

`PUT /cart/card`

Set the credit card for the current user's cart.

## Request body

- object
  - `cardID` string, required — ID of the credit card to set for the current user's cart.

## Response `200`

Card was set successfully.

- object
  - `data` 'ok', required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `429` — Too Many Requests
- `500` — Internal Server Error

## Changes

- **2025-03-19** `1c6726b12e29` — 4 breaking, 24 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `400`
  - the response's body type/format changed from ``/`` to `object`/`` for status `401`
  - the response's body type/format changed from ``/`` to `object`/`` for status `429`
  - the response's body type/format changed from ``/`` to `object`/`` for status `500`
  - …24 more
- **2025-03-07** `979a6c40552c` — 4 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `429`
  - added the non-success response with the status `500`
- **2024-12-18** `416a8af6f912` — 2 info
  - the `data` response property const value `ok` was added for the status `200`
  - removed the `ok` enum value from the `data` response property for the response status `200`
- **2024-12-13** `43ff7af31b1e` — 1 breaking, 4 info
  - removed the required property `result` from the response with the `200` status
  - api operation id `putCartCard` was added
  - the endpoint scheme security `Bearer` was removed from the API
  - api tag `Cart` added
  - …1 more

[Change history](https://skmtc.dev/terminaldotshop/apis/terminal-api/changes/cart/card/put.md)

---

[API](https://skmtc.dev/terminaldotshop/apis/terminal-api.md) · [All operations](https://skmtc.dev/terminaldotshop/apis/terminal-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/terminaldotshop/terminal-api/revisions/84ef614abb97/schema)
