---
title: "Edit a gift card"
method: PATCH
path: "/gift_cards/{gift_card_id}"
tags: ["Gift Cards"]
---

# Edit a gift card

`PATCH /gift_cards/{gift_card_id}`

## Request

- Base URL: `https://api.vrio.app`
- URL: `https://api.vrio.app/gift_cards/{gift_card_id}`
- Auth: API key in header `X-Api-Key`

&nbsp;

## Request body

- object
  - `gift_card_total` string: Set the total amount for a gift card.
  - `date_expire` string, date-time, nullable: Set an expiration date for the gift card.
  - `gift_card_active` boolean: Set a gift cards active status.
  - `gift_card_notes` string: Apply note to the history for this gift card.

## Response `200`

OK

- object
  - `gift_card_id` integer
  - `customer_id` integer, nullable
  - `gift_card_code` string
  - `gift_card_total` string
  - `gift_card_balance` string
  - `gift_card_active` boolean
  - `date_expire` string, date-time, nullable
  - `date_created` string, date-time
  - `created_by` integer
  - `date_modified` string, date-time
  - `modified_by` integer
  - `gift_card_notes` string, nullable

## Other responses

- `400`: Error response
- `401`: Unauthorized response
- `403`: Forbidden response
- `500`: Error response

---

[API](https://skmtc.dev/vrio/apis/selling.md) - [All operations](https://skmtc.dev/vrio/apis/selling/llms.txt) - [OpenAPI document](https://skmtc.dev/vrio/apis/selling/revisions/83eca29c6745?raw)
