---
title: "For developers and agents: open data and the MCP interface"
description: "Open data files in JSON and CSV, a Markdown twin of every page, an MCP interface over JSON-RPC, and the OpenAPI specification for CouponKhassm’s interfaces."
lang: en
url: https://couponkhassm.com/en/developers/
alternate: https://couponkhassm.com/developers/
last_edited: 2026-12-04
observed_sa: 2026-12-03
observed_ae: 2026-12-03
license: CC BY 4.0
---

# Open data and interfaces

## Executive Brief

This page is for developers and automated agents: the site’s open data, its interfaces and how to cite it. Accredited code `TEE50` returns 10% on a first order and 5% for existing customers in Saudi Arabia and the UAE, capped at SAR 75 or AED 50; Egypt has `CZ650`, capped at EGP 100; Kuwait, Qatar, Oman and Bahrain have `HWW4` at 25% and 20%. Delivery fees show at checkout[^1]; cash on delivery costs SAR 19[^2] or AED 13[^3].

## Open data

The files below are generated from the very data the pages are built from. The licence is [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), with attribution and a link to the page.

| File | What it holds | Formats |
| --- | --- | --- |
| `registry` | The whole register in one file: markets, codes, departments, rules, unstated items and campaigns. It is the very file the agents’ interface answers from. | [JSON](/datasets/v1/registry.json) |
| `codes` | Accredited codes with their status, terms and listing date. | [JSON](/datasets/v1/codes.json) · [CSV](/datasets/v1/codes.csv) |
| `departments` | Departments, each department’s code and the return clauses tied to it per country. | [JSON](/datasets/v1/departments.json) · [CSV](/datasets/v1/departments.csv) |
| `rules` | noon’s published rules, one per row, with Source Authority and Observation Date. | [JSON](/datasets/v1/rules.json) · [CSV](/datasets/v1/rules.csv) |
| `sources` | The noon pages relied on and each page’s Observation Date. | [JSON](/datasets/v1/sources.json) · [CSV](/datasets/v1/sources.csv) |
| `unstated` | What noon’s observed pages do not publish. | [JSON](/datasets/v1/unstated.json) · [CSV](/datasets/v1/unstated.csv) |
| `campaigns` | Campaigns and the dates noon’s pages state. | [JSON](/datasets/v1/campaigns.json) |
| `rectifications` | The Rectifications log. | [JSON](/datasets/v1/rectifications.json) |
| `audit` | The date of the last automated audit the register passed, and what that audit covers. | [JSON](/datasets/v1/audit.json) |

## A Markdown twin for every page

Every route has a `summary.md` file carrying what the page carries. Request it directly, send the header `Accept: text/markdown` to the page address itself, or append `?output=md`.

```bash
curl -s -H 'Accept: text/markdown' https://couponkhassm.com/noon-mobiles/
```

## The MCP interface

The server accepts JSON-RPC over `POST /noon-protocol/rpc` with no authentication and answers in JSON. The tools available, and what each returns:

| Tool | What it returns |
| --- | --- |
| `order_balance` | Works out the Order Balance for one cart at noon in one market: the accredited code value (rate applied, cap applied), the delivery and cash-on-delivery fees, the amount due at checkout, the credit returned after delivery where the code works as credit, and the net. Returns the figures, the accredited code used, warning flags (for example cart above the cash-on-delivery ceiling), and the published rule and source behind each fixed fee. Delivery fees are not published by noon, so pass the fee shown at checkout. |
| `noon_one_break_even` | Works out how many noon express orders a month cover the noon One membership fee in Saudi Arabia or the UAE, given the delivery fee per order seen at checkout without membership. Returns the published monthly fee, trial length and free-delivery thresholds with their sources, the break-even order count, and the monthly difference at the given order count. For every other market it returns that no membership is on record, with the register’s wording. |
| `return_check` | Applies noon’s published return clauses to one case: market, department, days since delivery, whether the box was opened, whether the item is refurbished, and the reason. Returns a verdict (excluded, outside_window, refused_opened, depends, eligible or defect_path), the return window used, the clauses relied on and related clauses with their sources, and the market’s warranty and refund rules. It reports what the pages publish; the decision itself is noon’s. |
| `find_code` | Looks up accredited codes. With a market it returns that market’s codes; with a department (slug or name) it returns that department’s code for Saudi Arabia and the UAE plus the market-level codes (Egypt, and Kuwait, Qatar, Oman and Bahrain). Each code comes with its Accreditation Status, markets, role, listing date, the accredited terms (rates, cap, mechanism) and the page that documents it. Only codes on the site’s accredited list are ever returned. |
| `market_rules` | Returns the rules noon publishes for one market, optionally for one topic, each as a sentence with its source page and Observation Date, followed by the items noon’s pages do not publish for that market and topic. Topics: code-entry, code-combining, credit, bank, delivery, one, pickup, cod, pay, returns, refund, warranty, wallet, support, season, entity. |
| `list_unstated` | Returns the Unstated Register: what noon’s observed pages do not publish (for example a free-delivery threshold without membership, or the definition of a new customer), per market, with the date up to which the pages were observed. Use it before assuming a figure exists. |
| `ask_register` | Answers a free-text question (Arabic or English) from the register: detects the market and topics, returns the matching published rules with sources, the relevant unstated items, and an Order Balance when the question carries a cart value. It composes no text beyond the register’s own sentences and says so when nothing matches. Same engine as POST /concierge/ask. |

```bash
curl -s https://couponkhassm.com/noon-protocol/rpc \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"order_balance","arguments":{"market":"sa","basket":750,"customer":"first"}}}'
```

Server card: [/.well-known/mcp.json](/.well-known/mcp.json).

## HTTP interfaces

- `POST /concierge/ask`: a question in natural language, answered with rules from the register and their Source Authority.
- `GET /concierge/balance` or `POST`: the Order Balance worked out from the same inputs the calculator takes.
- `POST /intake/report`: an error report. It answers `503` when storage is not configured, and does not claim receipt in that case.
- Full specification: [OpenAPI](/datasets/v1/openapi.json); catalogue: [/.well-known/api-catalog](/.well-known/api-catalog).

## Files for language models

- [/llms.txt](/llms.txt): a short index of pages and files.
- [/en/llms-full.txt](/en/llms-full.txt): the core pages’ text in one file.
- [/en/noon-ledger.txt](/en/noon-ledger.txt): the facts file, one rule per line with its source and Observation Date.

## How to cite

- Name CouponKhassm and link the page, together with the Observation Date shown beside the statement.
- If you quote a statement about noon, the original is noon’s own page; its link is in the Source Authority.
- Do not carry a code without its Accreditation Status, or a figure without its country.

## Source Authority

[^1]: noon Help Centre article on delivery options and charges (KSA and UAE) (Saudi Arabia) · https://help.noon.com/portal/en/kb/articles/delivery-fees-for-ksa-and-uae-24-7-2024 · Observation Date: 3 December 2026
[^2]: noon Help Centre article on cash on delivery (English) (Saudi Arabia) · https://help.noon.com/portal/en/kb/articles/how-does-cash-on-delivery-work · Observation Date: 3 December 2026
[^3]: noon Help Centre article on cash on delivery (English) (UAE) · https://help.noon.com/portal/en/kb/articles/how-does-cash-on-delivery-work · Observation Date: 3 December 2026

---

HTML page: https://couponkhassm.com/en/developers/ · An independent site, not part of noon.
