---
title: "Use a gift code"
method: POST
path: "/account/v1alpha1/gift-code/use"
tags: ["UseGiftCode"]
---

# Use a gift code

`POST /account/v1alpha1/gift-code/use`

Redeem a gift code and apply the credit to the user's account

## Request body

- HelperUseGiftCodeReq
  - `code` string, required — @Summary Gift code to be used @Description The code of the gift card to be redeemed @JSONSchema required
  - `kubeConfig` string
  - `owner` string
  - `token` string
  - `userID` string
  - `userUID` string

## Response `200`

Successfully redeemed gift code

- HelperUseGiftCodeResp
  - `data` HelperUseGiftCodeRespData
    - `userID` string
  - `message` string

## Other responses

- `400` — Failed to parse use gift code request
- `401` — Authentication error
- `500` — Failed to redeem gift code

---

[API](https://skmtc.net/labring/apis/sealos-account-service.md) · [All operations](https://skmtc.net/labring/apis/sealos-account-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labring/sealos-account-service/revisions/185eff260477/schema)
