# Kingshot Giftcode Centurygame — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/kingshot-giftcode-centurygame/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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.beta.paywithlocus.com/api/wrapped/credits/kingshot-giftcode-centurygame/get-gift-code-config \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/kingshot-giftcode-centurygame/get-player \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/kingshot-giftcode-centurygame/redeem-code \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"code":"<string>","fid":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.