# Shop Garena — 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.

> Browse Garena games and channels available in Malaysia, then initiate purchases for in-game currency directly through the payment system. Streamline your gaming experience by discovering titles and completing top-ups in one integrated platform.

**Category:** E-commerce | **Website:** [shop.garena.my/](https://shop.garena.my/) | **Docs:** [parse.bot/marketplace/7d3cd3e8-955c-4b64-9324-f4fa2154417b/shop-garena-my-api](https://parse.bot/marketplace/7d3cd3e8-955c-4b64-9324-f4fa2154417b/shop-garena-my-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-shop-garena-my-api-7d3cd3e8/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_apps

Returns all games and applications available for top-up on Garena's Malaysia shop. Each app includes metadata such as name, icon, point currency name, supported platforms, and visibility status. The list is not paginated; all apps are returned in a single response.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-shop-garena-my-api-7d3cd3e8/get_apps \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_channels

Fetches available payment methods (channels) and their denomination items for a specific game. Each channel includes pricing items with currency amounts, in-game point amounts, and promotional details. Also returns app info, announcements, free items, and tab configuration.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `app_id` | string | Yes | The numeric application ID for the game to query channels for. Obtain from get_apps endpoint (e.g. '100067' for Free Fire, '10094' for Shell Top Up). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-shop-garena-my-api-7d3cd3e8/get_channels \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"app_id":"<string>"}'
```

### initialize_payment

Initializes a payment transaction for a selected item and returns the redirect URL to the third-party payment gateway. Authenticates with Player ID first.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-shop-garena-my-api-7d3cd3e8/initialize_payment \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
