---
title: "Update a customer"
method: POST
path: "/v3/{role}/{id}/update/{propertyToUpdate}"
tags: ["Update a customer"]
---

# Update a customer

`POST /v3/{role}/{id}/update/{propertyToUpdate}`

Basic operation for updating a customer. Check parameter updateProperty for possible parameters to update

## Path parameters

- `role` 'CORPORATE' | 'PRIVATE', required
- `id` string, required
- `propertyToUpdate` 'DELETE_TEMPORARY_ADDRESS', required

## Query parameters

- `auditUser` string, required

## Request body

- UpdateResourceBody — Should set the value of the property you are updating, leave rest empty
  - `expiration` Expiration
    - `year` integer — Expiration year in format YYYY
    - `month` integer — Expiration month in format MM
  - `applications` object[] — If provided this data will be used to override the PAN numbers
    - `id` string, required — Id of the card that will be replaced, replacing card will get the given PAN
    - `encryptedData` string, required — JWE encrypted card number, see details above
  - `cardExpiryDate` string — Test field for now that can be ignored, will require more configuration if we choose to use it in the future.
  - `cardTdsStaticPassword` string — Field that can be populated to set or update 3DS static password on the card (Printable ASCII 0x21–0x7E - no spaces)

## Response `200`

Successful update of customer

- ResourceResponse
  - `description` string — Short description of the result of the action
  - `id` string — Will contain the ID of the resource that has been created or updated

## Other responses

- `400` — Given property to update is invalid
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal server error

---

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