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

> Retrieve current product listings from Lotus Malaysia's promotional pages with details like pricing, discounts, product names, categories, and images. Browse through paginated results to discover the latest deals and promotional items available.

**Category:** E-commerce | **Website:** [www.lotuss.com.my/en/shop/june-super-weekend-treats](https://www.lotuss.com.my/en/shop/june-super-weekend-treats) | **Docs:** [parse.bot/marketplace/44a0803a-b13d-4971-878e-c32f165bb815/lotuss-com-my-api](https://parse.bot/marketplace/44a0803a-b13d-4971-878e-c32f165bb815/lotuss-com-my-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/lotuss/`
**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 promotional products

Get products from a Lotus's Malaysia promotional or category page. Returns product names, promotional prices, regular prices, discount percentages, categories, brands, and product images. Results are paginated.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | No | Category ID for the promotional page. Default is 60725 (June Super Weekend Treats). Other category IDs can be found by browsing the site. |
| `limit` | integer | No | Number of products per page, between 1 and 100. |
| `page` | integer | No | Page number for pagination (starts at 1). |
| `sort` | string | No | Sort order for results. Accepts exactly one of: best_match, price_low, price_high, newest. Omitted = default server ordering. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/lotuss/get-promotional-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","limit":"<integer>","page":"<integer>","sort":"<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.