---
title: "Update the name of an ID Card's consumer"
method: PATCH
path: "/id-cards/v1/business-locations/{businessLocationId}/cards/{cardId}/consumer"
tags: ["ID Cards"]
---

# Update the name of an ID Card's consumer

`PATCH /id-cards/v1/business-locations/{businessLocationId}/cards/{cardId}/consumer`

## Request

- Base URL: `https://api.trial.lsk.lightspeed.app`
- URL: `https://api.trial.lsk.lightspeed.app/id-cards/v1/business-locations/{businessLocationId}/cards/{cardId}/consumer`
- Auth: OAuth 2
  - Authorization code: `https://auth.lsk-prod.app/realms/k-series/protocol/openid-connect/auth`
  - Token URL: `https://auth.lsk-prod.app/realms/k-series/protocol/openid-connect/token` scopes: `id-cards`

Sets the first name, the last name, or both, of the consumer linked to an ID card, on this business's consumer record. Only `firstName` and `lastName` are used and other fields are ignored. A missing or `null` field is left unchanged; at least one of them must have a value.

Only placeholder consumers, whose email address ends in `@ikentoo.net`, such as the consumers created by Create ID Cards, can be updated. If the card is linked to any other consumer, the request is rejected with a 409 and nothing is changed. The consumer ID and the email address never change.

## Path parameters

- `businessLocationId` integer, required
- `cardId` integer, required

## Request body

- IdCardsApiUpdateIdCardConsumerRequest
  - `firstName` string: The consumer's first name. Leave out or send `null` to keep it unchanged.
  - `lastName` string: The consumer's last name. Leave out or send `null` to keep it unchanged.

## Response `200`

The consumer's name was updated.

- IdCardsApiIdCardConsumer
  - `cardId` integer: The unique identifier for the ID card.
  - `consumerId` integer: The unique identifier for the consumer linked to the card.
  - `firstName` string: The consumer's first name.
  - `lastName` string: The consumer's last name.

## Other responses

- `400`: Invalid body, such as a blank or too long name, a name made only of spaces or invisible characters, or no `firstName` or `lastName` value at all.
- `403`: The caller has no access to this business location.
- `404`: The ID card was not found at this business location (for example because it belongs to another business location), is revoked, is not linked to a consumer, or is linked to a placeholder consumer that has no record at this business.
- `409`: The card is linked to a consumer whose email address does not end in `@ikentoo.net`.

## Changes

> 31 revisions in range; 1 not diffed.

- **2026-10-30** `5429de47ccc6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lightspeed/apis/lightspeed-restaurant-k-series-api/changes/id-cards/v1/business-locations/:businessLocationId/cards/:cardId/consumer/patch.md)

---

[API](https://skmtc.dev/lightspeed/apis/lightspeed-restaurant-k-series-api.md) - [All operations](https://skmtc.dev/lightspeed/apis/lightspeed-restaurant-k-series-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lightspeed/apis/lightspeed-restaurant-k-series-api/revisions/af001485cf2b?raw)
