---
title: "APIs for credit codes.
Redeem Credit Code"
method: POST
path: "/v1/creditCodes:redeem"
tags: ["gateway.openapi_Gateway"]
---

# APIs for credit codes.
Redeem Credit Code

`POST /v1/creditCodes:redeem`

## Request body

- GatewayRedeemCreditCodeRequest — RedeemCreditCodeRequest is the request to redeem a credit code for an account.
  - `code` string, required — The user-facing credit code string (e.g., "HACKATHON_2025").
  - `name` string, required — The resource name of the account redeeming the credit code.

## Response `200`

A successful response.

- GatewayRedeemCreditCodeResponse — RedeemCreditCodeResponse returns the amount of credits redeemed.
  - `amount` TypeMoney — Represents an amount of money with its currency type.
    - `currencyCode` string — The three-letter currency code defined in ISO 4217.
    - `units` string, int64 — The whole units of the amount. For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
    - `nanos` integer — Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.

---

[API](https://skmtc.net/fw-ai-external/apis/gateway-rest-api.md) · [All operations](https://skmtc.net/fw-ai-external/apis/gateway-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fw-ai-external/gateway-rest-api/versions/29a1e4db152c/schema)
