---
title: "Update a gift card"
method: PUT
path: "/gift-vouchers/{id}"
---

# Update a gift card

`PUT /gift-vouchers/{id}`

## Request

- Base URL: `https://api.ecommerceapi.uk/v1`
- URL: `https://api.ecommerceapi.uk/v1/gift-vouchers/{id}`
- Auth: HTTP basic

Updates an existing gift card by ID.

## Path parameters

- `id` integer, required

## Request body

- GiftCardUpdate
  - `code` string: The unique code of the gift card.
  - `amount` number, float: The value of the gift card.
  - `amountUsed` number, float: The amount of the gift card that has been used.

## Response `200`

Gift card updated successfully.

## Other responses

- `400`: Invalid request data.
- `401`: Unauthorized. Invalid or missing API key.
- `404`: Gift card not found.
- `500`: Server error.

---

[API](https://skmtc.dev/ecommerceapi/apis/gift-cards.md) - [All operations](https://skmtc.dev/ecommerceapi/apis/gift-cards/llms.txt) - [OpenAPI document](https://skmtc.dev/ecommerceapi/apis/gift-cards/revisions/6d99960b7bd8?raw)
