# Codashop — 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.

> Purchase game credits and top-ups from Codashop by browsing their product catalog across multiple countries, searching for specific items, and viewing detailed pricing and payment options. Access comprehensive product information including SKUs and available payment channels to find exactly what you need for your favorite games.

**Category:** Marketplaces | **Website:** [www.codashop.com/en-ng/](https://www.codashop.com/en-ng/) | **Docs:** [parse.bot/marketplace/65192136-bac1-4054-b85c-b096cabd318c/codashop-com-api](https://parse.bot/marketplace/65192136-bac1-4054-b85c-b096cabd318c/codashop-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/codashop/`
**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 product details

Get detailed product information including all available SKUs with pricing, SKU categories, and available payment channels. The product_path must correspond to a product available in the specified country's catalog — use search_products or list_products to discover valid paths. Returns a 404 (input_not_found) if the product does not exist in that country.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country` | string | No | Two-letter country code. |
| `product_path` | string | Yes | Product slug from the product URL (e.g., 'mobile-legends', 'call-of-duty-mobile', 'genshin-impact'). Discoverable from search_products results[*].productUrl or list_products products[*].productUrl by taking the last path segment. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/codashop/get-product-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"country":"<string>","product_path":"<string>"}'
```

### List products

List all products available on Codashop for a given country. Returns products organized by sections (Popular, New, Web Store, etc.) with thumbnails and URLs. Product availability varies significantly by country — a product listed in one country may not exist in another.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country` | string | No | Two-letter country code determining which regional catalog to query. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/codashop/list-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"country":"<string>"}'
```

### Search products

Search for products on Codashop by keyword. Results are scoped to the specified country's catalog, so a product must be available in that country to appear. Returns matching products with names, URLs, and images. An empty result set is valid when no products match.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `country` | string | No | Two-letter country code. Search results are limited to products available in this country's catalog. |
| `query` | string | Yes | Search keyword (e.g., 'call of duty', 'genshin', 'mobile legends') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/codashop/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"country":"<string>","query":"<string>"}'
```

## Next steps

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