---
title: "Replace a card payment account"
method: PUT
path: "/v1/PaymentAccounts/paymentcard/{id}"
tags: ["PaymentAccounts"]
---

# Replace a card payment account

`PUT /v1/PaymentAccounts/paymentcard/{id}`

Updates an existing payment account for debit or credit cards.

## Path parameters

- `id` integer, required

## Request body

- RevAppUpdateModelsCard
  - `payment_account_id` integer — Primary identifier for this payment account.
  - `name_first` string, required — First name of the card holder
  - `name_last` string, required — Last name of the card holder
  - `expiration_month` integer, required — Expiration month of the card
  - `expiration_year` integer, required — Expiration year of the card
  - `customer_id` integer, required — Foreign identifier indicating the customer account associated with this payment method
  - `address_id` integer — Foreign identifier indicating the address associated with this payment method If no address is supplied, the billing address on the customer is used

## Response `200`

OK

- RevWebAPIModelsSuccess
  - `ok` boolean

## Other responses

- `400` — BadRequest
- `500` — InternalServerError

---

[API](https://skmtc.net/rev-io/apis/rev-io-api.md) · [All operations](https://skmtc.net/rev-io/apis/rev-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rev-io/rev-io-api/revisions/135571434f6c/schema)
