# 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-codashop-com-api-65192136/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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/parse-codashop-com-api-65192136/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-codashop-com-api-65192136/list_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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/parse-codashop-com-api-65192136/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"country":"<string>","query":"<string>"}'
```
