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

> Search and browse Hanes clothing products across categories like men's, women's, and sale items, and retrieve detailed information including sizes, colors, and real-time availability. Find exactly what you're looking for with product variants and comprehensive details to compare options before purchase.

**Category:** E-commerce | **Website:** [hanes.com/](https://hanes.com/) | **Docs:** [parse.bot/marketplace/a5c5f8c9-21f7-4830-a1bd-3d3776e5cbd8/hanes-com-api](https://parse.bot/marketplace/a5c5f8c9-21f7-4830-a1bd-3d3776e5cbd8/hanes-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/hanes/`
**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 category products

Retrieve products in a specific category by path. Category paths correspond to site navigation segments (e.g. 'men', 'women', 'socks/socks/crew', 'sale'). Returns paginated results with product details, facets for filtering, and pagination info.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_path` | string | Yes | The category path (e.g. 'men', 'women', 'socks/socks/crew', 'sale'). |
| `page` | integer | No | Page number. |
| `page_size` | integer | No | Number of items per page. |
| `sort` | string | No | Sort attribute. |
| `sort_direction` | string | No | Sort direction. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/hanes/get-category-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category_path":"<string>","page":"<integer>","page_size":"<integer>","sort":"<string>","sort_direction":"<string>"}'
```

### Get men products

List products for men, optionally filtered by subcategory path. Shortcut for get_category_products with category_path defaulting to 'men'. Returns paginated results with product details, facets, and pagination info.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number. |
| `subcategory` | string | No | Subcategory path (e.g. 'men', 'men/underwear'). |

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

### Get product availability

Get product availability and variant information for a product by SKU. Returns the same combined catalog and inventory data as get_product_details. Use when the primary concern is stock status and variant availability.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU (e.g. 'PBS184', 'LT9020'). |

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

### Get product details

Get full details for a single product by SKU, including HTML description, product attributes (brand, fabric, gender, country of origin), all images, configurable options, price range, and variant-level stock status and pricing. The response combines catalog metadata with live inventory data.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU (e.g. 'PBS184', 'LT9020'). |

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

### Get sale products

List products currently on sale. Returns paginated results with product details, facets, and pagination info. Sale items show discounted final prices relative to their regular prices.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number. |

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

### Get women products

List products for women, optionally filtered by subcategory path. Shortcut for get_category_products with category_path defaulting to 'women'. Returns paginated results with product details, facets, and pagination info.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number. |
| `subcategory` | string | No | Subcategory path (e.g. 'women', 'women/bras'). |

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

### Search products

Full-text search over all Hanes products by keyword. Results include product name, SKU, URL, images, price range, and configurable options (color/size). Paginates via integer page counter. Facets for gender, size, and color family are returned alongside items for client-side filtering UI. Sort by relevance, price, or position.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number. |
| `page_size` | integer | No | Number of items per page. |
| `query` | string | Yes | Search keyword. |
| `sort` | string | No | Sort attribute. |
| `sort_direction` | string | No | Sort direction. |

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