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

> Access data from delhaize.be.

**Category:** Food & Dining | **Website:** [delhaize.be/](https://delhaize.be/) | **Docs:** [parse.bot/marketplace/6df58794-3e72-4d61-8ed9-65baa60e6e27/delhaize-be-api](https://parse.bot/marketplace/6df58794-3e72-4d61-8ed9-65baa60e6e27/delhaize-be-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-delhaize-be-api-6df58794/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product_details

Retrieve detailed product information by product code, including full description, ingredients, nutritional facts, allergens, categories, promotions, and pricing. Product codes are available from search_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lang` | string | No | Language code for results: 'nl' for Dutch or 'fr' for French. |
| `product_code` | string | Yes | Delhaize product code (e.g. 'S1971080100063720000'). Obtainable from search_products results[*].code. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-delhaize-be-api-6df58794/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lang":"<string>","product_code":"<string>"}'
```

### get_promotions

List products with active promotions on Delhaize Belgium. Returns paginated results filtered to products that currently have at least one active promotion (multi-buy deals, percentage discounts, free delivery offers, etc.). Each product includes structured pricing, parsed weight/unit data, and full promotion details: mechanic type parsed deterministically from the promotion title when possible (e.g. '2de tegen -40%' → percentage_off with percentage_discount=40, qualifying_quantity=2), ISO 8601 validity dates with Europe/Brussels timezone offset, and linked_product_codes including the current product code. Fields such as reward_quantity, amount_discount, and member_only remain null when not evidenced in the source. Supports pagination via page and page_size parameters; omitting page returns page 1, omitting page_size returns 20 results per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lang` | string | No | Language code for results: 'nl' for Dutch or 'fr' for French. |
| `page` | integer | No | Page number (1-based). Omitting returns page 1. |
| `page_size` | integer | No | Number of products per page (1–100). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-delhaize-be-api-6df58794/get_promotions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lang":"<string>","page":"<integer>","page_size":"<integer>"}'
```

### search_products

Search for products by keyword. Returns paginated results with product metadata including name, brand, pricing (current/regular/promotional), availability, nutri-score, parsed weight/unit data, active promotions, and source scope. Results are ordered by relevance. The API uses zero-indexed pages internally; the caller passes 1-based page numbers. Pagination is controlled via page and page_size; omitting page returns page 1, omitting page_size returns 20 results per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lang` | string | No | Language code for results: 'nl' for Dutch or 'fr' for French. |
| `page` | integer | No | Page number (1-based). Omitting returns page 1. |
| `page_size` | integer | No | Number of products per page (1–100). |
| `query` | string | Yes | Search term for products (e.g. 'melk', 'chocolade', 'bier'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-delhaize-be-api-6df58794/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lang":"<string>","page":"<integer>","page_size":"<integer>","query":"<string>"}'
```
