---
title: "Create GiftCard"
method: POST
path: "/giftcards"
tags: ["Gift Card"]
---

# Create GiftCard

`POST /giftcards`

Creates a gift card for a specific user.

## Warning

>ℹ️️ The `redemptionCode` field for a gift card is auto-generated on the creation and cannot be set to an arbitrary value.

## Headers

- `Content-Type` string, required
- `Accept` string, required

## Response `200`

OK

- Response
  - `id` string, required — Gift card identification.
  - `redemptionToken` string, required — Gift card redemption token.
  - `redemptionCode` string, required — Gift card redemption code.
  - `balance` integer, required — Gift card current balance. For Gift Cards newly created, the balance will be 0.0.
  - `relationName` string, required — Field to be filled in when it is not necessary to use a loyalty program for the gift card. Observation: A new `relationNamevalue` is required for each new gift card to be created.
  - `emissionDate` string, required — Gift card emission date.
  - `expiringDate` string, required — Gift card expiration date.
  - `caption` string, required — Field to be filled in if a loyalty program must be created for the Gift Card.
  - `currencyCode` string — Currency code in ISO 4217.
  - `transactions` Transactions, required — Transactions information.
    - `href` string, required — Gift card resource URL.

## Changes

- **2023-09-27** `7e6920bdee2e` — 2 warning
  - deleted the `header` request parameter `X-VTEX-API-AppKey`
  - deleted the `header` request parameter `X-VTEX-API-AppToken`
- **2023-08-30** `0af884ae7f9e` — 1 breaking
  - the `balance` response's property type/format changed from `integer`/`int32` to `integer`/`` for status `200`

[Change history](https://skmtc.dev/vtex/apis/giftcard-api/changes/giftcards/post.md)

---

[API](https://skmtc.dev/vtex/apis/giftcard-api.md) · [All operations](https://skmtc.dev/vtex/apis/giftcard-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vtex/giftcard-api/revisions/7e6920bdee2e/schema)
