# Kingshot Giftcode Centurygame — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Redeem gift codes for King's Shot mobile game, look up player profiles by ID, and view the gift code center configuration. Manage your game rewards and account information through this dedicated redemption service.

**Category:** Entertainment | **Website:** [kingshot-giftcode.centurygame.com/](https://kingshot-giftcode.centurygame.com/) | **Docs:** [parse.bot/marketplace/fed6f770-e188-4dcb-932c-ddbfbdc64a0c/kingshot-giftcode-centurygame-com-api](https://parse.bot/marketplace/fed6f770-e188-4dcb-932c-ddbfbdc64a0c/kingshot-giftcode-centurygame-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-kingshot-giftcode-centurygame-com-api-fed6f770/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_gift_code_config

Retrieve the gift code center configuration including promotional banner image URLs for each supported language. No parameters required. Returns an object keyed by language code, each containing pc_banner and mob_banner URLs.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-kingshot-giftcode-centurygame-com-api-fed6f770/get_gift_code_config \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_player

Look up a King's Shot player by their in-game player ID. Returns player information if the ID exists, or an error response (code=1, err_code=40001) if the player is not found. The player ID can be found in-game through the avatar in the top left corner.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `fid` | string | Yes | The player's in-game ID (numeric string found via the in-game avatar). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-kingshot-giftcode-centurygame-com-api-fed6f770/get_player \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"fid":"<string>"}'
```

### redeem_code

Redeem a gift code for a King's Shot player. The player must exist and the code must be valid. Returns the redemption result including any rewards. Common error codes: 40014 (code not found), 40001 (player not found).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `code` | string | Yes | The gift code to redeem (case-sensitive alphanumeric string). |
| `fid` | string | Yes | The player's in-game ID (numeric string found via the in-game avatar). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-kingshot-giftcode-centurygame-com-api-fed6f770/redeem_code \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code":"<string>","fid":"<string>"}'
```
