---
title: "Update card"
method: PATCH
path: "/api/v1/users/cards/:id"
tags: ["Cards"]
---

# Update card

`PATCH /api/v1/users/cards/:id`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/users/cards/:id`
- Auth: `bearer_auth` (a scheme the document does not define)

## Request body

- object
  - `user_credit_card` object, required
    - `number` integer
    - `exp_month` integer
    - `exp_year` integer
    - `name` string
    - `address_line1` string
    - `address_city` string
    - `country` string
    - `vat_id` string
    - `brand` string

## Response `200`

successfull

- object
  - `message` string
  - `data` object
    - `id` string
    - `last4` integer
    - `exp_year` integer
    - `exp_month` integer
    - `brand` string
    - `name` string
    - `address_line1` string
    - `address_state` string
    - `address_city` integer
    - `address_country` string
    - `vat_id` integer
    - `card_number` string

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/aeroleads/apis/api-v1.md) · [All operations](https://skmtc.dev/aeroleads/apis/api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/aeroleads/apis/api-v1/revisions/f903ee7ec7fa?raw)
